/* La Bottega dei Siti: verde bottiglia, crema e ottone; Playfair Display per i titoli, Instrument Sans per i testi.
   Stessi colori e caratteri dei contenuti social (_STUDIO/social). Niente caricato da altri server. */

@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-italic-var.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --verde: #1f3d2b; --verde-luce: #244632; --verde-ombra: #1a3425; --verde-notte: #0f1f16;
  --crema: #f4efe6; --crema-ombra: #eee7da; --carta: #fffdf8; --sabbia: #e4dccb;
  --ottone: #d9b65a; --ottone-chiaro: #e6c873; --ottone-scuro: #96701f; --ottone-testo: #7d5f17;
  --bordo: clamp(20px, 5vw, 56px);
  --dolce: cubic-bezier(.22, 1, .36, 1);
  --titoli: "Playfair Display", Georgia, "Times New Roman", serif;
  --testi: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--testi); font-size: 1.0625rem; line-height: 1.55; color: var(--verde); background: var(--verde); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { width: min(1180px, 100% - 2 * var(--bordo)); margin-inline: auto; }
.verde { background: var(--verde); color: var(--crema); --acc: var(--ottone); --tenue: #c9d3c5; --linea: rgba(244, 239, 230, .18); --fuoco: var(--ottone); }
.crema { background: var(--crema); color: var(--verde); --acc: var(--ottone-scuro); --tenue: #4d5f52; --linea: rgba(31, 61, 43, .16); --fuoco: var(--verde); }
:focus-visible { outline: 3px solid var(--fuoco, var(--ottone)); outline-offset: 3px; border-radius: 4px; }

.salta { position: absolute; left: 12px; top: -80px; z-index: 50; background: var(--ottone); color: var(--verde); padding: 12px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.salta:focus { top: 12px; }

/* ---------- titoli e testi ---------- */
h1, h2, h3 { font-family: var(--titoli); font-weight: 600; letter-spacing: -.012em; line-height: 1.07; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 1.35rem + 4.7vw, 4.9rem); }
h2 { font-size: clamp(2.05rem, 1.3rem + 3vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
h1 i, h2 i { font-style: italic; color: var(--acc); }
.occhiello { font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); margin-bottom: 1.4rem; }
.crema .occhiello { color: var(--ottone-testo); }
.guida { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.5; color: var(--tenue); max-width: 34em; text-wrap: pretty; }
.nota { font-size: .95rem; color: var(--tenue); margin-top: 1.1rem; }
.numero { display: block; font-family: var(--titoli); font-style: italic; font-weight: 500; font-size: clamp(4.4rem, 3rem + 5vw, 6.4rem); line-height: .86; color: var(--acc); margin-bottom: .32em; }
.etichetta { display: inline-block; vertical-align: middle; margin-left: .5em; padding: .28em .8em .3em; border-radius: 999px; background: var(--sabbia); color: var(--verde); font-family: var(--testi); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.6rem; border-radius: 999px; border: 2px solid transparent; font-family: var(--testi); font-size: 1.02rem; font-weight: 600; line-height: 1.1; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .2s var(--dolce), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ottone { background: var(--ottone); color: var(--verde); }
.btn-ottone:hover { background: var(--ottone-chiaro); box-shadow: 0 10px 24px -12px rgba(217, 182, 90, .8); }
.btn-verde { background: var(--verde); color: var(--crema); }
.btn-verde:hover { background: var(--verde-luce); box-shadow: 0 10px 24px -12px rgba(31, 61, 43, .7); }
.btn-linea { background: transparent; color: inherit; border-color: currentColor; }
.btn-linea:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-piccolo { min-height: 44px; padding: 0 1.15rem; font-size: .95rem; }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* ---------- testata ---------- */
.testata { position: sticky; top: 0; z-index: 20; background: var(--verde); color: var(--crema); border-bottom: 1px solid rgba(244, 239, 230, .14); --fuoco: var(--ottone); }
.testata-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.marca { font-family: var(--titoli); font-weight: 600; font-size: 1.28rem; letter-spacing: -.005em; text-decoration: none; white-space: nowrap; }
.testata .marca { display: inline-flex; align-items: center; gap: .28em; min-height: 44px; }
@media (max-width: 349px) { .testata .marca { font-size: 1.14rem; } }
.marca i { font-weight: 500; color: var(--ottone); }
.bozza { padding: .2em .7em .24em; border: 1px solid rgba(244, 239, 230, .4); border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #c9d3c5; }
.testata-nav { display: none; margin-left: auto; gap: clamp(14px, 2vw, 28px); }
.testata-nav a { position: relative; padding: 10px 0; font-size: .95rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.testata-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 2px; background: var(--ottone); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--dolce); }
.testata-nav a:hover::after, .testata-nav a:focus-visible::after { transform: scaleX(1); }
.testata .btn { margin-left: auto; }
@media (min-width: 1020px) {
  .testata-nav { display: flex; }
  .testata .btn { margin-left: 8px; }
}

section { padding-block: clamp(72px, 9vw, 132px); }
section[id] { scroll-margin-top: 64px; }
.testa-sezione { max-width: 52rem; }
.testa-sezione .guida { margin-top: 1.4rem; }
.due-colonne { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
.colonna-testo .guida { margin-top: 1.4rem; }
@media (min-width: 900px) { .due-colonne { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- 1. apertura ---------- */
.apertura { padding-block: clamp(48px, 7vw, 96px) 0; overflow: hidden; background: radial-gradient(120% 90% at 18% 20%, var(--verde-luce) 0%, var(--verde) 55%, var(--verde-ombra) 100%); }
.apertura-in { display: grid; gap: 44px; }
.apertura-testo .guida { margin-top: 1.5rem; }
.misura { display: flex; gap: .7em; align-items: baseline; margin-top: 1.8rem; min-height: 3em; font-size: .92rem; color: var(--tenue); max-width: 30em; }
.misura::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ottone); transform: translateY(-1px); }
.apertura-foglio { height: 250px; display: flex; justify-content: center; }
@media (min-width: 900px) {
  .apertura { padding-bottom: clamp(48px, 7vw, 96px); }
  .apertura-in { grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: clamp(36px, 5vw, 80px); align-items: center; min-height: min(72vh, 640px); }
  .apertura-foglio { height: auto; }
}

/* il foglio della Diagnosi */
.foglio { background: var(--carta); color: var(--verde); border-radius: 6px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 34px 70px -28px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .7) inset; --fuoco: var(--verde); }
.foglio-marca { font-family: var(--titoli); font-weight: 600; font-size: .95rem; margin-bottom: 1.1rem; }
.foglio-marca i { font-weight: 500; color: var(--ottone-testo); }
.foglio-titolo { font-family: var(--titoli); font-style: italic; font-weight: 600; font-size: clamp(2rem, 1.5rem + 1.6vw, 2.7rem); line-height: 1.05; }
.foglio-per { margin-top: .5rem; font-weight: 600; }
.foglio-filo { display: block; width: 72px; height: 4px; background: var(--ottone-scuro); margin: 1rem 0 1.4rem; }
.foglio-firma { margin-top: 1.4rem; font-family: var(--titoli); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--ottone-testo); }
.foglio b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--verde); color: var(--ottone); font-family: var(--titoli); font-style: italic; font-weight: 600; font-size: 1.05rem; line-height: 1; }

.foglio-mini { width: min(360px, 100%); align-self: flex-start; transform: rotate(-4deg); transform-origin: 50% 0; }
.foglio-voci li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid rgba(31, 61, 43, .13); }
.foglio-voci span { flex: 1; font-family: var(--titoli); font-weight: 600; font-size: 1.02rem; line-height: 1.2; padding-top: 6px; }
.foglio-voci span i { display: block; height: 7px; border-radius: 4px; background: #e6dfd0; margin-top: 9px; }
.foglio-voci span i + i { width: 62%; margin-top: 7px; }

/* ---------- 2. le cinque prove ---------- */
.prove { background: var(--carta); border: 1px solid var(--linea); border-radius: 28px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 60px -36px rgba(31, 61, 43, .45); }
.prove-lista > li { padding: 20px 0; border-top: 1px solid var(--linea); }
.prove-lista > li:first-child { border-top: 0; padding-top: 0; }
.prove-lista > li:last-child { padding-bottom: 0; }
.prove-lista .numero { font-size: 2.6rem; margin-bottom: .2em; }
.prove-lista p { margin-top: .5rem; font-size: 1.1rem; color: var(--tenue); }
/* con JavaScript: una prova alla volta */
.prove[data-pronto] .prove-lista > li { display: none; padding: 0; border: 0; min-height: 15.5rem; }
.prove[data-pronto] .prove-lista > li.attiva { display: block; }
.prove[data-pronto] .prove-lista .numero { font-size: clamp(4.6rem, 3rem + 5vw, 6.2rem); margin-bottom: .3em; }
.prove[data-pronto] .prove-lista h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); }
.prove[data-pronto] .prove-lista p { font-size: 1.2rem; margin-top: .8rem; }
.prove-testa { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 1.6rem; }
.prove-conta { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tenue); }
.prove-punti { display: flex; gap: 8px; }
.prove-punti i { width: 14px; height: 14px; border-radius: 50%; background: var(--sabbia); transition: background-color .25s, transform .25s var(--dolce); }
.prove-punti i.ora { background: transparent; box-shadow: inset 0 0 0 3px var(--verde); transform: scale(1.15); }
.prove-punti i.si { background: var(--verde); }
.prove-punti i.no { background: var(--ottone-scuro); }
.prove-azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 1.4rem; }
.prove-azioni .btn { padding-inline: .7rem; }
.prove-azioni[hidden], .prove-testa[hidden], .prove-lista[hidden] { display: none; }
.prove-esito:focus { outline: none; }
.esito-voto { display: flex; align-items: baseline; gap: .35em; font-family: var(--titoli); font-style: italic; color: var(--acc); line-height: .9; margin-bottom: 1rem; }
.esito-voto b { font-weight: 500; font-size: clamp(4.6rem, 3rem + 5vw, 6.2rem); }
.esito-voto span { font-weight: 500; font-size: 1.6rem; }
.prove-esito h3 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); }
.prove-esito ul { margin-top: 1rem; display: grid; gap: .45rem; }
.prove-esito li { display: flex; gap: .7em; align-items: baseline; font-weight: 600; }
.prove-esito li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ottone-scuro); }
.prove-esito p:not(.esito-voto) { margin-top: 1rem; color: var(--tenue); font-size: 1.08rem; }
.prove-esito .azioni { margin-top: 1.5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- 3. la Diagnosi ---------- */
.banco { display: grid; gap: clamp(40px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .banco { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); } }
.problemi > li { border-top: 1px solid rgba(31, 61, 43, .14); }
.problemi h3 { font: inherit; letter-spacing: 0; }
.problemi button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 0; background: none; border: 0; text-align: left; cursor: default; color: var(--verde); }
.problemi button span { flex: 1; font-family: var(--titoli); font-weight: 600; font-size: clamp(1.12rem, 1rem + .6vw, 1.36rem); line-height: 1.2; }
.problemi dl { display: grid; gap: 12px; margin: 2px 0 20px 50px; }
.problemi dt { font-size: .75rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ottone-testo); }
.problemi dd { margin-top: 2px; }
.banco[data-pronto] .problemi button { cursor: pointer; }
.banco[data-pronto] .problemi button::after { content: ""; flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2.5px solid var(--verde); border-bottom: 2.5px solid var(--verde); transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--dolce); }
.banco[data-pronto] .problemi li.aperto button::after { transform: rotate(-135deg) translateY(-2px); }
.banco[data-pronto] .problemi li:not(.aperto) dl { display: none; }
.banco[data-pronto] .problemi li:not(.aperto) button:hover span { color: var(--ottone-testo); }
.banco[data-pronto] .problemi li.aperto b { background: var(--ottone); color: var(--verde); }

.telefono-colonna { display: grid; justify-items: center; gap: 22px; }
.scambio { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: rgba(244, 239, 230, .1); border: 1px solid var(--linea); }
.scambio button { min-height: 44px; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; font-size: .9rem; font-weight: 600; cursor: pointer; color: var(--crema); transition: background-color .25s, color .25s; }
.scambio button[aria-pressed="true"] { background: var(--ottone); color: var(--verde); }
.banco:not([data-pronto]) .scambio { display: none; }
.nota-chiara { margin-top: 0; text-align: center; }

.telefono { position: relative; width: min(300px, 80vw); aspect-ratio: 300 / 580; border-radius: 46px; background: var(--verde-notte); box-shadow: 0 44px 80px -34px rgba(0, 0, 0, .7), 0 0 0 1px rgba(244, 239, 230, .16); }
.schermo { position: absolute; inset: 10px; border-radius: 36px; overflow: hidden; background: #fff; color: #222; transition: opacity .4s, transform .5s var(--dolce), visibility 0s; }
.telefono[data-vista="prima"] .schermo-dopo, .telefono[data-vista="dopo"] .schermo-prima { opacity: 0; visibility: hidden; transition: opacity .3s, transform .5s var(--dolce), visibility 0s .3s; }
.telefono[data-vista="prima"] .schermo-dopo { transform: translateX(7%); }
.telefono[data-vista="dopo"] .schermo-prima { transform: translateX(-7%); }
.banco:not([data-pronto]) .telefono .schermo-prima { opacity: 0; visibility: hidden; }
.banco:not([data-pronto]) .telefono .schermo-dopo { opacity: 1; visibility: visible; transform: none; }
.barra { padding: 26px 16px 9px; background: #ece6da; color: #4d5f52; font-family: var(--testi); font-size: .76rem; font-weight: 500; text-align: center; }

/* il sito vecchio: una pagina da computer rimpicciolita (disegnata due volte e mezza più grande e poi ridotta) */
.vecchio { width: 250%; transform: scale(.4); transform-origin: 0 0; padding: 18px 34px 40px; background: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 15px; line-height: 1.4; color: #2a2a2a; }
.v-menu { display: flex; justify-content: space-between; gap: 10px; margin: 0 -16px; padding: 16px 20px; background: #6b2222; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 13px; font-weight: 700; white-space: nowrap; }
.v-foto { display: grid; place-items: center; height: 250px; margin: 0 -16px; background: linear-gradient(135deg, #bcae93, #85745a); color: #fff; font-size: 30px; font-style: italic; text-align: center; padding: 0 60px; }
.v-colonne { display: grid; grid-template-columns: 1.1fr 1fr .9fr; gap: 34px; padding: 34px 0 10px; }
.v-colonne b, .v-galleria b { display: block; margin-bottom: 12px; font-size: 18px; color: #6b2222; }
.v-colonne span + b { margin-top: 34px; }
.v-colonne i { display: block; height: 9px; margin-bottom: 10px; border-radius: 2px; background: #dcdcdc; }
.v-colonne span { display: block; }
.finto-numero { padding: 5px 8px; background: #efe9dc; border: 1px solid #cfc6b2; font-family: "Courier New", monospace; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.v-galleria { padding-top: 26px; }
.v-galleria p { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.v-galleria span { height: 140px; background: linear-gradient(160deg, #cfc4ad, #a3947a); }
.v-sotto { grid-template-columns: 1.4fr 1fr; padding-top: 36px; }
.v-mappa { height: 250px; background: repeating-linear-gradient(45deg, #e9e6df 0 22px, #dfdbd1 22px 24px), #e9e6df; border: 1px solid #cfcabd; }
.v-piede { margin-top: 30px; padding-top: 14px; border-top: 1px solid #ddd; font-family: Arial, Helvetica, sans-serif; font-size: 12px; color: #6d6d6d; text-align: center; }

/* il sito nuovo */
.nuovo { height: 100%; padding: 18px 16px; background: var(--carta); color: var(--verde); font-family: var(--testi); font-size: .82rem; line-height: 1.35; }
.n-nome { font-family: var(--titoli); font-weight: 600; font-size: 1.5rem; line-height: 1.1; margin-bottom: 12px; }
.n-stato { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 7px; border-radius: 999px; background: #e3eee0; font-size: .76rem; font-weight: 600; margin-bottom: 16px; }
.n-stato span { width: 8px; height: 8px; border-radius: 50%; background: #2c8647; }
.n-azioni { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.n-azioni span { display: grid; place-items: center; height: 42px; border-radius: 999px; background: var(--verde); color: var(--crema); font-weight: 600; }
.n-azioni span + span { background: transparent; color: var(--verde); box-shadow: inset 0 0 0 2px var(--verde); }
.n-menu p { font-family: var(--titoli); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.n-menu li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(31, 61, 43, .14); }
.n-menu li span + span { font-weight: 600; }

/* i tre segni numerati sul telefono: quello scelto nel foglio è pieno */
.segno { position: relative; --k: 1; }
.vecchio .segno { --k: 2.5; }
.segno::after { content: ""; position: absolute; inset: calc(-5px * var(--k)) calc(-7px * var(--k)); border: calc(2px * var(--k)) dashed var(--ottone-scuro); border-radius: calc(9px * var(--k)); pointer-events: none; }
.n-stato.segno::after, .n-azioni.segno::after { border-radius: 999px; }
.segno::before { position: absolute; z-index: 1; top: calc(-14px * var(--k)); right: calc(-12px * var(--k)); display: grid; place-items: center; width: calc(22px * var(--k)); height: calc(22px * var(--k)); border-radius: 50%; background: var(--verde); color: var(--ottone);
  font-family: var(--titoli); font-style: italic; font-weight: 600; font-size: calc(13px * var(--k)); line-height: 1; }
.s1::before { content: "1"; } .s2::before { content: "2"; } .s3::before { content: "3"; }
.telefono[data-problema="1"] .s1::after, .telefono[data-problema="2"] .s2::after, .telefono[data-problema="3"] .s3::after { border-style: solid; background: rgba(217, 182, 90, .2); }
.telefono[data-problema="1"] .s1::before, .telefono[data-problema="2"] .s2::before, .telefono[data-problema="3"] .s3::before { background: var(--ottone); color: var(--verde); }

/* ---------- 4. come lavoriamo ---------- */
.passi { display: grid; gap: 0; margin-top: clamp(36px, 5vw, 64px); }
.passi li { padding: 28px 0; border-top: 1px solid var(--linea); }
.passi h3 { margin-bottom: .6rem; }
.passi p { color: var(--tenue); max-width: 26em; }
@media (min-width: 700px) {
  .passi { grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 48px); }
}
@media (min-width: 1020px) {
  .passi { grid-template-columns: repeat(4, 1fr); }
  .passi li { padding-top: 34px; border-top: 2px solid var(--verde); }
}

/* ---------- 5. i controlli ---------- */
.controlli-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 2rem; max-width: 30rem; }
.controlli-lista li { display: flex; gap: .65em; align-items: baseline; font-size: .98rem; }
.controlli-lista li::before { content: ""; flex: none; width: 13px; height: 7px; border-left: 2.5px solid var(--ottone); border-bottom: 2.5px solid var(--ottone); transform: rotate(-45deg) translateY(-3px); }
.prova-viva { padding: clamp(24px, 4vw, 40px); border: 1px solid var(--linea); border-radius: 28px; background: rgba(244, 239, 230, .05); }
.larghezze { display: flex; align-items: flex-end; gap: clamp(6px, 1.4vw, 14px); padding-bottom: 30px; }
.larghezze span { position: relative; flex: var(--w) 1 0; min-width: 0; aspect-ratio: var(--w) / var(--h); border: 2px solid rgba(244, 239, 230, .42); border-radius: 6px; transition: background-color .3s, border-color .3s; }
.larghezze b { position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%); font-size: .76rem; font-weight: 600; color: var(--tenue); }
.larghezze span.qui { background: var(--ottone); border-color: var(--ottone); }
.larghezze span.qui b { color: var(--ottone); }
.tu-sei-qui { margin-top: 14px; min-height: 3.1em; font-size: .98rem; color: var(--tenue); }
.misure { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 12px; }
.misure > div { padding: 16px 0 14px; border-top: 1px solid var(--linea); display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.misure > div[hidden] { display: none; }
.misure dt { font-size: .86rem; color: var(--tenue); line-height: 1.3; }
.misure dd { font-family: var(--titoli); font-style: italic; font-weight: 500; font-size: clamp(2rem, 1.5rem + 1.8vw, 2.8rem); line-height: 1.05; color: var(--ottone); margin-bottom: 4px; }

/* ---------- 6. Casa Raffa ---------- */
.vetrina { display: grid; gap: clamp(20px, 3vw, 36px); margin-top: clamp(36px, 5vw, 60px); align-items: end; }
@media (min-width: 900px) { .vetrina { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.finestra { border-radius: 14px; overflow: hidden; background: #17131f; box-shadow: 0 34px 70px -34px rgba(31, 61, 43, .55), 0 0 0 1px var(--linea); }
.finestra-barra { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--sabbia); font-size: .78rem; font-weight: 500; color: #4d5f52; }
.finestra-barra i { width: 10px; height: 10px; border-radius: 50%; background: #c7bca4; }
.finestra-barra span { margin-left: 10px; padding: 3px 16px 4px; border-radius: 999px; background: var(--crema); }
.finestra img { display: block; width: 100%; }
.tasche { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 1.6vw, 18px); }
.tasche img { display: block; width: 100%; border: 5px solid var(--verde-notte); border-radius: clamp(16px, 2.2vw, 24px); background: var(--verde-notte); box-shadow: 0 26px 50px -28px rgba(31, 61, 43, .6); transition: transform .35s var(--dolce); }
.tasche img:hover { transform: translateY(-4px); }
.vetrina-fatti { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-top: clamp(28px, 4vw, 44px); padding-top: 24px; border-top: 1px solid var(--linea); }
.vetrina-fatti ul { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.vetrina-fatti li { display: flex; gap: .6em; align-items: baseline; font-weight: 600; }
.vetrina-fatti li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ottone-scuro); }

/* ---------- 7. contatti e piede ---------- */
.chiusura { background: radial-gradient(120% 100% at 80% 0%, var(--verde-luce) 0%, var(--verde) 55%, var(--verde-ombra) 100%); }
.chiusura h2 { font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem); }
.chiusura .guida { margin-top: 1.5rem; }
.social { margin-top: 2.4rem; color: var(--tenue); }
.social a { color: var(--crema); font-weight: 600; text-decoration-color: var(--ottone); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.social a:hover { color: var(--ottone); }
.piede { background: var(--verde-ombra); color: #c9d3c5; padding-block: 34px 40px; font-size: .9rem; --fuoco: var(--ottone); }
.piede-in { display: grid; gap: 8px; }
.piede .marca { color: var(--crema); margin-bottom: 6px; }
.piede .marca span { font-family: var(--testi); font-size: .9rem; font-weight: 500; color: #c9d3c5; }
.piede address { font-style: normal; line-height: 1.6; }
.piede a { color: var(--crema); text-decoration-color: rgba(217, 182, 90, .7); text-underline-offset: 3px; }
.piede a:hover { color: var(--ottone); }
.piede-link { display: flex; flex-wrap: wrap; gap: 0 28px; }
.piede-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- pagine di solo testo (informativa) e pagina 404 ---------- */
.pagina { padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 112px); }
.pagina-in { max-width: 46rem; }
.pagina h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.6rem); }
.pagina h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-top: 2.6rem; }
.pagina p, .pagina ul { margin-top: 1rem; }
.pagina .guida { margin-top: 1.4rem; }
.pagina ul { display: grid; gap: .6rem; }
.pagina li { position: relative; padding-left: 1.3em; }
.pagina li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ottone-scuro); }
.pagina a:not(.btn) { color: var(--verde); font-weight: 600; text-decoration-color: var(--ottone-scuro); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.pagina .btn { margin-top: 1.6rem; }
.non-trovata { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-block: 64px; }
.non-trovata .marca { display: block; margin-bottom: 3rem; }
.non-trovata .guida { margin-top: 1.4rem; }

/* ---------- movimento: solo se chi guarda non ha chiesto di ridurlo ---------- */
@media (prefers-reduced-motion: no-preference) {
  .foglio-mini { animation: cade 1s var(--dolce) .2s both; }
  @keyframes cade {
    0% { opacity: 0; transform: translateY(-80px) rotate(-12deg); }
    62% { opacity: 1; transform: translateY(8px) rotate(-2.6deg); }
    100% { opacity: 1; transform: translateY(0) rotate(-4deg); }
  }
  .apertura-testo > * { animation: sale .7s var(--dolce) both; }
  .apertura-testo > :nth-child(2) { animation-delay: .06s; }
  .apertura-testo > :nth-child(3) { animation-delay: .14s; }
  .apertura-testo > :nth-child(4) { animation-delay: .22s; }
  .apertura-testo > :nth-child(5) { animation-delay: .3s; }
  @keyframes sale { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .prove[data-pronto] .prove-lista > li.attiva, .prove-esito:not([hidden]) { animation: sale .45s var(--dolce) both; }
  .telefono[data-problema="1"] .s1::after, .telefono[data-problema="2"] .s2::after, .telefono[data-problema="3"] .s3::after { animation: batte .6s var(--dolce) 2; }
  @keyframes batte { 50% { transform: scale(1.08); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
