/* =========================================================
   RITOCCO LEGGERO FG.Lab26 (prova 25/11/2026)
   Stesso stile su tutte le pagine: nero puro, colori dei servizi,
   Krona One per i titoli, Geist per i testi, nuovo header.
   ========================================================= */
@import url(/ritocco/font/font.css);

:root {
  --r-nero: #000; --r-carbone: #0d0d0f; --r-carta: #ece9e4; --r-carta-2: #e3dfd8;
  --r-testo: #ece9e4; --r-testo2: #9a978f;
  --r-siti: #82cbe7; --r-foto: #f09350; --r-drone: #a180ee;
  --r-krona: "Krona One", system-ui, sans-serif;
  --r-geist: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-mono: "Geist Mono", ui-monospace, monospace;
}

/* ---------- HEADER (uguale ovunque) ---------- */
.r-wm { font: 400 15px/1 var(--r-krona); letter-spacing: -.01em; color: #fff; white-space: nowrap; display: inline-block; }
.r-wm b { font-weight: 400; color: var(--r-acc, var(--r-siti)); transition: color .5s; }
.r-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: middle; position: relative; top: -1px; }

/* =========================================================
   PAGINE ASTRO (/siti/ e /video/)
   ========================================================= */
:root, :host {
  --color-ink: #000; --color-ink-2: #0d0d0f;
  --color-paper: var(--r-carta); --color-line: #d3cfc7;
  --color-teal: var(--r-siti); --color-teal-soft: #dcedf3;
  --font-sans: var(--r-geist);
}
html.tema-video { --color-teal: var(--r-foto); --r-acc: var(--r-foto); }
html:not(.tema-video) #site-header { --r-acc: var(--r-siti); }
#site-header .header-bar { background: rgba(0, 0, 0, .62); border-color: rgba(255, 255, 255, .09); box-shadow: none; }
#site-header .header-bar > a:first-child { width: auto !important; }
#site-header ul.hidden a { font-family: var(--r-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--r-testo2); }
#site-header ul.hidden a:hover, #site-header ul.hidden a[aria-current] { color: #fff; background: transparent; }
#site-header a[href="#contatti"].hidden { font-family: var(--r-geist); font-weight: 500; }
.h-display, #hero-title { font-family: var(--r-krona) !important; font-weight: 400 !important; letter-spacing: -.035em !important; line-height: 1.04 !important; }
h2.h-display, h2[class*="text-["] { zoom: .84; }
#hero-title { zoom: .8; }
/* scritte a riga lunga dell'header Astro in maiuscoletto mono come nella home */
.eyebrow, [class*="tracking-[.2"], [class*="tracking-[0.2"] { font-family: var(--r-mono) !important; }

/* =========================================================
   HOME + PAGINE LEGALI (Vite, src/style.css)
   ========================================================= */
body:not(:has(#site-header)) {
  --nero: #000; --ardesia: var(--r-carbone); --roccia: #26262a;
  --bruma: var(--r-carta); --bruma-2: var(--r-carta-2); --luce: var(--r-testo);
  --on-dark: var(--r-testo); --on-dark-2: var(--r-testo2);
  --on-light: #0b0b0c; --on-light-2: #57544e;
  --line-d: rgba(255, 255, 255, .1);
  --display: var(--r-krona); --sans: var(--r-geist);
}
body:not(:has(#site-header)) :is(h1, h2, h3) { font-weight: 400; font-variation-settings: normal; letter-spacing: -.035em; line-height: 1.04; }
body:not(:has(#site-header)) :is(.sec__title, .services h2, .contact h2, .legal h1) { font-size: clamp(30px, 3.9vw, 56px); }
body:not(:has(#site-header)) .svc h3 { font-size: clamp(22px, 2.3vw, 33px); }
body:not(:has(#site-header)) .steps h3 { font-family: var(--r-geist); font-weight: 500; letter-spacing: -.01em; }
body:not(:has(#site-header)) .legal h2 { font-size: clamp(17px, 1.5vw, 21px); }
body:not(:has(#site-header)) .eyebrow { font: 400 11.5px/1.4 var(--r-mono); letter-spacing: .16em; display: flex; align-items: center; gap: 10px; }
.eyebrow[data-c]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.sec[data-c] em, .services [data-c] em { color: var(--c); }
.sec[data-c] .eyebrow { color: var(--c); }

/* header home */
.nav { mix-blend-mode: normal !important; transition: background .4s; }
.nav.r-su { background: rgba(0, 0, 0, .7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav .nav__logo { width: auto !important; }
.nav .r-wm { transition: opacity .4s, transform .4s; }
body:has(#Dg) .nav:not(.r-su) .r-wm { opacity: 0; transform: translateY(-6px); } /* in home la scritta piccola compare solo dopo la hero, anche prima che parta il JS */
.nav__links a { font: 400 11.5px/1 var(--r-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--r-testo2); opacity: 1 !important; display: flex; align-items: center; }
.nav__links a:hover { color: #fff; }
.nav__links { align-items: center; }
.nav__cta { font: 500 13px/1 var(--r-geist) !important; border-color: rgba(255, 255, 255, .22) !important; padding: 12px 17px !important; transition: background .3s, color .3s; }
.nav__cta:hover { background: #fff; color: #000; }
.foot__logo { width: auto !important; }
.foot__logo .r-wm { font-size: 20px; }

/* bottoni dei servizi con i nuovi colori */
.btn { font-family: var(--r-geist); font-weight: 500; }
.btn--siti { background: var(--r-siti) !important; color: #000 !important; box-shadow: none !important; }
.btn--video { background: var(--r-foto) !important; color: #000 !important; box-shadow: none !important; }
.btn--rosso { background: #0b0b0c !important; color: #fff !important; box-shadow: none !important; }
.btn--light { background: var(--r-testo); }
.svc__promo { background: linear-gradient(90deg, var(--r-foto), var(--r-drone) 55%, var(--r-siti)) !important; color: #000 !important; rotate: 0deg !important; }
.svc__n { font-family: var(--r-mono) !important; color: var(--c, #57544e) !important; }
.svc h3 { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.svc--combo { background: rgba(255, 255, 255, .55) !important; }
.steps .n { font-family: var(--r-mono); }
.steps li::before { background: linear-gradient(90deg, var(--r-foto), var(--r-drone), var(--r-siti)) !important; }
.qform__chips input:checked + span { background: var(--r-testo); color: #000; }
.consent { background: rgba(14, 14, 16, .94) !important; }
.consent, .consent * { font-family: var(--r-geist); }

/* ---------- correzioni dopo il primo controllo ---------- */
html:has(#site-header) section h2 { font-family: var(--r-krona) !important; font-weight: 400 !important; letter-spacing: -.035em !important; line-height: 1.06 !important; }
html:has(#site-header) section h2:not(.h-display):not([class*="text-["]) { zoom: .86; }
.skip { display: none !important; }
body:not(:has(#site-header)) em { font-family: inherit !important; font-style: normal !important; }
body:not(:has(#site-header)) .services h2 em { color: var(--r-testo2); }
.nav.r-su { background: rgba(0, 0, 0, .86); }

/* 26/11: i tre servizi centrati nella barra in alto (da 1024px in su; sotto restano accanto al bottone) */
@media (min-width: 1024px) {
  .nav__links { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
  #site-header .header-bar { position: relative; }
  #site-header .header-bar > ul { position: absolute; left: 50%; transform: translateX(-50%); margin: 0; }
}

/* 26/11: scelta «Lo pago subito / Lo pago al mese» in /siti/ più visibile, con la domanda sopra */
#siti .paga { position: relative; display: grid; width: 100%; max-width: 460px; margin-top: 2.9rem; padding: 5px; background: #fff; border: 1.5px solid #0b0b0c; box-shadow: none; }
#siti .paga::before { content: "Come vuoi pagare?"; position: absolute; left: 6px; bottom: calc(100% + 11px); font: 400 11.5px/1 var(--r-mono); letter-spacing: .14em; text-transform: uppercase; color: #57544e; white-space: nowrap; }
#siti .paga button { min-height: 3.4rem; font-size: 1.05rem; font-weight: 500; color: #0b0b0c; }
#siti .paga button[aria-pressed="true"] { background: var(--r-siti); color: #000; font-weight: 600; box-shadow: none; }
#siti .paga button:not([aria-pressed="true"]):hover { background: rgba(0, 0, 0, .06); }
@media (min-width: 1024px) { #siti .paga { width: 430px; margin-top: 0; } }
