/* ============================================================
   Landing NetCore Fibra 1 Giga  -  campagna Meta (FB/IG)
   Palette ispirata al brand NetCore Italia (blu / ciano).
   Puoi ritoccare i valori qui sotto senza toccare il resto.
   ============================================================ */
:root{
  --navy:      #0a2a43;
  --blue:      #0e6ba8;
  --blue-700:  #0a5182;
  --cyan:      #00a7e1;
  --cyan-600:  #0090c4;
  --ink:       #14202b;
  --muted:     #5c6b78;
  --line:      #e2e8ee;
  --bg:        #f4f7fa;
  --white:     #ffffff;
  --ok:        #1a7f4b;
  --err:       #c0392b;
  --radius:    14px;
  --shadow:    0 20px 45px -20px rgba(10,42,67,.35);
  --wrap:      1080px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;height:auto}
a{color:var(--blue)}
h1,h2,h3{font-family:var(--font-head);line-height:1.15;margin:0}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.nowrap{white-space:nowrap}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(8px);
  border-bottom:1px solid var(--line);
}
.site-header__inner{display:flex;align-items:center;justify-content:space-between;height:60px}
.logo img{width:150px;height:auto}
.header-cta{
  font-family:var(--font-head);font-weight:600;font-size:.9rem;
  text-decoration:none;color:var(--white);
  background:var(--blue);padding:9px 16px;border-radius:999px;
}
.header-cta:hover{background:var(--blue-700)}

/* ---------- hero ---------- */
.hero{position:relative;overflow:hidden;color:var(--white)}
.hero__bg{
  position:absolute;inset:0;z-index:0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(0,167,225,.55), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(14,107,168,.55), transparent 55%),
    linear-gradient(160deg, var(--navy), var(--blue-700));
}
.hero__bg::after{
  content:"";position:absolute;inset:0;
  background-image:repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 26px);
  mask-image:linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__grid{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1.05fr .95fr;grid-template-rows:auto 1fr;
  gap:0 44px;
  padding:56px 20px 64px;align-items:start;
}
/* desktop: titolo + dettagli a sinistra, form a destra (invariato) */
.hero__headline{grid-column:1;grid-row:1}
.hero__details{grid-column:1;grid-row:2}
.hero__grid > .form-card{grid-column:2;grid-row:1 / span 2;align-self:start}
.eyebrow{
  font-family:var(--font-head);font-weight:600;letter-spacing:.02em;
  text-transform:uppercase;font-size:.72rem;color:#bfe6f6;margin:0 0 14px;
}
.hero h1{font-size:clamp(2rem,4.4vw,3.1rem);font-weight:700}
.hero h1 strong{color:#7fdcff}
.lede{font-size:1.06rem;color:#dce8f1;margin:18px 0 22px;max-width:46ch}
.benefits{list-style:none;margin:0 0 20px;padding:0;display:grid;gap:10px}
.benefits li{position:relative;padding-left:30px;color:#eaf3f9;font-size:.98rem}
.tick{position:absolute;left:0;top:2px;width:20px;height:20px;border-radius:50%;
  background:var(--cyan);display:inline-block}
.tick::after{content:"";position:absolute;left:6px;top:3px;width:5px;height:10px;
  border:solid #06283a;border-width:0 2.5px 2.5px 0;transform:rotate(42deg)}
.fineprint{font-size:.82rem;color:#a9c6d8;margin:0}
.fineprint a{color:#cfe9f5}

/* ---------- form card ---------- */
.form-card{
  background:var(--white);color:var(--ink);
  border-radius:var(--radius);box-shadow:var(--shadow);
  padding:26px 24px 22px;
}
.form-card h2{font-size:1.4rem;font-weight:700}
.form-card__sub{margin:6px 0 18px;color:var(--muted);font-size:.92rem}

.field{margin-bottom:15px}
.field label{display:block;font-weight:600;font-size:.9rem;margin-bottom:6px}
.req{color:var(--err)}
.field input[type=text],
.field input[type=tel]{
  width:100%;padding:12px 13px;font-size:1rem;font-family:inherit;
  border:1.5px solid var(--line);border-radius:10px;background:#fbfdfe;color:var(--ink);
  transition:border-color .15s, box-shadow .15s;
}
.field input:focus{outline:none;border-color:var(--cyan);box-shadow:0 0 0 3px rgba(0,167,225,.18)}
.field input[aria-invalid="true"]{border-color:var(--err);background:#fff6f5}

.field--check{margin-top:4px}
.check{display:flex;gap:10px;align-items:flex-start;font-weight:400;font-size:.85rem;color:var(--muted);cursor:pointer}
.check input{margin-top:3px;width:18px;height:18px;flex:0 0 auto;accent-color:var(--blue)}
.check a{color:var(--blue)}

.field__error{margin:6px 0 0;color:var(--err);font-size:.8rem;font-weight:500}

.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.btn-submit{
  position:relative;width:100%;margin-top:8px;
  background:linear-gradient(180deg, var(--cyan), var(--cyan-600));
  color:#03222f;font-family:var(--font-head);font-weight:700;font-size:1.02rem;
  border:0;border-radius:11px;padding:14px 18px;cursor:pointer;
  transition:filter .15s, transform .05s;
}
.btn-submit:hover{filter:brightness(1.05)}
.btn-submit:active{transform:translateY(1px)}
.btn-submit[disabled]{filter:grayscale(.3) brightness(.95);cursor:progress}
.btn-submit__spinner{
  display:none;position:absolute;right:16px;top:50%;width:18px;height:18px;margin-top:-9px;
  border:2.5px solid rgba(3,34,47,.35);border-top-color:#03222f;border-radius:50%;
  animation:spin .7s linear infinite;
}
.is-loading .btn-submit__spinner{display:block}
@keyframes spin{to{transform:rotate(360deg)}}

.form-note{margin:12px 0 0;font-size:.9rem;font-weight:600;min-height:1.2em}
.form-note.is-ok{color:var(--ok)}
.form-note.is-err{color:var(--err)}
.consent-note{margin:14px 0 0;font-size:.76rem;color:var(--muted);line-height:1.5}

/* ---------- success state ---------- */
.form-card.is-done .lead-form{display:none}
.form-card.is-done > h2,
.form-card.is-done > .form-card__sub{display:none}
.thanks{display:none}
.thanks:focus{outline:none}
.form-card.is-done .thanks{display:block;text-align:center;padding:24px 4px}
.thanks__icon{width:56px;height:56px;border-radius:50%;background:var(--ok);margin:0 auto 14px;position:relative}
.thanks__icon::after{content:"";position:absolute;left:20px;top:14px;width:12px;height:24px;
  border:solid #fff;border-width:0 4px 4px 0;transform:rotate(42deg)}
.thanks h2{color:var(--ink)}
.thanks p{color:var(--muted);font-size:.95rem;margin:8px 0 0}

/* ---------- footer ---------- */
.site-footer{background:var(--navy);color:#b9cdda;padding:30px 0;font-size:.82rem}
.site-footer p{margin:0 0 8px}
.site-footer a{color:#dcebf5;color:#cfe4f1}
.site-footer .disclaimer{color:#89a3b4;font-size:.76rem;margin-top:10px;line-height:1.5}

/* ---------- cookie banner ---------- */
.cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:var(--white);border-top:1px solid var(--line);
  box-shadow:0 -12px 34px -14px rgba(10,42,67,.3);
  padding:14px 16px;
}
.cookie-banner__inner{
  max-width:var(--wrap);margin:0 auto;
  display:flex;gap:18px;align-items:center;flex-wrap:wrap;
}
.cookie-banner__text{
  margin:0;flex:1 1 340px;font-size:.8rem;line-height:1.5;color:var(--muted);
}
.cookie-banner__text a{color:var(--blue)}
.cookie-banner__actions{display:flex;gap:10px;flex:0 0 auto}
.cookie-btn{
  font-family:var(--font-head);font-weight:600;font-size:.88rem;
  padding:10px 20px;border-radius:9px;cursor:pointer;
  border:1.5px solid var(--blue);transition:background .15s,color .15s;
}
.cookie-btn--ghost{background:var(--white);color:var(--blue)}
.cookie-btn--ghost:hover{background:#eef4f9}
.cookie-btn--solid{background:var(--blue);color:#fff;border-color:var(--blue)}
.cookie-btn--solid:hover{background:var(--blue-700);border-color:var(--blue-700)}

/* ---------- responsive ---------- */
@media (max-width:860px){
  /* mobile: prima il form, poi la descrizione dell'offerta */
  .hero__grid{grid-template-columns:1fr;grid-template-rows:none;gap:24px;padding:32px 20px 44px}
  .hero__headline,
  .hero__details,
  .hero__grid > .form-card{grid-column:auto;grid-row:auto}
  .hero__headline{order:1}
  .hero__grid > .form-card{order:2}
  .hero__details{order:3}
  .hero__details .lede{margin-top:0}
  .lede{max-width:none}
  .header-cta{display:none}
}
@media (max-width:560px){
  .cookie-banner__actions{flex:1 1 100%}
  .cookie-btn{flex:1}
}
@media (max-width:420px){
  .form-card{padding:22px 18px 20px}
  .hero h1{font-size:1.9rem}
}

@media (prefers-reduced-motion:reduce){
  .btn-submit__spinner{animation-duration:2s}
  *{scroll-behavior:auto}
}
