/* Studio Adunia – foglio di stile */

@font-face { font-family: "Inter"; src: url("font/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("font/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("font/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("font/InterDisplay-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("font/InterDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --inchiostro: #17243d;      /* fondo principale, testo */
  --inchiostro-2: #22324f;    /* superfici sul fondo scuro */
  --carta: #f2eee6;           /* fondo chiaro */
  --carta-2: #e7e0d3;         /* linee su fondo chiaro */
  --terracotta: #a9482a;      /* solo il punto di convergenza e le azioni */
  --pietra: #5f6572;          /* testo secondario */
  --nebbia: #aab3c5;          /* testo secondario su scuro */

  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --testo: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --misura: 38rem;
  --bordo: 1.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--carta); color: var(--inchiostro);
  font: 400 1.0625rem/1.6 var(--testo); font-feature-settings: "kern", "calt";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; border-radius: 2px; }
.salta { position: absolute; left: -999px; top: 0; background: var(--carta); padding: .6rem 1rem; z-index: 10; }
.salta:focus { left: 1rem; top: 1rem; }

.contenitore { width: min(72rem, 100% - 2 * var(--bordo)); margin-inline: auto; }

/* ---------- Testata ---------- */
.testata { background: var(--inchiostro); color: var(--carta); }
.testata .contenitore { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.25rem; }
.marchio { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 500; font-size: 1.05rem; letter-spacing: .01em; }
.marchio svg { width: 30px; height: 30px; }
.navigazione { display: flex; gap: 1.6rem; font-size: .95rem; }
.navigazione a { text-decoration: none; color: var(--nebbia); }
.navigazione a:hover { color: var(--carta); }

/* ---------- Apertura ---------- */
.apertura { background: var(--inchiostro); color: var(--carta); padding: 3.5rem 0 5.5rem; overflow: hidden; }
.convergenza { position: relative; margin-bottom: 2.75rem; }
.lettere {
  display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none;
  font: 300 clamp(3.4rem, 13vw, 10.5rem)/1 var(--display); letter-spacing: -.02em; text-align: center;
}
.lettere li { color: var(--carta); }
.linee { width: 100%; height: clamp(7rem, 16vw, 12rem); margin-top: .9rem; overflow: visible; }
.linee line { stroke: var(--nebbia); stroke-width: .6; }
.linee .discesa { stroke: var(--carta); }
.traccia { position: relative; }
.punto { position: absolute; left: 50%; top: 85%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--terracotta); }

.apertura h1 {
  font: 500 clamp(2rem, 4.6vw, 3.6rem)/1.08 var(--display); letter-spacing: -.02em;
  max-width: 16ch; margin: 0 auto; text-align: center;
}
.apertura .sotto { max-width: 34rem; margin: 1.4rem auto 0; text-align: center; color: var(--nebbia); font-size: 1.125rem; }
.azioni { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.2rem; }
.bottone {
  display: inline-block; padding: .85rem 1.35rem; border-radius: 999px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s, color .15s;
}
.bottone.pieno { background: var(--terracotta); color: #fff; }
.bottone.pieno:hover { background: #8f3b21; }
.bottone.vuoto { border-color: var(--nebbia); color: var(--carta); }
.bottone.vuoto:hover { background: var(--inchiostro-2); }

/* Un solo movimento: le linee si disegnano all'apertura */
@media (prefers-reduced-motion: no-preference) {
  .linee line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: traccia 1.1s cubic-bezier(.6,.1,.2,1) forwards; }
  .linee line:nth-child(2) { animation-delay: .06s; } .linee line:nth-child(3) { animation-delay: .12s; }
  .linee line:nth-child(4) { animation-delay: .12s; } .linee line:nth-child(5) { animation-delay: .06s; }
  .linee .discesa { animation-delay: 1s; animation-duration: .5s; }
  .punto { transform: scale(0); animation: punto .35s ease-out .95s forwards; }
}
@keyframes traccia { to { stroke-dashoffset: 0; } }
@keyframes punto { to { transform: scale(1); } }

/* ---------- Sezioni ---------- */
.sezione { padding: 6rem 0; }
.sezione + .sezione { border-top: 1px solid var(--carta-2); }
.sezione h2 { font: 500 clamp(1.75rem, 3.4vw, 2.6rem)/1.12 var(--display); letter-spacing: -.015em; margin: 0 0 1rem; max-width: 22ch; }
.intro { max-width: var(--misura); color: var(--pietra); margin: 0 0 3rem; font-size: 1.125rem; }
.testa-sezione { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.testa-sezione .intro { margin: 0; }

/* Manifesto */
.manifesto { padding: 6.5rem 0; }
.manifesto p { margin: 0; max-width: 30ch; font: 300 clamp(1.6rem, 3.3vw, 2.5rem)/1.25 var(--display); letter-spacing: -.01em; }
.manifesto p + p { margin-top: .4em; }
.manifesto .chiusa { margin-top: 2.5rem; font: 400 1.125rem/1.6 var(--testo); color: var(--pietra); max-width: var(--misura); letter-spacing: 0; }
.manifesto .chiusa strong { color: var(--inchiostro); font-weight: 600; }

/* Metodo */
.metodo { background: var(--inchiostro); color: var(--carta); }
.metodo .intro { color: var(--nebbia); }
.fasi { display: grid; grid-template-columns: repeat(6, 1fr); border-bottom: 1px solid var(--inchiostro-2); }
.fasi button {
  appearance: none; background: none; border: 0; color: var(--nebbia); cursor: pointer; text-align: left;
  padding: 0 .75rem 1.1rem 0; font: inherit; position: relative;
}
.fasi .lettera { display: block; font: 300 clamp(2.6rem, 6vw, 4.6rem)/1 var(--display); color: var(--carta); opacity: .45; transition: opacity .15s; }
.fasi .nome { display: block; margin-top: .5rem; font-size: .95rem; }
.fasi button[aria-selected="true"] .lettera, .fasi button:hover .lettera { opacity: 1; }
.fasi button[aria-selected="true"] { color: var(--carta); }
.fasi button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: .75rem; bottom: -1px; height: 2px; background: var(--terracotta); }
.pannello { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; padding-top: 2.5rem; min-height: 15rem; }
.pannello h3 { font: 500 1.6rem/1.2 var(--display); margin: 0 0 .8rem; }
.pannello p { margin: 0; max-width: var(--misura); font-size: 1.125rem; }
.pannello .esito { border-left: 1px solid var(--inchiostro-2); padding-left: 2rem; color: var(--nebbia); }
.pannello .esito h4 { margin: 0 0 .5rem; font-weight: 500; font-size: .95rem; color: var(--carta); }
.pannello .esito ul { margin: 0; padding: 0; list-style: none; }
.pannello .esito li { padding: .3rem 0; }
.pannello[hidden] { display: none; }
.sintesi { margin-top: 3rem; color: var(--nebbia); font-size: .98rem; max-width: 46rem; }

/* Servizi */
.servizi-principali { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 0 0 4rem; padding: 0; list-style: none; }
.servizi-principali li { border-top: 2px solid var(--inchiostro); padding-top: 1.2rem; }
.servizi-principali h3 { font: 500 1.35rem/1.25 var(--display); margin: 0 0 .7rem; }
.servizi-principali p { margin: 0 0 1rem; }
.per-chi { color: var(--pietra); font-size: .95rem; }
.per-chi b { font-weight: 600; color: var(--inchiostro); }
.servizi-altri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
.servizi-altri li { border-top: 1px solid var(--carta-2); padding-top: 1rem; }
.servizi-altri h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 .4rem; }
.servizi-altri p { margin: 0; color: var(--pietra); font-size: .98rem; }
.etichetta-gruppo { font-weight: 500; color: var(--pietra); margin: 0 0 1.25rem; }

/* Come si lavora */
.formati { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; margin: 0; }
.formati div { padding-top: 1.2rem; border-top: 1px solid var(--inchiostro); }
.formati dt { font: 500 1.25rem/1.3 var(--display); margin-bottom: .5rem; }
.formati dd { margin: 0; color: var(--pietra); }
.formati dd em { display: block; margin-top: .8rem; font-style: normal; color: var(--inchiostro); font-size: .95rem; }
.settori { margin-top: 4.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem 4rem; }
.settori h3 { margin: 0; font: 500 1.25rem/1.3 var(--display); }
.settori p { margin: 0; font-size: 1.125rem; max-width: var(--misura); }

/* Chi sono */
.chi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3rem 5rem; }
.ritratto { display: block; width: min(15rem, 60%); margin-bottom: 2rem; }
.ritratto img { width: 100%; height: auto; border-radius: 4px; }
.chi .ritratto-testo p { margin: 0 0 1.1rem; max-width: var(--misura); }
.chi .ritratto-testo p:first-of-type { font-size: 1.2rem; }
.differenze { margin: 0; padding: 0; list-style: none; }
.differenze li { padding: 1.1rem 0; border-top: 1px solid var(--carta-2); }
.differenze li:last-child { border-bottom: 1px solid var(--carta-2); }
.differenze h3 { margin: 0 0 .3rem; font-weight: 600; font-size: 1.05rem; }
.differenze p { margin: 0; color: var(--pietra); }
.certificazioni { margin-top: 2rem; color: var(--pietra); font-size: .95rem; }
.certificazioni b { color: var(--inchiostro); font-weight: 600; }

/* Contatti */
.contatti { background: var(--inchiostro); color: var(--carta); padding: 6.5rem 0 5rem; }
.contatti h2 { font: 500 clamp(1.75rem, 3.4vw, 2.6rem)/1.12 var(--display); margin: 0 0 1rem; letter-spacing: -.015em; }
.contatti .intro { color: var(--nebbia); }
.email {
  display: inline-block; font: 300 clamp(1.7rem, 5.2vw, 4rem)/1.1 var(--display); letter-spacing: -.02em;
  text-decoration: none; border-bottom: 2px solid var(--terracotta); padding-bottom: .15em; word-break: break-word;
}
.email:hover { border-bottom-width: 4px; }
.dove { margin-top: 2.5rem; color: var(--nebbia); max-width: var(--misura); }

.piede { background: var(--inchiostro); color: var(--nebbia); font-size: .9rem; }
.piede .contenitore { border-top: 1px solid var(--inchiostro-2); padding-block: 1.6rem 2.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.piede p { margin: 0; }

/* Pagina privacy */
.documento { padding: 4rem 0 6rem; }
.documento .contenitore { max-width: 44rem; }
.documento h1 { font: 500 clamp(2rem, 4vw, 2.8rem)/1.1 var(--display); margin: 0 0 1.5rem; letter-spacing: -.015em; }
.documento h2 { font: 500 1.3rem/1.3 var(--display); margin: 2.5rem 0 .6rem; }
.documento p, .documento li { max-width: var(--misura); }
.documento .aggiornato { color: var(--pietra); }

/* ---------- Schermi stretti ---------- */
@media (max-width: 860px) {
  .navigazione { display: none; }
  .testa-sezione, .chi, .settori, .pannello { grid-template-columns: 1fr; }
  .servizi-principali, .servizi-altri, .formati { grid-template-columns: 1fr; gap: 2rem; }
  .pannello .esito { border-left: 0; border-top: 1px solid var(--inchiostro-2); padding: 1.5rem 0 0; }
  .sezione, .manifesto { padding: 4.5rem 0; }
}
@media (max-width: 560px) {
  :root { --bordo: 1.1rem; }
  .fasi .nome { font-size: .78rem; }
  .apertura { padding-top: 2.5rem; }
}
