/* Edisonweb, sito istituzionale. Prototipo del 22/11/2026, direzione A (murale di Ligama). Pagina unica a capitoli. */

@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PlexCond"; src: url("../fonts/IBMPlexSansCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PlexCond"; src: url("../fonts/IBMPlexSansCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --page: #FFFFFF;
  --ink: #1A2F3A;
  --teal: #2A4557;
  --muted: #55656F;
  --line: #D9DEE1;
  --soft: #F4F6F7;
  --red: #D41C23;
  --red-dark: #B3161C;
  /* colori del murale, campionati dalla foto del 30/05/2019 */
  --turchese: #315A70;
  --giallo: #E4D269;
  --verde: #5E7B45;
  --mattone: #925756;
  --blu: #5098C3;
  --porpora: #715476;
  --vinaccia: #2E1522;
  --scuro-su-chiaro: #0F1E26;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: "Plex", system-ui, sans-serif; font-size: 18px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
@media (max-width: 600px) { .wrap { padding: 0 20px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* intestazione */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.logo img { height: 50px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--teal); }
.nav a:hover { color: var(--red); }
.lang { font-size: 14px; color: var(--muted); }
.lang a { text-decoration: none; }
.lang [aria-current] { font-weight: 500; color: var(--teal); }

/* tipografia comune */
.eyebrow { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
h1, h2, h3 { font-family: "PlexCond", sans-serif; color: var(--teal); letter-spacing: -0.01em; }
h1 { font-weight: 600; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; margin: 0; letter-spacing: -0.02em; }
h2 { font-weight: 600; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.1; margin: 0; }
h3 { font-weight: 600; font-size: 24px; line-height: 1.2; margin: 0; }
.lead { font-weight: 300; font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); margin: 22px 0 0; }
.muted { color: var(--muted); }
.section { padding: 96px 0; }
.section.soft { background: var(--soft); }
.section.rule { border-top: 1px solid var(--line); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 48px; }
.more { font-weight: 500; text-decoration: none; }
@media (max-width: 600px) { .section { padding: 64px 0; } }

/* pulsanti */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 4px; font-weight: 500; text-decoration: none; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-secondary { border: 1px solid var(--teal); color: var(--teal); }

/* apertura con il murale */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.hero-text { flex: 1 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(42px, 5vw, 72px); line-height: 0.98; letter-spacing: -0.025em; }
.hero-art { flex: 1 1 560px; min-width: 0; margin: 0; }
.artwork { margin: 14px 0 0 auto; max-width: 460px; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.art-title { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 17px; font-style: italic; color: var(--teal); }
.art-sig { font-size: 13px; color: var(--muted); }
.art-note { margin-top: 10px; font-family: "PlexCond", sans-serif; font-weight: 500; font-size: 19px; line-height: 1.3; color: var(--teal); }
@media (max-width: 600px) { .artwork { text-align: left; margin-left: 0; } }

/* campiture: fascia con i colori del murale, fra un capitolo e l'altro */
.campiture { display: block; width: 112%; max-width: none; height: clamp(44px, 7vw, 112px); margin-left: -6%; }

/* capitoli */
h2.chapter { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 56px; }

/* chi siamo: tre massime, ognuna su un paesaggio dell'entroterra */
.manifesto { padding: 40px 0 120px; overflow: hidden; }
.mf-intro { max-width: 720px; margin: -24px 0 72px; }
.scene { margin-top: 0; }
.scene + .scene { margin-top: 96px; }
.scene-img { margin: 0; overflow: hidden; }
.scene-img img { width: 100%; aspect-ratio: 2 / 1; max-height: 82vh; object-fit: cover; }
.sc1 .scene-img img { object-position: 70% 50%; }
.sc2 .scene-img img { object-position: 50% 40%; }
.slab { position: relative; max-width: 720px; margin-top: -150px; padding: 48px 52px 44px; background: #241B1F; color: #EAF0F3; clip-path: polygon(0 4%, 100% 0, 98% 100%, 0 96%); }
.sc2 .slab { margin-left: auto; clip-path: polygon(2% 0, 100% 5%, 100% 96%, 0 100%); }
.slab h3 { font-size: clamp(32px, 4vw, 54px); line-height: 1.02; letter-spacing: -0.02em; margin: 0; color: #fff; }
.sc2 .slab h3 { color: var(--giallo); }
.sc3 .slab h3 { color: #8FC4E4; }
.slab .tag { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 16px 0 0; color: #8FC4E4; }
.slab p:last-child { font-size: 18px; line-height: 1.55; margin: 20px 0 0; }
@media (max-width: 760px) {
  .manifesto { padding: 72px 0 80px; }
  .mf-intro { margin-bottom: 48px; }
  .scene + .scene { margin-top: 64px; }
  .scene-img img { aspect-ratio: 4 / 3; }
  .sc1 .scene-img img { object-position: 78% 50%; }
  .sc2 .scene-img img { object-position: 50% 50%; }
  .slab { margin-top: -40px; padding: 32px 24px 28px; }
}

/* credito a Ligama, sotto le scene */
.credit { margin: 40px 0 0; font-size: 14px; color: var(--muted); }
.credit a { color: inherit; }
.art-sig a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* prodotti */
.products { display: flex; flex-wrap: wrap; gap: 48px; }
.product { flex: 1 1 340px; min-width: 0; border-top: 3px solid var(--teal); padding-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.product.emocube { border-top-color: var(--red); }
.product-mark { display: flex; align-items: center; gap: 16px; min-height: 80px; }
.product-mark .lockup { height: 76px; width: auto; margin-left: -6px; }
.product-mark .mark { height: 56px; width: auto; }
.product-mark .name { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 34px; color: var(--teal); }
.product .kind { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0; }
.product p { margin: 0; font-size: 20px; line-height: 1.45; }
.product .more { margin-top: 4px; }
.product p.problem { font-family: "PlexCond", sans-serif; font-weight: 500; font-size: clamp(22px, 2vw, 27px); line-height: 1.25; color: var(--teal); }
.product p.problem + p { font-size: 18px; color: var(--muted); }

/* oggi: i numeri */
.today { margin: 96px 0 24px; }
.nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 72px; }
.num { min-width: 0; }
.num .figure { display: flex; align-items: baseline; gap: 18px; margin: 0 0 20px; }
.num .digit { position: relative; font-family: "PlexCond", sans-serif; font-weight: 600; font-size: clamp(120px, 14vw, 200px); line-height: 0.8; color: var(--teal); padding: 0 14px; }
.num .digit::before { content: ""; position: absolute; z-index: -1; inset: 18% -6% -8% 22%; background: var(--giallo); clip-path: polygon(0 10%, 100% 0, 88% 100%, 6% 92%); }
.n2 .digit { color: var(--mattone); }
.n2 .digit::before { background: var(--blu); opacity: 0.55; clip-path: polygon(8% 0, 100% 12%, 100% 92%, 0 100%); }
.num .unit { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); color: var(--teal); }
.num p:last-child { margin: 0; font-size: 18px; color: var(--muted); max-width: 520px; }
.nums { isolation: isolate; }

/* TIM: una fascia a se' */
.tim { background: var(--turchese); color: #fff; clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 100%); padding: 120px 0 80px; margin-top: 24px; }
.tim .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 4.5vw, 64px); align-items: center; }
.tim .eyebrow { color: var(--giallo); }
.tim h2 { color: #fff; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.tim p { font-size: 20px; margin: 20px 0 0; }
.tim-flow { margin: 0; }
.tim-flow svg { width: 100%; height: auto; display: block; }
.tim-flow figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #D7E2E8; }
@media (max-width: 760px) {
  .tim { padding: 88px 0 56px; }
  .tim .wrap { grid-template-columns: 1fr; }
  .tim-flow figcaption { gap: 8px; font-size: 11px; letter-spacing: 0.08em; }
}

/* clienti e partner */
.logos-band { padding: clamp(40px, 5vw, 56px) 0 clamp(12px, 2.5vw, 32px); }
.logos-band h2 { font-size: clamp(20px, 2vw, 24px); margin-bottom: 16px; }
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 24px; align-items: center; }
.logos .partner { min-height: 84px; display: flex; align-items: center; justify-content: center; }
.logos img { max-width: 100%; height: auto; opacity: 0.9; }
@media (max-width: 760px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos .partner { min-height: 72px; } }

/* come lavoriamo */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 48px; }
.way { min-width: 0; }
.way .cube { width: 64px; height: 64px; margin-bottom: 24px; }
.way h3 { font-size: 26px; margin-bottom: 12px; }
.way p { margin: 0; font-size: 18px; color: var(--muted); }

/* storia: quattro campiture */
.st-lead { max-width: 820px; margin: -24px 0 56px; }
.how-lead { max-width: 820px; margin: -24px 0 56px; font-family: "PlexCond", sans-serif; font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; color: var(--teal); }
.seasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0; align-items: start; }
.season { min-width: 0; padding: 64px 28px 48px; color: #fff; }
.season .years { font-family: "PlexCond", sans-serif; font-weight: 600; margin: 0 0 20px; display: flex; flex-direction: column; }
.season .years span:first-child { font-size: clamp(56px, 5.4vw, 76px); line-height: 0.9; letter-spacing: -0.02em; }
.season .years .to { font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 8px; }
.season .years .to::before { content: "→ "; }
.season h3 { color: inherit; font-size: 26px; margin: 0 0 12px; }
.season > p { margin: 0; font-size: 17px; line-height: 1.5; }
.season .descr { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.4); font-size: 15px; line-height: 1.5; opacity: 0.92; }
.season.giallo .descr { border-top-color: rgba(15,30,38,0.3); }
.season summary { cursor: pointer; font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; }
.season details p { margin: 16px 0 0; }
.proofs { margin: 16px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,0.35); }
.proofs li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.35); }
.proofs .when { font-family: "PlexCond", sans-serif; font-weight: 600; }
.season.turchese { background: var(--turchese); clip-path: polygon(0 4%, 100% 0, 97% 100%, 0 100%); }
.season.giallo { background: var(--giallo); color: var(--scuro-su-chiaro); clip-path: polygon(0 0, 100% 7%, 100% 95%, 2% 100%); }
.season.giallo .proofs, .season.giallo .proofs li { border-color: rgba(15,30,38,0.3); }
.season.verde { background: var(--verde); clip-path: polygon(0 7%, 100% 2%, 100% 100%, 3% 94%); }
.season.mattone { background: var(--mattone); clip-path: polygon(0 2%, 100% 10%, 100% 100%, 0 97%); }
.season :focus-visible { outline-color: #fff; }
.season.giallo :focus-visible { outline-color: var(--scuro-su-chiaro); }

/* la direzione: sintesi, credo e firma */
.direction { border-top: 1px solid var(--line, #DCE3E7); }
.dir-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.dir-text p { font-size: 19px; line-height: 1.6; color: var(--ink); max-width: 640px; }
.signature { margin-top: 56px; padding-top: 18px; border-top: 1px solid #C9D3D9; display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.signature a { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 22px; color: var(--teal); text-decoration: none; }
.signature a:hover { text-decoration: underline; }
.signature span { font-size: 15px; color: var(--muted); }
.credo-card { background: var(--vinaccia); color: #EDE3E6; padding: 44px 40px 40px; clip-path: polygon(0 3%, 100% 0, 97% 100%, 0 97%); margin-top: 8px; }
.credo-card .credo { color: var(--giallo); font-family: "PlexCond", sans-serif; font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 0 0 20px; max-width: none; }
.credo-card p { font-size: 17px; line-height: 1.55; margin: 0 0 20px; }
.credo-card .more { color: #fff; }
@media (max-width: 860px) { .dir-grid { grid-template-columns: 1fr; gap: 48px; } .credo-card { padding: 36px 24px 32px; } }

/* ricerca e persone */
.two { display: flex; flex-wrap: wrap; gap: 64px; }
.two > div { flex: 1 1 420px; min-width: 0; }
.two h2 { margin-bottom: 16px; }
.two p { color: var(--muted); }
.people { display: flex; flex-direction: column; gap: 20px; margin-top: 20px; }
.people .who { font-size: 20px; font-weight: 500; color: var(--ink); margin: 0; }
.people .role { font-size: 16px; color: var(--muted); margin: 0; }

/* contatti */
.contact { background: var(--giallo); color: var(--scuro-su-chiaro); padding: 96px 0; }
.contact h2 { color: var(--scuro-su-chiaro); font-size: clamp(40px, 5vw, 64px); }
.contact .big { font-family: "PlexCond", sans-serif; font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; margin: 20px 0 0; max-width: 760px; }
.btn-dark { background: var(--scuro-su-chiaro); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.contact :focus-visible { outline-color: var(--scuro-su-chiaro); }

/* piè di pagina */
.site-footer { background: var(--teal); color: #E6ECEF; padding: 0 0 40px; font-size: 15px; line-height: 1.7; overflow: hidden; }
.site-footer .campiture { height: clamp(28px, 4vw, 56px); margin-bottom: 64px; }
.site-footer a { color: #fff; }
.credo { font-family: "PlexCond", sans-serif; font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; color: #fff; max-width: 720px; margin: 0; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 48px; }
.footer-cols > div { flex: 1 1 260px; min-width: 0; }
.footer-cols .label { font-family: "PlexCond", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--giallo); margin: 0 0 8px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 14px; }

/* pagine di testo */
.text-page { padding-top: 64px; padding-bottom: 96px; max-width: 760px; }
.text-page h2 { font-size: 26px; margin: 40px 0 8px; }
.text-page p { color: var(--ink); }

/* movimento: solo dove il browser lega le animazioni allo scorrimento, e solo se l'utente non le ha ridotte */
@keyframes rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 85%; }
    .scene-img img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .campiture { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
