/* Boia deh! · sito. Stessi colori dell'app: mare, tirreno, sabbia, tramonto e la scacchiera della Terrazza Mascagni. */

@font-face { font-family: 'Bricolage'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(../fonts/bricolage.woff2) format('woff2'); }
@font-face { font-family: 'Instrument'; font-style: normal; font-display: swap; font-weight: 400 700; src: url(../fonts/instrument.woff2) format('woff2'); }

:root {
  --mare: #0b3954;
  --mare-2: #13527a;
  --tirreno: #0f9a9c;
  --tirreno-vivo: #12b5b3;
  --tramonto: #ff7a45;
  --tramonto-scuro: #d9480f;
  --nero: #0c1a22;
  --sabbia: #efe4cf;

  --fondo: #fffdf9;
  --fondo-2: #f6f0e5;
  --fondo-3: #ece3d3;
  --testo: #0c2b3d;
  --testo-2: #4f6a78;
  --titoli: #0b3954;
  --link: #0b6b7d;
  --linea: rgba(11, 57, 84, .13);
  --ombra-tel: 0 40px 60px -30px rgba(8, 36, 54, .55), 0 12px 24px -12px rgba(8, 36, 54, .3);
  --sez-pausa: clamp(72px, 11vw, 140px);

  --display: 'Bricolage', 'Avenir Next', system-ui, sans-serif;
  --corpo: 'Instrument', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --scacchi: conic-gradient(var(--nero) 25%, #fff 0 50%, var(--nero) 0 75%, #fff 0);
  color-scheme: light;
}
/* NERO E BLU è il tema predefinito (qualunque sia quello del telefono); il chiaro si sceglie col bottone «Tema chiaro»
   (classe .chiaro su <html>, messa prima del disegno dallo script in testa alla pagina) */
:root:not(.chiaro) {
  --fondo: #0b0d10;
  --fondo-2: #111923;
  --fondo-3: #182432;
  --testo: #e8eef3;
  --testo-2: #a2b0bc;
  --titoli: #f2f7f9;
  --link: #6cc4ff;
  --linea: rgba(255, 255, 255, .09);
  --ombra-tel: 0 40px 60px -30px rgba(0, 0, 0, .85), 0 12px 24px -12px rgba(0, 0, 0, .55);
  --sabbia: #111923;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--fondo); color: var(--testo); font: 400 17px/1.6 var(--corpo); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
picture { display: contents; }
h1, h2, h3 { font-family: var(--display); color: var(--titoli); margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
b { font-weight: 650; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tirreno-vivo); outline-offset: 3px; border-radius: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap.stretto { width: min(800px, 100% - 32px); }
.salta { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tramonto); color: var(--nero); padding: 10px 16px; border-radius: 12px; font-weight: 650; text-decoration: none; }
.salta:focus { top: 12px; }

/* ---------- pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 16px; font: 650 16px/1.1 var(--corpo); text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .9, .25, 1), background-color .18s, box-shadow .18s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-grande { min-height: 58px; padding: 0 28px; font-size: 18px; border-radius: 18px; }
.btn-piccolo { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; background: var(--tramonto); color: var(--nero); }
.btn-primario { background: var(--tramonto); color: var(--nero); box-shadow: 0 10px 24px -10px rgba(255, 122, 69, .7), inset 0 -3px 0 rgba(0, 0, 0, .14); }
.btn-primario:hover, .btn-piccolo:hover { background: #ff8c5c; }
.btn-vetro { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-vetro:hover { background: rgba(255, 255, 255, .18); }
.btn-secondario { background: var(--mare-2); color: #fff; }
.btn-secondario:hover { background: var(--mare); }
.btn[aria-disabled="true"] { background: var(--fondo-3); color: var(--testo-2); box-shadow: none; cursor: default; }
.btn[aria-disabled="true"]:active { transform: none; }

/* ---------- testata ---------- */
.top { position: sticky; top: 0; z-index: 50; background: rgba(11, 57, 84, .86); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .25s; padding-top: env(safe-area-inset-top, 0px); }
.top.scesa { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.top-in { display: flex; align-items: center; gap: 14px; height: 64px; }
.marchietto { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.03em; margin-right: auto; }
.marchietto img { width: 34px; height: 34px; border-radius: 9px; }
.marchietto i, .marchio i, .citazione i { font-style: normal; color: var(--tramonto); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 550; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.menu-btn { display: none; }

/* interruttore «per la nonna» */
.nonna-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 550; color: rgba(255, 255, 255, .86); }
.nonna-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.interr { width: 34px; height: 20px; border-radius: 20px; background: rgba(255, 255, 255, .22); position: relative; flex: none; transition: background-color .2s; }
.interr::after { content: ''; position: absolute; left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.2, .9, .25, 1); }
.nonna-btn[aria-pressed="true"] .interr { background: var(--tirreno-vivo); }
.nonna-btn[aria-pressed="true"] .interr::after { transform: translateX(14px); }
.nonna-link { display: inline; padding: 0; color: var(--link); font-size: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }
.nonna-link:hover { background: none; color: var(--link); }

@media (max-width: 920px) {
  .top-in { gap: 8px; }
  .menu-btn { display: grid; place-items: center; gap: 5px; align-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .1); cursor: pointer; }
  .menu-btn i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .25s; }
  .menu-btn[aria-expanded="true"] i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px;
    background: var(--mare); border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 20px 30px -20px rgba(0, 0, 0, .6);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .nav.aperto { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav a, .nav .nonna-btn { font-size: 17px; padding: 13px 12px; }
  .nav .nonna-btn { justify-content: space-between; flex-direction: row-reverse; }
}
@media (max-width: 360px) { .marchietto span { display: none; } }

/* ---------- apertura ---------- */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 85% 10%, #1a6491 0%, rgba(26, 100, 145, 0) 60%), linear-gradient(180deg, var(--mare-2) 0%, var(--mare) 100%); }
html:not(.chiaro) .hero { background: radial-gradient(90% 70% at 80% 18%, rgba(35, 115, 179, .55) 0%, rgba(35, 115, 179, 0) 62%), radial-gradient(70% 60% at 0% 100%, rgba(19, 82, 122, .45) 0%, rgba(19, 82, 122, 0) 60%), linear-gradient(180deg, #0d1218 0%, #0b0d10 100%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; padding: clamp(36px, 7vw, 84px) 0 0; position: relative; z-index: 1; }
.saluto { display: inline-block; font: 600 15px/1 var(--corpo); color: #bff3f2; background: rgba(18, 181, 179, .16); padding: 9px 14px; border-radius: 30px; margin-bottom: 18px; }
.marchio { font-size: clamp(88px, 27vw, 176px); line-height: .82; letter-spacing: -.055em; color: #fff; font-weight: 800; display: flex; flex-direction: column; margin-left: -.04em; }
.marchio span[aria-hidden] { display: block; }
.marchio i { display: inline-block; margin-left: .01em; }
.claim { font: 750 clamp(26px, 5.4vw, 38px)/1.1 var(--display); letter-spacing: -.025em; margin-top: 26px; }
.hero .lead { font-size: clamp(17px, 2.2vw, 19.5px); line-height: 1.55; color: rgba(255, 255, 255, .86); max-width: 34em; margin-top: 14px; }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.nota { font-size: 14.5px; color: rgba(255, 255, 255, .7); margin-top: 16px; }
.qr { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); max-width: 360px; }
.qr-img { width: 92px; height: 92px; flex: none; background: #fff; border-radius: 10px; padding: 7px; }
.qr-img svg { width: 100%; height: 100%; }
.qr p { font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.qr b { color: #fff; display: block; }

.hero-telefoni { position: relative; display: grid; grid-template-columns: 1fr; justify-items: center; height: clamp(420px, 108vw, 640px); margin-top: 6px; }
.hero-telefoni .tel { position: absolute; bottom: -2px; margin: 0; }
.hero-telefoni .tel-c { width: min(52vw, 290px); z-index: 3; }
.hero-telefoni .tel-s, .hero-telefoni .tel-d { width: min(40vw, 236px); z-index: 2; bottom: -30px; }
.hero-telefoni .tel-s { transform: translateX(-62%) rotate(-7deg); transform-origin: bottom center; }
.hero-telefoni .tel-d { transform: translateX(62%) rotate(7deg); transform-origin: bottom center; }

.terrazza { position: relative; height: 54px; background: var(--scacchi) 0 0 / 54px 54px; border-top: 10px solid var(--tirreno-vivo); z-index: 4; }
@media (max-width: 600px) { .terrazza { height: 36px; background-size: 36px 36px; border-top-width: 7px; } }

@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: end; gap: 24px; padding-top: 64px; }
  .hero-testo { padding-bottom: 88px; }
  .hero-telefoni { height: 720px; }
  .hero-telefoni .tel-c { width: 320px; }
  .hero-telefoni .tel-s, .hero-telefoni .tel-d { width: 262px; bottom: -40px; }
  .hero-telefoni .tel-s { transform: translateX(-66%) rotate(-7deg); }
  .hero-telefoni .tel-d { transform: translateX(66%) rotate(7deg); }
  .hero-testo { position: relative; z-index: 2; }
  .hero .lead { max-width: 30em; }
}

/* ingresso: un solo momento, i telefoni salgono sulla Terrazza e il «!» casca al suo posto */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-telefoni .tel { animation: sale .9s cubic-bezier(.2, .85, .25, 1) both; }
  .js .hero-telefoni .tel-c { animation-delay: .12s; }
  .js .hero-telefoni .tel-s { animation-name: sale-s; animation-delay: .3s; }
  .js .hero-telefoni .tel-d { animation-name: sale-d; animation-delay: .38s; }
  .js .marchio i { animation: casca .7s cubic-bezier(.3, 1.6, .5, 1) .55s both; }
}
@keyframes sale { from { opacity: 0; transform: translateY(80px); } }
@keyframes sale-s { from { opacity: 0; transform: translateX(-40%) translateY(90px) rotate(0deg); } }
@keyframes sale-d { from { opacity: 0; transform: translateX(40%) translateY(90px) rotate(0deg); } }
@keyframes casca { from { transform: translateY(-.6em) rotate(-14deg); opacity: 0; } }

/* ---------- telefono ---------- */
.tel { margin: 0; position: relative; padding: clamp(6px, 2.4vw, 9px); border-radius: 13.5% / 6.2%; background: linear-gradient(145deg, #2a3b46, #0c1a22 40%, #1b2a33);
  box-shadow: var(--ombra-tel), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.tel img { width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 10.6% / 4.9%; background: var(--fondo-2); }
.tel::after { content: ''; position: absolute; right: -1.2%; top: 22%; width: 1.4%; height: 11%; border-radius: 0 3px 3px 0; background: #22323c; }

/* ---------- sezioni ---------- */
.sez { padding: var(--sez-pausa) 0; }
.sez-testa { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sez-testa h2 { font-size: clamp(40px, 7.2vw, 68px); letter-spacing: -.04em; line-height: .98; }
.sez-testa .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--testo-2); margin-top: 16px; max-width: 36em; }

/* righe delle funzioni */
.riga { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; padding: clamp(28px, 5vw, 56px) 0; }
.riga + .riga { border-top: 1px solid var(--linea); }
.riga-testo { max-width: 540px; }
.riga h3 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -.035em; margin: 18px 0 14px; }
.riga p { font-size: 18px; color: var(--testo); }
.punti { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.punti li { position: relative; padding-left: 26px; color: var(--testo-2); font-size: 16.5px; line-height: 1.5; }
.punti li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.punti b { color: var(--testo); }
.citazione { margin-top: 20px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--c) 10%, var(--fondo)); border-left: 4px solid var(--c); font-size: 17px !important; color: var(--testo) !important; }

.riga-tel { position: relative; display: flex; justify-content: center; padding: 20px 0 10px; }
.riga-tel::before { content: ''; position: absolute; inset: 8% 6% 0; border-radius: 44px; background: color-mix(in srgb, var(--c) 14%, var(--fondo)); z-index: -1; }
.riga-tel::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 0; height: 22px; border-radius: 0 0 44px 44px; background: var(--scacchi) 0 0 / 11px 11px; opacity: .1; z-index: -1; }
.riga { position: relative; isolation: isolate; }
.riga-tel .tel { width: min(60vw, 270px); }
.riga-tel.due { padding-right: 18%; }
.riga-tel.due .tel { width: min(56vw, 260px); z-index: 2; }
.riga-tel.due .tel-dietro { position: absolute; right: 6%; top: 60px; width: min(44vw, 220px); z-index: 1; transform: rotate(5deg); opacity: .98; }

@media (min-width: 900px) {
  .riga { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .riga:nth-of-type(even) .riga-testo { order: 2; }
  .riga-tel { padding: 40px 0 26px; }
  .riga-tel .tel { width: 300px; }
  .riga-tel.due { padding-right: 170px; }
  .riga-tel.due .tel { width: 290px; }
  .riga-tel.due .tel-dietro { width: 240px; right: 6%; top: 100px; }
}

/* tessere: stessi disegni dell'app */
.tessera { position: relative; width: 60px; height: 60px; border-radius: 19px; display: grid; place-items: center; overflow: hidden; flex: none;
  background: linear-gradient(165deg, color-mix(in srgb, var(--c) 62%, #fff) 0%, var(--c) 48%, color-mix(in srgb, var(--c) 78%, #000) 100%);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .38), inset 0 -3px 0 rgba(0, 0, 0, .16), 0 8px 16px -8px color-mix(in srgb, var(--c) 80%, #000); }
.tessera::before { content: ''; position: absolute; left: -20%; right: -20%; top: -55%; height: 95%; border-radius: 50%; background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); }
.tg { width: 42px; height: 42px; fill: #fff; position: relative; filter: drop-shadow(0 1.5px 1px rgba(0, 0, 0, .22)); overflow: visible; }
.tg .k { fill: var(--c); }
.tg .m { fill: rgba(255, 255, 255, .62); }
.tg .ks { stroke: var(--c); }
.tg .ws { stroke: #fff; }
.tg .ms { stroke: rgba(255, 255, 255, .62); }

/* la mercanzia */
.mercanzia { background: var(--fondo-2); padding-bottom: 0; }
.griglia { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 34px 30px; }
.griglia li { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 16px; align-items: start; }
.griglia .tessera { width: 52px; height: 52px; border-radius: 16px; grid-row: 1 / span 2; }
.griglia .tg { width: 36px; height: 36px; }
.griglia h3 { font-size: 21px; letter-spacing: -.02em; line-height: 1.15; margin: 2px 0 6px; }
.griglia p { font-size: 15.5px; line-height: 1.5; color: var(--testo-2); }
.eppoi { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--linea); color: var(--testo-2); font-size: 16.5px; }

.galleria-box { padding: clamp(56px, 8vw, 96px) 0 var(--sez-pausa); }
.galleria-testa { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 26px; }
.galleria-testa h3 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; }
.galleria-testa p { color: var(--testo-2); font-size: 15.5px; }
.galleria { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin;
  padding: 10px max(16px, (100vw - 1180px) / 2) 40px; scroll-padding-inline: max(16px, (100vw - 1180px) / 2); }
.galleria:focus-visible { outline-offset: -3px; border-radius: 0; }
.galleria figure { margin: 0; flex: none; width: 220px; scroll-snap-align: start; }
.galleria .tel-mini { width: 220px; }
.galleria figcaption { margin-top: 14px; font-weight: 600; font-size: 15px; text-align: center; color: var(--testo); }

/* installa */
.install-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 980px) { .install-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; } }
.install { background: var(--fondo-2); border-radius: 28px; padding: clamp(22px, 4vw, 36px); }
.install.primo { order: -1; }
.install h3 { display: flex; align-items: center; gap: 12px; font-size: 32px; letter-spacing: -.035em; }
.os { width: 30px; height: 30px; fill: var(--titoli); }
.os .os-k { fill: var(--fondo-2); }
.os .os-l { stroke: var(--titoli); stroke-width: 1.8; stroke-linecap: round; }
.fine { font-size: 15px; color: var(--testo-2); margin-top: 8px; line-height: 1.5; }
.passi { list-style: none; counter-reset: passo; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.passi li { counter-increment: passo; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; }
.passi li p { position: relative; padding-left: 40px; font-size: 16.5px; line-height: 1.45; }
.passi li p::before { content: counter(passo); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--mare-2); color: #fff; font: 800 15px/28px var(--display); text-align: center; }
html:not(.chiaro) .passi li p::before { background: var(--tirreno); color: var(--nero); }
@media (max-width: 420px) { .passi li { grid-template-columns: 118px minmax(0, 1fr); gap: 14px; } .passi li p { padding-left: 0; padding-top: 36px; } }

.ill { width: 100%; height: auto; }
.ill .i-sch { fill: var(--fondo); stroke: var(--linea); stroke-width: 1.5; }
.ill .i-app { fill: var(--mare-2); }
.ill .i-marchio { font: 800 22px var(--display); fill: #fff; letter-spacing: -.04em; }
.ill .i-esc { fill: var(--tramonto); }
.ill .i-barra { fill: var(--fondo-3); }
.ill .i-txt { font: 600 11.5px var(--corpo); fill: var(--testo); }
.ill .i-txt-forte { font-weight: 700; }
.ill .i-tenue { fill: var(--testo-2); }
.ill .i-bianco { fill: #fff; }
.ill .i-centro { text-anchor: middle; }
.ill .i-ico path, .ill .i-ico rect { fill: none; stroke: var(--testo-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill .i-ico-forte path, .ill .i-ico-forte rect { stroke: #1a73e8; }
.ill .i-evid { fill: rgba(255, 122, 69, .14); stroke: var(--tramonto); stroke-width: 2.5; }
.ill .i-riga { fill: var(--fondo-2); }
.ill .i-riga-evid { fill: rgba(255, 122, 69, .12); stroke: var(--tramonto); stroke-width: 2.5; }
.ill .i-home { fill: #cfe3ee; }
html:not(.chiaro) .ill .i-home { fill: #1d3d52; } html:not(.chiaro) .ill .i-ico-forte path, html:not(.chiaro) .ill .i-ico-forte rect { stroke: #8ab4f8; }
.ill .i-altre rect { fill: rgba(11, 57, 84, .16); }
html:not(.chiaro) .ill .i-altre rect { fill: rgba(255, 255, 255, .14); }
.ill .i-icona rect { fill: var(--mare-2); }
.ill .i-icona .i-sc { fill: #fff; }
.ill .i-deh { font: 800 10px var(--display); fill: #fff; text-anchor: middle; letter-spacing: -.03em; }
.ill .i-deh-p { font-size: 9px; }
.ill .i-etich { font: 600 9.5px var(--corpo); fill: var(--testo); text-anchor: middle; }
.ill .i-pallini circle { fill: var(--testo); }
.ill .i-dialogo { fill: var(--fondo-2); stroke: var(--linea); stroke-width: 1.5; }
.ill .i-bottone { fill: #1a73e8; stroke: var(--tramonto); stroke-width: 2.5; }

.apk { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--linea); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.apk p { font-size: 15.5px; color: var(--testo-2); max-width: 30em; }
.apk b { color: var(--testo); }

/* perché */
.perche { background: var(--mare); color: #fff; position: relative; }
html:not(.chiaro) .perche { background: radial-gradient(80% 60% at 100% 0%, rgba(35, 115, 179, .35), rgba(35, 115, 179, 0) 60%), linear-gradient(180deg, #0c1a27, #0b0d10); }
.perche h2, .perche h3 { color: #fff; }
.promesse { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
.promesse li { padding: 26px 0 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); display: grid; gap: 10px; align-content: start; }
.promesse h3 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -.045em; line-height: 1; }
.promesse p { color: rgba(255, 255, 255, .82); font-size: 17.5px; max-width: 34em; }
.promesse a, .fonti a { color: #8fe6e4; }
@media (min-width: 900px) {
  .promesse { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; border-top: 0; }
  .promesse li { border-top: 1px solid rgba(255, 255, 255, .16); border-bottom: 0; padding: 30px 0 40px; }
}
.fonti { margin-top: clamp(56px, 8vw, 96px); }
.fonti h3 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; }
.fonti > p { color: rgba(255, 255, 255, .78); margin-top: 10px; }
.fonti ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.fonti li { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 16px 18px; display: grid; gap: 4px; font-size: 15px; line-height: 1.45; }
.fonti li b { color: #fff; font-size: 15.5px; }
.fonti li span { color: rgba(255, 255, 255, .74); }
.avviso-ufficiale { color: rgba(255, 255, 255, .78) !important; margin-top: 26px; max-width: 46em; }
.avviso-ufficiale b { color: #fff; }

/* domande */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; font: 700 clamp(19px, 2.4vw, 23px)/1.25 var(--display); letter-spacing: -.02em; color: var(--titoli); border-radius: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--fondo-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313527a' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .25s cubic-bezier(.2, .9, .25, 1); }
html:not(.chiaro) .faq summary::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235fd3d1' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E"); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--link); }
.faq details > div { padding: 0 4px 24px; max-width: 42em; }
.faq details > div p { color: var(--testo-2); font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* chiusura */
.chiusura { background: linear-gradient(180deg, var(--mare-2), var(--mare)); color: #fff; text-align: center; }
html:not(.chiaro) .chiusura { background: radial-gradient(70% 70% at 50% 0%, rgba(35, 115, 179, .5), rgba(35, 115, 179, 0) 70%), linear-gradient(180deg, #0e1a26, #0b0d10); }
.chiusura-in { padding: var(--sez-pausa) 0 calc(var(--sez-pausa) * .8); display: grid; justify-items: center; }
.chiusura h2 { color: #fff; font-size: clamp(52px, 11vw, 112px); letter-spacing: -.055em; line-height: .9; }
.chiusura h2::after { content: ''; }
.chiusura-in > p { color: rgba(255, 255, 255, .82); font-size: 19px; margin-top: 18px; }
.chiusura .azioni { justify-content: center; }
.social { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 12px; }
.social p { width: 100%; color: rgba(255, 255, 255, .72); font-size: 15px; margin-bottom: 4px; }
.soc { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; font-weight: 650; }
.soc:hover { background: rgba(255, 255, 255, .15); }
.soc svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.soc svg .pieno { fill: currentColor; stroke: none; }
.soc .tenue { font-weight: 500; color: rgba(255, 255, 255, .7); }

/* piede */
.piede { background: var(--nero); color: rgba(255, 255, 255, .78); padding: 44px 0 calc(40px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.piede-in { display: grid; gap: 26px; }
.piede-marchio { display: flex; align-items: center; gap: 14px; }
.piede-marchio img { width: 44px; height: 44px; border-radius: 12px; }
.fatta { font: 800 22px/1.1 var(--display); color: #fff; letter-spacing: -.02em; }
.firma { color: rgba(255, 255, 255, .62); font-size: 14.5px; margin-top: 4px; }
.piede-link { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-left: -10px; }
.piede-link a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 10px; font-weight: 550; }
.piede-link a:hover { background: rgba(255, 255, 255, .08); }
.piede .nonna-btn { font-size: 15px; color: #fff; }
.piede-nota { color: rgba(255, 255, 255, .6); font-size: 14px; line-height: 1.55; max-width: 60em; }
.piede-nota a { color: rgba(255, 255, 255, .86); }
@media (min-width: 900px) { .piede-in { grid-template-columns: auto 1fr; align-items: center; } .piede-link { justify-content: flex-end; } .piede-nota { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); } }

/* ---------- pagina privacy ---------- */
.pagina { padding: clamp(40px, 7vw, 80px) 0 var(--sez-pausa); }
.pagina h1 { font-size: clamp(40px, 7vw, 64px); letter-spacing: -.045em; }
.pagina .lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--testo-2); margin-top: 16px; }
.pagina h2 { font-size: clamp(24px, 3.2vw, 30px); letter-spacing: -.03em; margin: 48px 0 12px; }
.pagina p, .pagina li { font-size: 17px; line-height: 1.65; }
.pagina p + p { margin-top: 12px; }
.pagina ul { padding-left: 22px; margin: 12px 0 0; display: grid; gap: 8px; }
.pagina .breve { margin-top: 32px; padding: 22px 24px; border-radius: 20px; background: var(--fondo-2); border-left: 5px solid var(--tirreno); }
.pagina .breve ul { margin-top: 8px; }
.pagina .data { color: var(--testo-2); font-size: 15px; margin-top: 48px; }
.indietro { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 28px; }

/* ritocchi */
.cosa .riga:first-of-type { padding-top: 8px; }
@media (max-width: 560px) { .azioni .btn { flex: 1 1 100%; } }
@media (min-width: 900px) { .passi li { grid-template-columns: 172px minmax(0, 1fr); } }
@media (min-width: 980px) {
  .domande .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; width: min(1180px, 100% - 32px); }
  .domande .sez-testa { position: sticky; top: 100px; align-self: start; }
}
@media (min-width: 760px) and (max-width: 899px) {
  .riga { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
  .riga:nth-of-type(even) .riga-testo { order: 2; }
  .riga-tel .tel { width: 240px; }
  .riga-tel.due { padding-right: 110px; }
  .riga-tel.due .tel { width: 230px; }
  .riga-tel.due .tel-dietro { width: 190px; right: 2%; top: 80px; }
}
.ill .i-icona .i-sn { fill: var(--nero); }
.ill .i-icona .i-tir { fill: var(--tirreno-vivo); }
.ill .i-due { font-size: 10px; }
.hero-telefoni .tel-c { padding: clamp(7px, 2.6vw, 10px); }

/* ---------- scritte in rilievo, timbri, adesivi (come nell'app: ombre a strati, entrate solo transform/opacity) ---------- */
.ril { --ril-f: var(--titoli); --ril-e: var(--tramonto); --ril-o: rgba(11, 57, 84, .25); color: var(--ril-f);
  text-shadow: .012em .016em 0 var(--ril-e), .024em .032em 0 var(--ril-e), .036em .048em 0 var(--ril-e), .048em .064em 0 var(--ril-e),
    .06em .08em 0 color-mix(in srgb, var(--ril-e) 72%, #000), .07em .1em .14em var(--ril-o); }
.ril-sole { --ril-f: #fff; --ril-e: #ff7a45; --ril-o: rgba(0, 0, 0, .35); }
/* titoli delle sezioni: lettere blu col fianco arancione (bianche la sera) */
.sez-testa h2, .chiusura h2 { --ril-e: var(--tramonto); color: var(--titoli); padding-bottom: .06em;
  text-shadow: .012em .016em 0 var(--ril-e), .024em .032em 0 var(--ril-e), .036em .048em 0 var(--ril-e), .048em .064em 0 var(--ril-e),
    .06em .08em 0 color-mix(in srgb, var(--ril-e) 72%, #000), .07em .1em .14em rgba(11, 57, 84, .22); }
.perche .sez-testa h2, .chiusura h2 { color: #fff; }
/* marchio grande: bianco, col fianco arancione profondo, le lettere ci cascano sopra */
.marchio { text-shadow: .008em .01em 0 #ff7a45, .016em .02em 0 #ff7a45, .024em .03em 0 #ff7a45, .032em .04em 0 #ff7a45, .04em .05em 0 #f2652a,
  .048em .06em 0 #e8590c, .056em .07em 0 #b8380a, .07em .1em .12em rgba(0, 0, 0, .35); }
.marchio .l { display: inline-block; }
.marchio i { text-shadow: .008em .01em 0 #fff, .016em .02em 0 #fff, .024em .03em 0 #ffd8c4, .032em .04em 0 #ffd8c4, .04em .05em 0 #e9d3c5, .07em .1em .12em rgba(0, 0, 0, .35); }
.saluto { rotate: -3deg; background: #12b5b3; color: #04212b; font-weight: 800; font-family: var(--display); font-size: 16px; padding: 9px 14px 8px; border-radius: 12px;
  border: 2.5px solid #fff; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); }

.timbro { --tb: #c92a2a; --tb-f: #fff; display: inline-block; font: 800 15px/1.15 var(--display); letter-spacing: .03em; text-transform: uppercase; white-space: nowrap;
  color: var(--tb); background: var(--tb-f); padding: 7px 12px 6px; border: 3px solid currentColor; border-radius: 9px; rotate: var(--rot, -4deg);
  box-shadow: inset 0 0 0 2.5px var(--tb-f), inset 0 0 0 4.5px currentColor, 0 8px 16px -8px rgba(8, 36, 54, .5);
  text-shadow: .03em .045em 0 color-mix(in srgb, currentColor 28%, transparent); }
.tb-tramonto { --tb: #c2410c; }
.tb-chiaro { --tb: #ffd8c4; --tb-f: #0b3954; }
.adesivo { --ad: #ff7a45; --ad-t: #0b3954; display: inline-block; font: 800 15px/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
  color: var(--ad-t); background: var(--ad); padding: 7px 12px 6px; border-radius: 12px; border: 3px solid #fff; rotate: var(--rot, -3deg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .1), 0 10px 18px -8px rgba(8, 36, 54, .55); }
.ad-mare { --ad: #13527a; --ad-t: #fff; }
.ad-giallo { --ad: #ffd43b; --ad-t: #0b3954; }
.adesivo.mini, .timbro.mini { font-size: .42em; vertical-align: .35em; margin-left: .3em; padding: 5px 9px 4px; letter-spacing: .03em; }
.timbro.mini { border-width: 2.5px; box-shadow: inset 0 0 0 2px var(--tb-f), inset 0 0 0 3.5px currentColor; }
.griglia h3 .adesivo.mini { font-size: 11px; vertical-align: 2px; border-width: 2px; }
.claim-ad { font-size: .62em; vertical-align: .18em; margin-left: .2em; --rot: -5deg; }

/* adesivi appiccicati sui telefoni (decorazioni: niente testo importante sotto) */
.adesivi-tel { position: absolute; z-index: 4; top: 0; left: 2%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; pointer-events: none; }
.adesivi-tel > :nth-child(2) { --rot: 5deg; margin-left: 18px; }
@media (min-width: 900px) { .adesivi-tel { top: 14px; left: -4%; } .riga:nth-of-type(even) .adesivi-tel { left: auto; right: -2%; align-items: flex-end; } }

/* striscia dei tormentoni */
.tormentoni { position: relative; overflow: hidden; color: #fff; padding: clamp(30px, 5vw, 46px) 0 clamp(40px, 6vw, 56px);
  background: radial-gradient(90% 120% at 90% 0%, rgba(255, 168, 120, .5), rgba(255, 168, 120, 0) 60%), linear-gradient(160deg, #f2652a, #d9480f 60%, #b8380a); }
.tormentoni::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--scacchi) 0 0 / 14px 14px; border-top: 4px solid var(--tirreno-vivo); }
.torm-in { display: grid; justify-items: start; gap: 14px; }
.torm-etich { margin: 0; font-size: 14px; --rot: -3deg; }
.torm-frase { font: 800 clamp(26px, 4.6vw, 44px)/1.12 var(--display); letter-spacing: -.025em; max-width: 26em; min-height: 2.3em; display: flex; align-items: center; }
.torm-frase .ril { --ril-e: #062a40; --ril-o: rgba(0, 0, 0, .3); }
.torm-btn { font: 700 15px var(--corpo); color: #fff; background: rgba(0, 0, 0, .16); border: 0; border-radius: 12px; padding: 10px 16px; min-height: 44px; cursor: pointer; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.torm-btn:hover { background: rgba(0, 0, 0, .26); }

@media (prefers-reduced-motion: no-preference) {
  .js .marchio .l { animation: ril-salta .8s cubic-bezier(.25, .8, .35, 1) calc(.15s + var(--i) * 55ms) both; transform-origin: 50% 100%; }
  .js .saluto { animation: attacca .6s cubic-bezier(.3, 1.45, .5, 1) .1s both; }
  .js .claim-ad { animation: attacca .6s cubic-bezier(.3, 1.45, .5, 1) 1.1s both; }
  .js .adesivi-tel:not(.visto) > * { opacity: 0; }
  .js .visto.adesivi-tel > * { animation: attacca .6s cubic-bezier(.3, 1.45, .5, 1) both; }
  .js .visto.adesivi-tel > .timbro { animation: timbra .55s cubic-bezier(.2, .9, .3, 1.15) .25s both; }
  .js .sez-testa h2.visto, .js .chiusura h2.visto { animation: ril-boing .9s ease-out both; transform-origin: 20% 90%; }
  .torm-frase .ril.entra { animation: ril-pop .55s cubic-bezier(.3, 1.45, .5, 1) both; }
}
@keyframes ril-salta { 0% { opacity: 0; transform: translateY(-.6em) rotate(-8deg); } 45% { opacity: 1; transform: translateY(.04em) scale(1.06, .88); }
  65% { transform: translateY(-.1em) scale(.98, 1.03); } 82% { transform: translateY(0) scale(1.01, .98); } 100% { transform: none; } }
@keyframes ril-pop { from { opacity: 0; transform: scale(.4) rotate(-4deg); } }
@keyframes ril-boing { 0% { transform: none; } 25% { transform: rotate(-2.5deg) scale(1.03); } 50% { transform: rotate(1.5deg); } 75% { transform: rotate(-.6deg); } 100% { transform: none; } }
@keyframes timbra { 0% { opacity: 0; transform: scale(2.1); } 55% { opacity: 1; transform: scale(.93); } 78% { transform: scale(1.03); } 100% { transform: none; } }
@keyframes attacca { 0% { opacity: 0; transform: scale(.4) translateY(8px); } 60% { opacity: 1; transform: scale(1.08); } 100% { transform: none; } }

/* ---------- nero e blu (predefinito): testata, piede, titoli in rilievo col fianco blu, tormentoni blu ---------- */
html:not(.chiaro) .top { background: rgba(11, 13, 16, .82); border-bottom-color: rgba(76, 179, 255, .18); }
html:not(.chiaro) .nav { background: #0b0d10; }
@media (min-width: 921px) { html:not(.chiaro) .nav { background: none; } }
html:not(.chiaro) .piede { background: #060708; }
html:not(.chiaro) .mercanzia, html:not(.chiaro) .install { background: var(--fondo-2); }
html:not(.chiaro) .sez-testa h2, html:not(.chiaro) .chiusura h2 { --ril-e: #3d93dc; color: #fff; }
html:not(.chiaro) .marchio { text-shadow: .008em .01em 0 #4ba3ea, .016em .02em 0 #4ba3ea, .024em .03em 0 #3d93dc, .032em .04em 0 #3d93dc, .04em .05em 0 #2a7fc4,
  .048em .06em 0 #1d6aa5, .056em .07em 0 #0b3954, .07em .1em .12em rgba(0, 0, 0, .55); }
html:not(.chiaro) .tormentoni { background: radial-gradient(90% 120% at 90% 0%, rgba(76, 179, 255, .38), rgba(76, 179, 255, 0) 60%), linear-gradient(160deg, #2373b3, #13527a 55%, #0b3954); }
html:not(.chiaro) .torm-frase .ril { --ril-e: #03111c; }
html:not(.chiaro) .torm-etich { --ad: #0b0d10; }
html:not(.chiaro) .riga-tel::before { background: color-mix(in srgb, var(--c) 16%, #0b0d10); }
html:not(.chiaro) .citazione { background: color-mix(in srgb, var(--c) 14%, #0b0d10); }
/* bottone del tema (testata e piede) */
.tema-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; padding: 8px 10px; border-radius: 10px; font-size: 14px; font-weight: 550; color: rgba(255, 255, 255, .86); }
.tema-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.tema-btn[aria-pressed="true"] .interr { background: var(--tirreno-vivo); }
.tema-btn[aria-pressed="true"] .interr::after { transform: translateX(14px); }
.piede .tema-btn { font-size: 15px; color: #fff; }
@media (max-width: 920px) { .nav .tema-btn { font-size: 17px; padding: 13px 12px; justify-content: space-between; flex-direction: row-reverse; } }
