/* style.css - layout pulito, professionale, leggero (LIGHT THEME) */
:root{
  /* Base */
  --bg:#ffffff;
  --bg2:#f6f8fc;              /* tono leggero per stacchi */
  --card:#ffffff;

  /* Testi */
  --text:#0f172a;             /* quasi nero (leggibile) */
  --muted:#475569;            /* grigio testo secondario */

  /* Linee e ombre */
  --line:rgba(15,23,42,.10);  /* bordi sottili */
  --shadow:0 12px 36px rgba(15,23,42,.10);
  --shadow2:0 10px 24px rgba(15,23,42,.08);

  /* Accenti (coerenti con logo) */
  --accent:#2f6cff;           /* blu */
  --accent2:#18d3b1;          /* ciano/teal */
  --accentSoft:rgba(47,108,255,.14);
  --accentSoft2:rgba(24,211,177,.12);
}

*{box-sizing:border-box}
html,body{
  margin:0;
  padding:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#ffffff;
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{max-width:1080px;margin:0 auto;padding:0 18px}

/* Topbar */
.topbar{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.78);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{
  display:flex;align-items:center;gap:12px;
  font-weight:700;letter-spacing:.2px;
}

.hp-field {
  position: absolute;
  left: -5000px;
}

/* Logo image */
.brand-logo{
  height:56px;
  width:auto;
  display:block;
  filter: drop-shadow(0 8px 18px rgba(15,23,42,.10));
}


/* === Privacy / Cookie Banner (NON BLOCCANTE) === */
.privacy-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  top:auto;                 /* <-- non copre la pagina */
  padding:0;
  background:transparent;   /* <-- niente overlay scuro */
  backdrop-filter:none;
  z-index:9999;

  display:flex;
  align-items:flex-end;
  justify-content:center;

  pointer-events:none;      /* <-- clic passano alla pagina... */
}

/* ...ma il box interno resta cliccabile */
.privacy-banner-inner{
  pointer-events:auto;
}


.privacy-banner-inner{
  width:100%;
  max-width:1080px;
  margin:0 18px 18px;
  background:#ffffff;
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow:0 20px 50px rgba(15,23,42,.25);
  padding:16px 18px;
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:space-between;
}

.privacy-text{
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
  max-width:720px;
}

.privacy-text a{
  color:var(--text);
  text-decoration:underline;
  text-underline-offset:2px;
}

.privacy-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

@media (max-width:640px){
  .privacy-banner-inner{
    flex-direction:column;
    align-items:stretch;
  }
  .privacy-actions{
    justify-content:flex-end;
  }
}


/* Mobile */
@media (max-width: 768px){
  .brand-logo{ height:42px; }
}

/* Nav links */
.navlinks{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.navlinks a{
  color:var(--muted);
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.navlinks a:hover{
  background:rgba(15,23,42,.04);
  border-color:rgba(15,23,42,.06);
  color:var(--text);
}

/* Hero */
.hero{padding:42px 0 18px}
.hero-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:18px;
  align-items:stretch;
}
@media (max-width:900px){
  .hero-grid{grid-template-columns:1fr}
}

/* Cards */
.card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(15,23,42,.10);
  border-radius:18px;
  padding:18px;
  box-shadow: var(--shadow);
}

/* Micro typography */
.kicker{
  color:var(--muted);
  font-size:12px;
  letter-spacing:.28px;
  text-transform:uppercase;
  margin:0 0 10px;
}
h1{
  font-size:34px;
  line-height:1.12;
  margin:0 0 12px;
  color:var(--text);
}
@media (max-width:520px){h1{font-size:28px}}
.lead{
  color:var(--muted);
  font-size:16px;
  line-height:1.55;
  margin:0 0 14px;
}

/* Badges */
.badges{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0}
.badge{
  border:1px solid rgba(15,23,42,.10);
  color:var(--muted);
  padding:6px 10px;
  border-radius:999px;
  font-size:13px;
  background:rgba(15,23,42,.03);
}

/* Buttons */
.cta-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.86);
  color:var(--text);
  font-weight:650;
  box-shadow: var(--shadow2);
  transition: transform .10s ease, box-shadow .10s ease, background .15s ease;
}
.btn:hover{
  background:#ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15,23,42,.12);
}
.btn.primary{
  border-color:rgba(47,108,255,.28);
  background:
    linear-gradient(135deg, rgba(47,108,255,.12), rgba(24,211,177,.10));
}
.btn.primary:hover{
  background:
    linear-gradient(135deg, rgba(47,108,255,.16), rgba(24,211,177,.12));
}

/* Placeholder (hero image) */
.placeholder-img{
  width:100%;
  height:220px;
  border-radius:16px;
  border:1px dashed rgba(15,23,42,.18);
  background:
    radial-gradient(80% 60% at 30% 25%, rgba(47,108,255,.14), transparent 60%),
    radial-gradient(80% 60% at 70% 65%, rgba(24,211,177,.10), transparent 60%),
    rgba(15,23,42,.02);
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(15,23,42,.55);
  font-size:14px;
}
.small{height:160px}

/* Sections */
.section{padding:14px 0}
.h2{font-size:20px;margin:0 0 10px;color:var(--text)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media (max-width:900px){.grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:560px){.grid{grid-template-columns:1fr}}

/* Tiles */
.tile{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:rgba(255,255,255,.78);
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
  transition: transform .10s ease, box-shadow .12s ease, background .12s ease;
}
.tile p{color:var(--muted);margin:8px 0 0;line-height:1.45}
.tile .title{font-weight:750;color:var(--text)}
.tile:hover{
  background:#ffffff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(15,23,42,.10);
}

/* Lists / notes */
.list{margin:10px 0 0;padding-left:18px;color:var(--muted);line-height:1.55}
.note{color:var(--muted);font-size:14px;line-height:1.55;margin:0}

/* Footer */
.footer{
  padding:24px 0 32px;
  margin-top:18px;
  border-top:1px solid rgba(15,23,42,.10);
  color:var(--muted);
}
.footer a{color:var(--text);text-decoration:underline;text-underline-offset:2px}

/* Separators */
.hr{height:1px;background:rgba(15,23,42,.10);margin:14px 0}

/* Optional: better focus for accessibility */
:focus-visible{
  outline:3px solid rgba(47,108,255,.30);
  outline-offset:3px;
  border-radius:12px;
}
/* Hero image (replaces placeholder-img) */
.hero-img-wrap{
  width:100%;
  height:220px;        /* stessa altezza del placeholder */
  overflow:hidden;     /* evita immagine "enorme" */
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:#ffffff;
}

.hero-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.nav-toggle{ display:none; }

@media (max-width:768px){

  /* Immagine hero */
  .hero-img-wrap{
    height:200px;
  }

  /* Header compatto */
  .nav{
    position:relative;   /* necessario per il menu a tendina */
    padding:8px 0;
    gap:10px;
  }

  /* Logo più leggibile */
  .brand-logo{
    height:36px;
    filter:none;
  }

  /* Bottone menu ☰ */
  .nav-toggle{
    display:block;
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:10px;
    padding:6px 10px;
    font-size:20px;
    line-height:1;
    cursor:pointer;
  }

  /* Menu nascosto di default */
  .navlinks{
    display:none;
    position:absolute;
    top:100%;
    right:0;
    margin-top:10px;
    background:#ffffff;
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow: var(--shadow2);
    flex-direction:column;
    min-width:180px;
    padding:6px;
    z-index:100;
  }

  /* Menu aperto */
  .navlinks.open{
    display:flex;
  }

  .navlinks a{
    padding:10px;
    border-radius:10px;
    white-space:nowrap;
  }
}
/* Guide pratiche */
.guide-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
}

.guide-card{
  display:block;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.10);
  background:
    linear-gradient(
      135deg,
      rgba(47,108,255,.06),
      rgba(24,211,177,.05)
    );
  box-shadow:0 10px 26px rgba(15,23,42,.06);
  transition:transform .10s ease, box-shadow .12s ease, background .12s ease;
}

.guide-card strong{
  display:block;
  color:var(--text);
  font-size:15px;
  margin-bottom:6px;
}

.guide-card span{
  display:block;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

.guide-card:hover{
  background:#ffffff;
  transform:translateY(-1px);
  box-shadow:0 14px 34px rgba(15,23,42,.10);
}

@media (max-width:700px){
  .guide-grid{
    grid-template-columns:1fr;
  }
}

