/* Ageola · sito vetrina. Un solo motivo: il lato inclinato della «A» del
   marchio, che taglia le linguette delle cartelle, i pulsanti e i punti. */
:root {
  --notte: #122231;
  --notte-2: #1c3346;
  --acqua: #007769;
  --acqua-chiara: #2bb39f;
  --menta: #d3e8e3;
  --carta: #f4f7f6;
  --carta-2: #e7eeec;
  --bianco: #ffffff;
  --inchiostro: #122231;
  --tenue: #4b5c6a;
  --allarme: #b3261e;

  --margine: clamp(16px, 2.4vw, 40px);
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.3rem + 3.6vw, 4.5rem);
  --step-big: clamp(3rem, 1.5rem + 5vw, 6.5rem);
  --step-giant: clamp(5.5rem, 13vw, 13rem);

  --display: "Stack Sans Headline", "Segoe UI", system-ui, sans-serif;
  --testo: "Stack Sans Text", "Segoe UI", system-ui, sans-serif;
  --inclina: 14px;
  --esce: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--carta); color: var(--inchiostro); font: 400 var(--step-body)/1.5 var(--testo); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 300; letter-spacing: -0.022em; line-height: 1.05; margin: 0; text-wrap: balance; }
h2 { font-size: var(--step-head); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--acqua-chiara); outline-offset: 3px; }
::selection { background: var(--acqua); color: var(--bianco); }
section { padding-inline: var(--margine); }

/* Il motivo: trapezio con i lati inclinati come la A */
.tasto {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 calc(28px + var(--inclina));
  background: var(--acqua); color: var(--bianco); text-decoration: none; border: 0; cursor: pointer;
  font: 500 var(--step-body)/1 var(--testo);
  clip-path: polygon(var(--inclina) 0, calc(100% - var(--inclina)) 0, 100% 100%, 0 100%);
  transition: transform .18s var(--esce), background-color .18s;
}
.tasto:hover { background: #00604f; transform: translateY(-2px); }
.tasto:active { transform: translateY(1px); }
.tasto.piccolo { white-space: nowrap; min-height: 40px; padding: 0 calc(18px + var(--inclina)); font-size: var(--step-small); }

/* ================================================================ testa */
.testa { position: relative; background: var(--notte); color: var(--carta); min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.riga-alta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px var(--margine) 0; }
.marchio img { height: 30px; width: auto; }
.accedi { justify-self: end; font-size: var(--step-small); text-decoration: none; padding: 10px 2px; border-bottom: 2px solid transparent; transition: border-color .18s; }
.accedi:hover { border-color: var(--acqua-chiara); }
.titolo { text-align: center; padding: clamp(40px, 7vh, 90px) var(--margine) 0; }
.titolo h1 { font-size: var(--step-giant); line-height: .92; letter-spacing: -0.04em; }
.titolo p { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; margin: 28px auto 0; color: #d8e2e0; }

.cartelle { position: relative; flex: 1; min-height: 360px; margin-top: clamp(40px, 6vh, 72px); }
.cartella {
  position: absolute; left: 7%; right: 7%; bottom: 0; text-decoration: none; color: var(--inchiostro);
  transition: transform .3s var(--esce);
}
.cartella .linguetta {
  position: absolute; bottom: 100%; height: 44px; display: flex; align-items: center; padding: 0 34px;
  font: 500 var(--step-small)/1 var(--testo); background: inherit; color: inherit; text-decoration: none; white-space: nowrap;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
}
.cartella:not(.aperta):hover { transform: translateY(-10px); }
.c1 { top: 0; background: var(--notte-2); color: var(--carta); }
.c2 { top: 64px; background: #145a55; color: var(--carta); }
.c3 { top: 128px; background: var(--acqua); color: var(--bianco); }
.c4 { top: 192px; background: var(--menta); }
.c5 { top: 256px; background: var(--carta); left: 4%; right: 4%; }
.c1 .linguetta { left: 4%; }
.c2 .linguetta { left: 26%; }
.c3 .linguetta { left: 46%; }
.c4 .linguetta { left: 66%; }
.c5 .linguetta { right: 3%; font-weight: 500; }
.dentro { display: flex; align-items: center; gap: 24px; padding: 32px; flex-wrap: wrap; }
.dentro span { color: var(--tenue); font-size: var(--step-body); }

/* ================================================================ lavoro */
.lavoro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); padding-top: clamp(120px, 14vw, 200px); align-items: start; }
.lavoro-testo > p { margin-top: 24px; max-width: 46ch; }
.indice { list-style: none; margin: 48px 0 0; padding: 0; }
.indice button {
  display: flex; align-items: baseline; gap: 18px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 14px 0; color: var(--inchiostro); opacity: .42; font: 300 var(--step-lead)/1.2 var(--display); letter-spacing: -0.01em;
  transition: opacity .24s, transform .24s var(--esce);
}
.indice button b { font: 400 var(--step-small)/1 var(--display); min-width: 4.2em; color: var(--acqua); letter-spacing: 0; }
.indice button::before { content: ""; flex: none; width: 14px; height: 12px; background: var(--acqua); clip-path: polygon(4px 0, 10px 0, 14px 100%, 0 100%); transform: scale(.6); opacity: 0; transition: transform .24s var(--esce), opacity .24s; align-self: center; }
.indice button.attivo, .indice button:hover, .indice button:focus-visible { opacity: 1; }
.indice button.attivo::before { transform: none; opacity: 1; }
.indice button:hover { transform: translateX(6px); }

.cornice { position: sticky; top: 32px; display: grid; background: var(--notte); padding: clamp(20px, 3vw, 48px); min-height: 520px; align-items: center; }
.cornice > .ui { grid-area: 1 / 1; opacity: 0; transform: translateY(12px); transition: opacity .24s, transform .24s var(--esce); pointer-events: none; }
.cornice > .ui.mostra { opacity: 1; transform: none; pointer-events: auto; }

/* ================================================================ frammenti dell'interfaccia */
.ui { background: var(--bianco); color: var(--inchiostro); font: 400 15px/1.45 var(--testo); border-radius: 10px; overflow: hidden; }
.ui-testa { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 18px; background: var(--carta-2); }
.ui-testa strong { font-weight: 500; font-size: 16px; }
.ui-testa span { color: var(--tenue); font-size: 13px; }
.ui-elenco { list-style: none; margin: 0; padding: 4px 0; }
.ui-elenco li { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 6px 10px; align-items: start; padding: 11px 18px; border-bottom: 1px solid #e3e9e7; } /* taste-skill-ignore: riga dell'interfaccia (data-ui) */
.ui-elenco li:first-child { background: #eef6f4; }
.ui-elenco li div b { display: block; font-weight: 500; }
.ui-elenco li div span { color: var(--tenue); font-size: 14px; }
.ui-elenco em { font-style: normal; font-size: 13px; padding: 3px 8px; border-radius: 4px; background: var(--carta-2); white-space: nowrap; }
.ui-elenco em.urg { background: #fde7e5; color: var(--allarme); }
.ui-elenco em.sca { background: #fff2cc; color: #6b4e00; }
.can { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; font: 500 12px/1 var(--testo); color: var(--bianco); background: var(--notte); }
.can.w { background: #1f9d55; }
.can.h { background: #8a5a00; }
.ui-nota { padding: 12px 18px; background: #eef6f4; font-size: 14px; }
.ui-nota b { color: var(--acqua); font-weight: 500; margin-right: 6px; }
.foglio { padding: 18px 22px; display: grid; gap: 8px; }
.foglio .ogg { font-weight: 500; font-size: 16px; }
.foglio u { text-decoration-color: var(--acqua-chiara); text-decoration-thickness: 2px; }
.ui-verifica { list-style: none; margin: 0; padding: 6px 18px 14px; display: grid; gap: 6px; font-size: 14px; }
.ui-verifica li, #tNote li { position: relative; padding-left: 26px; }
.ui-verifica li::before, #tNote li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 13px; clip-path: polygon(4px 0, 12px 0, 16px 100%, 0 100%); background: var(--acqua); }
.ui-verifica li.no::before, #tNote li.no::before { background: var(--allarme); }
.sett { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: #e3e9e7; }
.sett > div { background: var(--bianco); padding: 10px 8px; min-height: 150px; display: flex; flex-direction: column; gap: 6px; }
.sett b { font-weight: 500; font-size: 13px; color: var(--tenue); }
.ev { font-size: 12.5px; line-height: 1.3; padding: 5px 6px; background: var(--menta); border-left: 3px solid var(--acqua); }
.ev.g { background: #e6eef8; border-color: #3b6ea8; }
.ev.s { background: #fff2cc; border-color: #b58400; }
.ev.conf { background: #fde7e5; border-color: var(--allarme); }
.ui-sost table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ui-sost th, .ui-sost td { text-align: left; padding: 10px 18px; border-bottom: 1px solid #e3e9e7; }
.ui-sost th { font-weight: 500; color: var(--tenue); font-size: 13px; }

/* ================================================================ tito */
.tito { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: clamp(24px, 3vw, 48px); padding-top: clamp(120px, 14vw, 200px); align-items: start; }
.tito-testo p { margin-top: 24px; max-width: 42ch; }
.ui-prova { padding-bottom: 18px; background: var(--bianco); }
.ui-prova label { display: block; padding: 14px 18px 0; font-size: 14px; color: var(--tenue); }
.ui-prova input, .modulo input:not([type=radio]):not([type=checkbox]) {
  display: block; width: 100%; margin-top: 6px; padding: 12px 12px; font: 400 16px/1.3 var(--testo); color: var(--inchiostro);
  background: var(--bianco); border: 1px solid #b9c7c3; border-radius: 6px;
}
.ui-prova input:focus, .modulo input:focus { outline: 3px solid var(--acqua-chiara); outline-offset: 0; border-color: var(--acqua); }
.ui-prova .due { display: grid; grid-template-columns: 1fr 1fr; }
.esito-tito { background: var(--menta); padding: 24px; min-height: 100%; }
.esito-tito h3 { font-size: var(--step-lead); margin-bottom: 16px; }
#tNote { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#tNote li { animation: nota .3s var(--esce); }
@keyframes nota { from { opacity: 0; transform: translateY(8px); } }

/* ================================================================ approva */
.approva {
  position: relative; margin-top: clamp(96px, 10vw, 150px); min-height: 92svh; overflow: hidden;
  background: var(--notte); color: var(--carta); padding-top: clamp(56px, 7vw, 96px); transition: background-color .45s;
}
.approva.si { background: var(--acqua); }
.approva-testo { position: relative; z-index: 2; max-width: 780px; }
.approva-testo p { max-width: 44ch; }

.approva-testo p { margin-top: 20px; }
.stato-bozza { font-weight: 500; }
.interruttore-grande { position: absolute; right: var(--margine); bottom: 10svh; font-size: clamp(56px, 13vh, 150px); background: none; border-radius: 0; overflow: visible; }
.interruttore-grande button { display: flex; flex-direction: column; align-items: flex-start; gap: .3em; background: none; border: 0; padding: 0; cursor: pointer; color: var(--carta); font: 300 1em/1 var(--display); letter-spacing: -0.02em; }
.binario { position: relative; width: 4.4em; height: 2.4em; border-radius: 1.2em; background: #3a5368; transition: background-color .3s; flex: none; }
.pomello { position: absolute; top: .2em; left: .2em; width: 2em; height: 2em; border-radius: 50%; background: var(--carta); transition: transform .35s var(--esce); }
.interruttore-grande button[aria-checked="true"] .binario { background: var(--notte); }
.interruttore-grande button[aria-checked="true"] .pomello { transform: translateX(2em); }
.interruttore-grande button:hover .pomello { transform: scale(1.04); }
.interruttore-grande button[aria-checked="true"]:hover .pomello { transform: translateX(2em) scale(1.04); }
.etichetta { white-space: nowrap; font-size: .5em; letter-spacing: -0.015em; }

/* ================================================================ tappe */
.tappe { padding-top: clamp(120px, 14vw, 200px); }
.barra { display: flex; gap: 6px; margin-top: 64px; background: none; border-radius: 0; overflow: visible; font: inherit; }
.seg { min-height: 22vh; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.seg b { font: 300 var(--step-lead)/1.1 var(--display); }
.seg p { font-size: var(--step-body); max-width: 30ch; }
.s1 { flex: 14 1 0; background: var(--menta); }
.s2 { flex: 22 1 0; background: var(--acqua); color: var(--bianco); }
.s3 { flex: 64 1 0; background: var(--notte); color: var(--carta); }

/* ================================================================ piani */
.piani { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 120px); padding-top: clamp(120px, 14vw, 200px); align-items: start; }
.nomi { margin-top: 40px; display: grid; }
.nomi button[role=tab] {
  display: flex; align-items: center; gap: .3em; background: none; border: 0; cursor: pointer; padding: 6px 0; text-align: left;
  font: 300 var(--step-head)/1.1 var(--display); letter-spacing: -0.03em; color: #687a76; transition: color .2s;
}
.nomi button[role=tab]::before { content: ""; width: .32em; height: .28em; flex: none; background: var(--acqua); clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%); transform: scale(.6); opacity: 0; transition: transform .24s var(--esce), opacity .24s; }
.nomi button[aria-selected=true] { color: var(--inchiostro); }
.nomi button[aria-selected=true]::before { transform: none; opacity: 1; }
.nomi button:hover { color: var(--inchiostro); }
.palco { background: var(--carta-2); padding: clamp(24px, 3vw, 48px); min-height: 440px; display: grid; align-content: start; }
.palco > .scena { grid-area: 1 / 1; display: grid; gap: 20px; justify-items: start; animation: nota .2s; }
.palco > .scena[hidden] { display: none; }
.cifra { font: 300 var(--step-big)/.9 var(--display); letter-spacing: -0.04em; }
.cifra small { font: 400 var(--step-lead)/1 var(--display); letter-spacing: -0.01em; }
.nota-prezzo { grid-area: 2 / 1; margin-top: 28px; color: var(--tenue); font-size: var(--step-small); }

/* ================================================================ prova */
.prova {
  margin-top: clamp(96px, 10vw, 150px); background: var(--acqua); color: var(--bianco); min-height: 90svh;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 96px); align-items: center;
  padding-top: clamp(64px, 8vw, 120px); padding-bottom: clamp(48px, 6vw, 96px);
}
.prova-testo h2 { font-size: var(--step-big); line-height: .95; }
.prova-testo p { margin-top: 24px; max-width: 44ch; }
.modulo { justify-self: end; width: min(480px, 100%); padding: 28px; box-shadow: 0 30px 60px rgba(6, 30, 26, .35); /* taste-skill-ignore: finestra di dialogo del prodotto (data-ui) */ align-self: center; font-size: 15px; }
.modulo h3 { font-size: var(--step-lead); margin-bottom: 18px; }
.modulo > label, .modulo fieldset { display: block; margin: 0 0 14px; font-size: 14px; color: var(--tenue); }
.modulo small { color: var(--tenue); font-size: 13px; }
.modulo label > small:last-child { display: block; margin-top: 4px; }
.maiuscolo { text-transform: uppercase; }
.esca { position: absolute; left: -9999px; width: 2px; height: 2px; opacity: 0; }
.segmenti { border: 0; padding: 0; display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 0; }
.segmenti legend { padding: 0; margin-bottom: 6px; }
.segmenti label { position: relative; }
.segmenti input { position: absolute; opacity: 0; inset: 0; }
.segmenti span { display: block; text-align: center; padding: 11px 6px; background: var(--carta-2); color: var(--inchiostro); font-size: 15px; cursor: pointer; transition: background-color .15s; }
.segmenti label:first-of-type span { border-radius: 6px 0 0 6px; }
.segmenti label:last-of-type span { border-radius: 0 6px 6px 0; }
.segmenti input:checked + span { background: var(--notte); color: var(--bianco); }
.segmenti input:focus-visible + span { outline: 3px solid var(--acqua-chiara); }
.spunta { display: flex !important; gap: 10px; align-items: flex-start; line-height: 1.4; }
.spunta input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--acqua); flex: none; }
.spunta a { color: var(--acqua); }
.modulo .tasto { width: 100%; margin-top: 6px; }
.errore { background: #fde7e5; color: var(--allarme); padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; }

/* ================================================================ domande */
.domande { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 72px); padding-top: clamp(120px, 14vw, 200px); align-items: start; }
.domande h2 { position: sticky; top: 96px; }
.tessere { display: grid; gap: 8px; }
.tessere details { background: var(--carta-2); transition: background-color .2s; }
.tessere summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 72px; padding: 16px 24px; font: 500 var(--step-body)/1.3 var(--testo); }
.tessere summary::-webkit-details-marker { display: none; }
.piu { position: relative; flex: none; width: 16px; height: 16px; }
.piu::before, .piu::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform .2s var(--esce); }
.piu::after { transform: rotate(90deg); }
.tessere details[open] { background: var(--notte); color: var(--carta); }
.tessere details[open] .piu::after { transform: rotate(0deg); }
.tessere summary:hover { background: rgba(0, 119, 105, .08); }
.tessere details p { padding: 0 24px 24px; max-width: 60ch; font-size: var(--step-body); }
.tessere details a { color: var(--acqua-chiara); }

/* ================================================================ piede */
.piede { margin-top: clamp(120px, 14vw, 200px); padding: 0 var(--margine) 28px; }
.grande-a { width: 100%; height: auto; }
.piede-righe { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; margin-top: 56px; }
.piede-righe ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 15px; }
.piede-righe a { text-decoration: none; }
.piede-righe a:hover { text-decoration: underline; text-decoration-color: var(--acqua); text-underline-offset: 4px; }
.piede address { font-style: normal; font-size: 15px; line-height: 1.6; }
.piede-fondo { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-size: 15px; color: var(--tenue); }

/* ================================================================ entrate */
.js .entra, .js .lavoro .indice li, .js .tito > *, .js .seg, .js .tessere details, .js .prova > *, .js .palco { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--esce), transform .6s var(--esce); }
.js .visto { opacity: 1 !important; transform: none !important; }
.cartelle .cartella { animation: sale .8s var(--esce) both; }
.c1 { animation-delay: .05s !important; } .c2 { animation-delay: .12s !important; } .c3 { animation-delay: .19s !important; } .c4 { animation-delay: .26s !important; } .c5 { animation-delay: .33s !important; }
@keyframes sale { from { transform: translateY(120px); } }

/* ================================================================ telefono */
@media (max-width: 900px) {
  .lavoro, .tito, .piani, .domande, .prova, .piede-righe { grid-template-columns: minmax(0, 1fr); }
  .cornice { display: none; }
  .indice .ui { display: block; margin: 8px 0 18px; }
  .indice button { font-size: 1.25rem; padding: 12px 0; opacity: 1; }
  .domande h2 { position: static; }
  .barra { flex-direction: column; }
  .seg { min-height: 72px; }
  .s1 { flex: none; min-height: 120px; } .s2 { flex: none; min-height: 170px; } .s3 { flex: none; min-height: 300px; }
  .esito-tito { min-height: 0; }
  .prova { align-items: start; }
  .modulo { justify-self: stretch; width: 100%; }
}
@media (min-width: 901px) { .indice .ui { display: none; } }
@media (max-width: 640px) {
  .titolo { padding-top: 72px; }
  .titolo h1 { font-size: 22vw; }
  .titolo p { font-size: 1.125rem; }
  .cartelle { min-height: 330px; }
  .cartella { left: 0; right: 0; }
  .c2 { top: 52px; } .c3 { top: 104px; } .c4 { top: 156px; } .c5 { top: 208px; left: 0; right: 0; }
  .cartella .linguetta { height: 34px; padding: 0 20px; font-size: .875rem; }
  .c1 .linguetta { left: 2%; } .c2 .linguetta { left: 34%; } .c3 .linguetta { left: auto; right: 2%; } .c4 .linguetta { left: 8%; } .c5 .linguetta { right: 4%; }
  .dentro { padding: 24px var(--margine); }
  .dentro .tasto { width: 100%; }
  .approva { min-height: 86svh; }
  .interruttore-grande { right: auto; left: var(--margine); bottom: 5svh; font-size: 19vw; }
  .etichetta { font-size: .45em; }
  .nomi button[role=tab] { font-size: 10vw; }
  .palco { min-height: 0; }
  .palco .cifra { font-size: 20vw; }
  .palco .tasto { width: 100%; }
  .prova-testo h2 { font-size: 13vw; }
  .modulo { padding: 20px; }
  .modulo .tasto { min-height: 52px; }
  .tessere summary { font-size: 18px; min-height: 64px; padding: 14px 20px; }
  .tessere details p { font-size: 16px; padding: 0 20px 20px; }
  .piede-fondo { gap: 12px; }
  .sett { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .sett > div { padding: 6px 4px; min-height: 120px; }
  .ev { font-size: 11px; }
  .ui-elenco li { grid-template-columns: 28px 1fr; }
  .ui-elenco li em { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .entra, .js .lavoro .indice li, .js .tito > *, .js .seg, .js .tessere details, .js .prova > *, .js .palco { opacity: 1; transform: none; }
}
@media (max-width: 900px) { .indice li:not(.aperto) .ui { display: none; } }
