/* ══════════════════════════════════════════════════════════════════
   ArchitettiAI Pro — Foglio di stile condiviso
   Direzione: "carta da progetto" — avorio, grafite, blu cianografia.
   Titoli: Instrument Serif · Testo: Inter · Nessuna emoji.
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* superfici */
  --paper:    #F5F3EF;   /* fondo pagina, avorio carta */
  --paper2:   #FFFFFF;   /* schede e riquadri */
  --paper3:   #EDEAE3;   /* fasce alternate */
  --paper4:   #E4E0D7;   /* fondi pieni discreti */

  /* inchiostri */
  --ink:      #1C1C1A;   /* testo principale, grafite */
  --ink2:     #38372F;
  --muted:    #6B6862;   /* testo secondario */
  --faint:    #928E86;   /* didascalie, note */

  /* accento tecnico */
  --accent:   #1B4D6B;   /* blu cianografia */
  --accent2:  #2A6E96;   /* stato hover */
  --accent3:  #E8EEF2;   /* fondo tenue dell'accento */
  --onaccent: #F5F3EF;

  /* segni */
  --line:     rgba(28,28,26,0.13);
  --line2:    rgba(28,28,26,0.22);
  --line3:    rgba(28,28,26,0.34);

  /* tipografia */
  --fh: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --fb: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* compatibilità con i vecchi nomi usati nelle pagine */
  --navy: var(--paper);
  --navy2: var(--paper2);
  --navy3: var(--paper3);
  --indigo: var(--accent);
  --indigo2: var(--accent2);
  --sky: var(--accent2);
  --cyan: var(--accent2);
  --green: #3F6B4A;
  --amber: #9A6B24;
  --white: var(--ink);
  --text: var(--ink);
  --dim: var(--faint);
  --border: var(--line);
  --card-bg: var(--paper2);
  --grad: var(--accent);
  --grad2: var(--accent);
  --glow: none;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--fb);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.65;
  cursor: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Instrument Serif ha un solo peso: senza questo il browser
     "ingrasserebbe" da solo i titoli che chiedono 700/800/900,
     rovinando il disegno delle lettere. */
  font-synthesis: none;
  font-synthesis-weight: none;
}

/* Il cursore disegnato e il faro luminoso appartenevano al vecchio tema
   scuro: qui stonerebbero. Restano nel DOM ma non si vedono. */
.cursor-dot, .cursor-ring, .spotlight, #particles-canvas { display: none !important; }

/* Grana di carta appena percettibile */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

/* ── UTILI ──────────────────────────────────────────────────────── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* Nel vecchio tema era un testo sfumato. Qui diventa il corsivo del serif:
   stesso ruolo di enfasi, linguaggio editoriale invece che tecnologico. */
.gradient-text {
  font-style: italic;
  color: var(--accent);
  -webkit-text-fill-color: currentColor;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--line2);
  border-radius: 0;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.section-eyebrow {
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 220px;
}
.section-eyebrow.centered { justify-content: center; }
.section-eyebrow.centered::after, .section-eyebrow.centered::before {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-family: var(--fh);
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

.section-sub {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.75;
  max-width: 620px;
}

/* ── PULSANTI ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  font-family: var(--fb);
  font-weight: 600;
  font-size: 14px;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .22s, color .22s, border-color .22s, transform .22s;
  position: relative;
}
.btn::after { content: none; }

.btn-primary {
  background: var(--accent);
  color: var(--onaccent);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent2);
  border-color: var(--accent2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line2);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: rgba(28,28,26,0.04);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: var(--onaccent);
}

/* ── BARRA DI NAVIGAZIONE ───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(245,243,239,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 70px;
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
}
.nav-logo img {
  width: 30px; height: 30px;
  object-fit: contain;
  filter: none;
}
.nav-logo-text {
  font-family: var(--fh);
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.2px;
  line-height: 1.15;
}
.nav-logo-sub {
  font-family: var(--fb);
  font-size: 9.5px;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
}
.nav-links a {
  display: block;
  padding: 7px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: color .2s, box-shadow .2s;
  box-shadow: inset 0 0 0 rgba(27,77,107,0);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-cta { margin-left: 14px; }
.nav-cta .btn { padding: 10px 20px; font-size: 13px; }

/* ── PIÈ DI PAGINA ──────────────────────────────────────────────── */
footer {
  background: var(--paper3);
  border-top: 1px solid var(--line);
  padding: 66px 0 36px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 46px;
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 20px;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--fb);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--faint);
  gap: 20px;
  flex-wrap: wrap;
}

/* ── COMPARSA IN SCORRIMENTO ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.25,.46,.45,.94),
              transform .7s cubic-bezier(.25,.46,.45,.94);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ── SCHEDE ─────────────────────────────────────────────────────── */
/* La vecchia scheda "3D" si inclinava col mouse: qui resta piatta,
   con un semplice sollevamento. Le classi restano per compatibilità. */
.card-3d {
  transform: none !important;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .3s;
}
.card-3d .card-shine { display: none; }
.card-3d h3, .card-3d p,
.card-3d .feature-icon,
.card-3d .feature-screenshot,
.card-3d .feature-list { transform: none !important; box-shadow: none; }
.card-3d:hover { box-shadow: 0 14px 34px rgba(28,28,26,0.09); }
.card-3d:hover .feature-screenshot { transform: none !important; }

.glass-card {
  background: var(--paper2);
  border: 1px solid var(--line);
  border-radius: 0;
  backdrop-filter: none;
  position: relative;
  overflow: hidden;
}
.glass-card::before { content: none; }

/* Numero di tavola: sostituisce le icone emoji delle vecchie schede */
.feature-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto; height: auto;
  background: transparent !important;
  border: 0;
  border-radius: 0;
  font-family: var(--fb);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 0 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  min-width: 54px;
}

/* ── CORNICE SCHERMATE ──────────────────────────────────────────── */
.screen-frame {
  background: var(--paper2);
  border: 1px solid var(--line2);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(28,28,26,0.10);
}
.screen-frame img { display: block; width: 100%; }

/* ── TESTATA DELLE PAGINE INTERNE ───────────────────────────────── */
.page-hero {
  padding: 150px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero-glow { display: none; }
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27,77,107,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27,77,107,0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 80%);
}

/* ── DETTAGLI ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper3); }
::-webkit-scrollbar-thumb { background: var(--line3); border: 3px solid var(--paper3); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

::selection { background: rgba(27,77,107,0.16); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--fh); font-weight: 400; }
strong, b { font-weight: 600; }

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links { display: none; }
  .page-hero { padding: 120px 0 50px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ══════════════════════════════════════════════════════════════════
   BANNER COOKIE
   Riquadro in basso, non a tutto schermo: informa senza sequestrare
   la pagina. I pulsanti hanno lo stesso peso visivo, come richiesto
   dalle linee guida del Garante.
   ══════════════════════════════════════════════════════════════════ */
.ck-root {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9600;
  display: flex; justify-content: center;
  padding: 0 20px 20px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .45s cubic-bezier(.2,.8,.2,1), transform .45s cubic-bezier(.2,.8,.2,1);
}
.ck-root.aperto { opacity: 1; transform: none; pointer-events: auto; }

.ck-banner {
  position: relative;
  width: min(560px, 100%);
  background: var(--paper2);
  border: 1px solid var(--line2);
  box-shadow: 0 24px 60px rgba(28,28,26,0.16);
  padding: 26px 28px 22px;
}
.ck-x {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  background: transparent; border: 1px solid var(--line);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
.ck-x:hover { border-color: var(--ink); color: var(--ink); }

.ck-testo b {
  display: block;
  font-family: var(--fh); font-weight: 400;
  font-size: 21px; letter-spacing: -.3px;
  margin-bottom: 10px;
}
.ck-testo p {
  font-size: 13.8px; line-height: 1.65; color: var(--muted);
  margin-bottom: 10px;
}
.ck-testo .ck-link { font-size: 13px; margin-bottom: 0; }
.ck-testo a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.ck-cats { margin: 18px 0 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.ck-cat {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 9px 0; cursor: pointer;
}
.ck-cat input { margin-top: 3px; accent-color: var(--accent); width: 15px; height: 15px; }
.ck-cat b { display: block; font-size: 13.5px; font-weight: 600; }
.ck-cat i {
  display: block; font-style: normal;
  font-size: 12.5px; color: var(--faint); line-height: 1.5; margin-top: 2px;
}
.ck-cat-fissa { cursor: default; opacity: .72; }

.ck-azioni {
  display: flex; gap: 9px; flex-wrap: wrap;
  margin-top: 20px;
}
.ck-btn {
  flex: 1 1 auto;
  font-family: var(--fb); font-size: 13.2px; font-weight: 600;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid var(--line2);
  color: var(--ink);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.ck-btn:hover { border-color: var(--ink); background: rgba(28,28,26,0.04); }
.ck-btn.ck-primario {
  background: var(--accent); border-color: var(--accent); color: var(--onaccent);
}
.ck-btn.ck-primario:hover { background: var(--accent2); border-color: var(--accent2); }

@media (max-width: 560px) {
  .ck-root { padding: 0 12px 12px; }
  .ck-banner { padding: 22px 20px 18px; }
  .ck-azioni { flex-direction: column; }
  .ck-btn { width: 100%; }
}

/* ── FIRMA DELLO STUDIO CHE HA FATTO IL SITO ────────────────────── */
.firma-odyne {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--faint);
  text-decoration: none;
  transition: color .22s;
  white-space: nowrap;
}
.firma-odyne img {
  width: 20px; height: 20px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .22s;
}
.firma-odyne b { font-weight: 600; color: var(--muted); }
.firma-odyne:hover { color: var(--accent); }
.firma-odyne:hover b { color: var(--accent); }
.firma-odyne:hover img { opacity: 1; }
