:root{
  --italy-green:#008C45;
  --italy-white:#F4F5F0;
  --italy-red:#CD212A;
  --italy-blue:#0052A5;
  --italy-green-light:#2FBF71;

  --brand-dark:#0f172a;
  --text:#0f172a;
  --bg:#f8fcf8;
  --card:#ffffff;
  --radius:16px;
  --shadow:0 8px 30px rgba(0,0,0,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;overflow-x:hidden}
body{
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}
a{text-decoration:none;color:inherit}

/* ===== CONTAINER ===== */
.container{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:0 clamp(16px, 3vw, 40px);
}

/* ===== NAVBAR ===== */
.nav{
  position:sticky; top:0; z-index:100;
  background: var(--italy-green-light);
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.nav::after{
  content:""; display:block; height:3px;
  background:linear-gradient(90deg,
    var(--italy-green) 0 33.33%,
    var(--italy-white) 33.33% 66.66%,
    var(--italy-red) 66.66% 100%);
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
  gap:14px;
}

.logo-nav{
  height:250px;
  width:auto;
  object-fit:contain;
  flex:0 0 auto;
}

.menu-desktop{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;              /* se serve va a capo */
  justify-content:flex-end;
}
.menu-desktop a{
  color:#fff;
  font-weight:600;
  white-space:nowrap;
}

/* ===== HERO ===== */
.hero{
  position:relative;
  width:100%;
  min-height:62vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(56px,6vw,96px) 0;
  background:#0b1320;
  overflow:hidden;
}

/* immagine hero */
.hero__media{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  z-index:1;
}

/* overlay */
.hero__overlay{
  position:absolute;
  inset:0;
  z-index:2;
  background:linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.55));
}

/* contenuto hero */
.hero__content{
  position:relative;
  z-index:3;
  max-width:860px;
  text-align:center;
  color:#fff;
  padding:0 16px;
}

/* badge */
.hero__content > .title{
  display:inline-block;
  font-size:14px;
  font-weight:700;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.15);
  margin-bottom:12px;
}

/* titolo */
.hero__content h1.title{
  font-size:clamp(30px,6vw,56px);
  line-height:1.15;
  margin:10px 0 8px;
  font-weight:900;
  text-shadow:0 8px 20px rgba(0,0,0,.35);
}

/* sottotitolo */
.hero__content .subtitle{
  font-size:clamp(16px,2.2vw,19px);
  line-height:1.7;
  opacity:.95;
  max-width:70ch;
  margin:0 auto 16px;
}

/* azioni */
.hero__actions{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ===== TRICOLORE SOTTO HERO ===== */
.hero::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:4px;
  background:linear-gradient(90deg,
    var(--italy-green) 0 33.33%,
    var(--italy-white) 33.33% 66.66%,
    var(--italy-red) 66.66% 100%);
  z-index:4;
}

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:12px;
  font-weight:700;
}
.btn-primary{background:var(--italy-green);color:#fff}
.btn-accent{background:var(--italy-red);color:#fff}
.btn-ghost{background:#fff;border:1px solid var(--italy-blue);color:var(--italy-blue)}

/* ===== SEZIONI ===== */
.section{padding:60px 0}

/* ===== SERVIZI ===== */
.services-tiles{
  display:grid;
  gap:16px;
}
.service-tile{
  background:#f7f9fc;
  border:1px solid #e2e8f0;
  border-radius:16px;
  padding:20px;
}
.service-details{
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .35s ease, opacity .25s ease, margin-top .25s ease;
}
.service-details.is-open{
  max-height:420px;
  opacity:1;
  margin-top:10px;
}

/* ===== FOOTER ===== */
footer{
  padding:30px 0;
  color:#475569;
}
.footer-cols{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width:900px){
  .footer-cols{ grid-template-columns:1fr 1fr; }
}

@media (max-width:700px){
  /* navbar mobile */
  .nav-inner{
    height:auto;
    padding:12px 0;
    flex-direction:column;
    align-items:center;
  }

  .logo-nav{
    height:250px;
  }

  .menu-desktop{
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
  }

  .hero{
    min-height:72vh;
    padding:42px 0;
  }

  .hero::after{
    height:3px;
  }

  .hero__actions{
    flex-direction:column;
    align-items:center;
  }
  .hero__actions .btn{
    width:100%;
    max-width:280px;
  }

  .footer-cols{
    grid-template-columns:1fr;
    gap:24px;
  }
}
