/* =========================================================
   CelerTurismo — stile comune del sito pubblico
   Font Inter ospitato in locale (assets/fonts): nessun dato inviato a Google Fonts.
   ========================================================= */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --page: #eaf2ff;
  --page2: #f7fbff;
  --ice: #f8fafc;
  --navy: #0d1730;
  --navy2: #15244c;
  --blue: #2f6df2;
  --blue2: #3f83f8;
  --blue3: #1f48a8;
  --orange: #f97316;
  --orange2: #ea580c;
  --amber: #f59e0b;
  --teal: #0b7890;
  --green: #16a34a;
  --text: #111827;
  --muted: #64748b;
  --soft: #f2f6ff;
  --line: #dce7fb;
  --white: #ffffff;
  --shadow: 0 28px 90px rgba(19, 38, 86, .16);
  --softshadow: 0 18px 50px rgba(19, 38, 86, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 3%, rgba(249, 115, 22, .08), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(47, 109, 242, .08), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 48%, #edf4ff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(47, 109, 242, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 109, 242, .06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 78%);
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  z-index: -3;
  transform: translateZ(0);
}

/* Glow arancione che segue il cursore (spostato solo con transform: niente ridisegni) */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 350px;
  height: 350px;
  margin: -175px 0 0 -175px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.13) 0%, rgba(249, 115, 22, 0.05) 40%, transparent 70%);
  transform: translate3d(-500px, -500px, 0);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(47, 109, 242, .12);
  padding: 12px 0;
}
.brand-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 10px 20px rgba(19, 38, 86, .08);
  border: 1px solid var(--line);
}
.brand-text { line-height: 1.08; }
.brand-text strong { color: var(--navy); font-weight: 950; letter-spacing: -.7px; }
.brand-text small { color: var(--orange); font-size: 12px; font-weight: 800; }

.nav-link { color: #50617b; font-weight: 800; font-size: 14px; }
.nav-link:hover, .nav-link.active { color: var(--orange); }
.nav-link.nav-demo { color: var(--orange); }
.nav-link.nav-demo:hover { color: var(--orange2); }

/* Pulsanti Celer moderni */
.btn-celer {
  border: 0;
  color: #ffffff !important;
  font-weight: 950;
  border-radius: 18px;
  padding: 13px 23px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
  box-shadow: 0 15px 35px rgba(249, 115, 22, .30);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.btn-celer:hover {
  color: #ffffff !important;
  transform: translateY(-3px);
  box-shadow: 0 20px 45px rgba(249, 115, 22, .40);
}

.btn-ghost {
  color: var(--navy) !important;
  font-weight: 900;
  border-radius: 18px;
  padding: 13px 23px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19, 38, 86, .08);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .25s ease, border-color .25s ease, color .25s ease;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, .35);
  color: var(--orange) !important;
}

/* Badge e Titoli di pagina standard */
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 14px 38px rgba(249, 115, 22, .15);
  margin-bottom: 22px;
}

.page-hero { padding: 150px 0 70px; position: relative; }
.hero-title, .page-title {
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  font-weight: 950;
  color: var(--navy);
  margin: 0;
}
.gradient-text {
  background: linear-gradient(135deg, var(--orange), var(--amber));
  -webkit-background-clip: text;
  color: transparent;
}
.lead-big, .section-lead {
  color: #52647c;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.56;
  margin: 22px 0 0;
  font-weight: 540;
}

/* Sezioni */
section { padding: 105px 0; position: relative; }
.section-kicker {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--orange);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-size: 13px;
  margin-bottom: 18px;
}
.section-title {
  color: var(--navy);
  font-size: clamp(34px, 4.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -2px;
  font-weight: 950;
  margin-bottom: 22px;
}

/* Card e Box funzionali */
.card-celer {
  height: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  border-radius: 30px;
  padding: 35px;
  box-shadow: 0 22px 60px rgba(19, 38, 86, .05);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card-celer:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 86px rgba(19, 38, 86, .12);
  border-color: rgba(249, 115, 22, .35);
}
.card-celer:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  right: -90px;
  bottom: -90px;
  background: rgba(249, 115, 22, .04);
}

.ba-card {
  border-radius: 30px;
  padding: 40px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(19, 38, 86, .08);
  height: 100%;
}
.ba-card.dark {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
  color: #ffffff;
  border: none;
}

.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  box-shadow: 0 14px 34px rgba(47, 109, 242, .25);
  margin-bottom: 24px;
}
.icon-box.orange {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  box-shadow: 0 14px 34px rgba(249, 115, 22, .25);
}
.icon-box.dark {
  background: linear-gradient(135deg, var(--navy2), var(--navy));
}

.card-celer h2, .card-celer h3 { color: var(--navy); font-weight: 950; letter-spacing: -1px; margin-bottom: 12px; font-size: 22px; }
.card-celer p { color: #5d6d82; line-height: 1.6; margin: 0; font-weight: 520; font-size: 15px; }

/* Form, Input e Accordion per pagine interne (FAQ, Login, Register) */
.form-shell {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: 0 42px 120px rgba(19, 38, 86, .14);
  padding: 36px;
}
.form-control, .form-select {
  background: #ffffff !important;
  border: 1px solid var(--line) !important;
  color: var(--navy) !important;
  padding: 14px 18px;
  font-weight: 600;
  border-radius: 16px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .15) !important;
}
.form-label { font-weight: 800; color: var(--navy); font-size: 14px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 15px 42px rgba(19, 38, 86, .05);
  overflow: hidden;
  margin-bottom: 14px;
}
.accordion-button { font-weight: 900; color: var(--navy); padding: 22px 24px; }
.accordion-button:not(.collapsed) {
  background: #fff8f3;
  color: var(--orange);
}
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(249, 115, 22, .25);
}

/* Footer e Reveal */
.footer-cta {
  border-radius: 44px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 55px 150px rgba(19, 38, 86, .14);
  padding: clamp(38px, 7vw, 86px);
  position: relative;
  overflow: hidden;
}
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s ease, transform .75s ease; }
.reveal.show { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 991px) {
  .page-hero { padding-top: 125px; }
  .page-title { letter-spacing: -2px; }
}
/* Menu a hamburger sotto i 1200px (le voci non stanno su una riga) */
@media (max-width: 1199px) {
  .navbar-nav { padding-top: 18px; }
  .navbar-nav .btn-celer, .navbar-nav .btn-ghost {
    justify-content: center;
    width: 100%;
    margin-top: 8px;
  }
}
.nav-link { white-space: nowrap; }
@media (max-width: 575px) {
  section { padding: 75px 0; }
  .form-shell { padding: 24px; border-radius: 26px; }
}

/* =========================================================
   Aggiunte: utilità, footer comune, cookie, pagine interne
   ========================================================= */
.text-orange { color: var(--orange) !important; }
.text-navy { color: var(--navy) !important; }
.fw-black { font-weight: 900 !important; }
.mini-note { color: var(--muted); font-size: 14px; font-weight: 600; }
.mini-note a { color: var(--orange); font-weight: 800; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 800;
}
.skip-link:focus { top: 12px; color: #fff; }

/* campo anti-spam invisibile agli utenti */
.campo-trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Hero a due colonne (login, supporto) */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.proof-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.proof-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-weight: 800; font-size: 14px; color: var(--navy);
  box-shadow: 0 10px 26px rgba(19, 38, 86, .06);
}
@media (max-width: 991px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Footer comune */
.site-footer {
  margin-top: 40px;
  padding: 64px 0 36px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: #5d6d82;
}
.site-footer a { color: #42536b; text-decoration: none; font-weight: 700; }
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-title { font-size: 15px; font-weight: 900; color: var(--navy); margin-bottom: 14px; }
.site-footer .footer-logo { max-width: 220px; height: auto; }

/* Messaggio dopo invio senza JavaScript */
.esito-flottante { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000; max-width: 92vw; }

/* Banner cookie */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1080;
  max-width: 560px; margin-left: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(19, 38, 86, .22);
  padding: 22px 22px 18px;
  color: var(--text);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: var(--orange); font-weight: 700; }
.cookie-chiudi {
  position: absolute; top: 8px; right: 12px; border: 0; background: none;
  font-size: 26px; line-height: 1; color: var(--muted);
}
.btn-celer-sm {
  border: 0; color: #fff; font-weight: 800; border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--amber));
}
.btn-celer-sm:hover { color: #fff; opacity: .92; }

/* Pagine testuali: articoli e documenti legali */
.pagina-testo { padding-top: 140px; padding-bottom: 40px; }
.contenuto-testo {
  background: #fff; border: 1px solid var(--line); border-radius: 28px;
  box-shadow: var(--softshadow); padding: clamp(24px, 4vw, 48px);
  font-size: 1.05rem; line-height: 1.75; color: #374151;
}
.contenuto-testo h2 { font-size: 1.35rem; font-weight: 900; color: var(--navy); margin: 2.2rem 0 .8rem; letter-spacing: -.3px; }
.contenuto-testo h3 { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin: 1.6rem 0 .6rem; }
.contenuto-testo h2:first-child { margin-top: 0; }
.contenuto-testo a { color: var(--orange2); font-weight: 700; }
.contenuto-testo table { width: 100%; font-size: .95rem; margin: 1rem 0; }
.contenuto-testo th, .contenuto-testo td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.contenuto-testo th { color: var(--navy); background: var(--soft); }
.box-nota { background: #fff8f3; border-left: 4px solid var(--orange); border-radius: 12px; padding: 18px 20px; margin: 1.5rem 0; }
.titolo-testo { font-size: clamp(28px, 4vw, 44px); font-weight: 950; color: var(--navy); letter-spacing: -1px; line-height: 1.1; }
.briciole { font-size: 14px; color: var(--muted); }
.briciole a { color: var(--muted); text-decoration: none; }
.briciole a:hover { color: var(--orange); }
.indice-legale { columns: 2; column-gap: 32px; font-size: .95rem; }
@media (max-width: 575px) { .indice-legale { columns: 1; } .contenuto-testo table { display: block; overflow-x: auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .cursor-glow { display: none; }
}
