/* ============================================
   Potatura Alberi Varese — style.css
   Palette: verde bosco + neutri caldi
   Font: Overpass (titoli), Lato (corpo)
   ============================================ */

:root {
  --verde-scuro: #1B4332;
  --verde-primario: #2D6A4F;
  --verde-chiaro: #40916C;
  --verde-pallido: #D8E9DD;
  --ambra: #C77B2D;
  --ambra-scuro: #A96420;
  --sfondo: #FAF8F4;
  --sfondo-alt: #F1EDE4;
  --testo: #2B2B2A;
  --testo-soft: #5A5A54;
  --bianco: #FFFFFF;
  --bordo: #E3DED2;
  --font-titoli: 'Overpass', system-ui, sans-serif;
  --font-corpo: 'Lato', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-corpo);
  color: var(--testo);
  background: var(--sfondo);
  line-height: 1.65;
  font-size: 17px;
}
h1, h2, h3, h4 { font-family: var(--font-titoli); line-height: 1.2; color: var(--verde-scuro); }
img { max-width: 100%; height: auto; }
a { color: var(--verde-primario); }

.container { max-width: 1140px; margin: 0 auto; padding: 0 22px; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--verde-scuro);
  color: var(--bianco);
  font-size: 14px;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: var(--bianco); text-decoration: none; font-weight: 700; }
.topbar .topbar-phone { display: inline-flex; align-items: center; gap: 7px; }
.topbar .topbar-phone svg { width: 15px; height: 15px; fill: var(--ambra); }

/* ---------- HEADER ---------- */
.site-header {
  background: var(--bianco);
  border-bottom: 1px solid var(--bordo);
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--font-titoli);
  font-weight: 800; font-size: 20px; color: var(--verde-scuro);
  line-height: 1.1;
}
.brand-name small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ambra); letter-spacing: 1.4px; text-transform: uppercase; }
.main-nav > ul { display: flex; gap: 24px; list-style: none; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--testo); font-weight: 700; font-size: 15px;
  font-family: var(--font-titoli);
}
.main-nav a:hover { color: var(--verde-primario); }
.nav-cta {
  background: var(--ambra); color: var(--bianco) !important;
  padding: 10px 20px; border-radius: 6px; font-weight: 800;
}
.nav-cta:hover { background: var(--ambra-scuro); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; color: var(--verde-scuro); cursor: pointer; }

/* ---------- HERO ---------- */
.hero {
  background: var(--verde-scuro);
  color: var(--bianco);
  padding: 78px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 12 L84 52 H70 L92 88 H28 L50 52 H36 Z' fill='%23ffffff' fill-opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  color: var(--ambra); font-weight: 800; margin-bottom: 14px;
}
.hero h1 { color: var(--bianco); font-size: 44px; font-weight: 800; max-width: 780px; margin-bottom: 20px; }
.hero h1 span { color: #F4C78A; }
.hero p { max-width: 700px; font-size: 18px; color: #E4EDE6; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- BOTTONI ---------- */
.btn {
  display: inline-block; text-decoration: none; font-family: var(--font-titoli);
  font-weight: 800; padding: 15px 30px; border-radius: 7px; font-size: 16px;
  transition: background .18s ease;
}
.btn-primary { background: var(--ambra); color: var(--bianco); }
.btn-primary:hover { background: var(--ambra-scuro); }
.btn-outline { border: 2px solid var(--bianco); color: var(--bianco); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-verde { background: var(--verde-primario); color: var(--bianco); }
.btn-verde:hover { background: var(--verde-scuro); }

/* ---------- SEZIONI ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--sfondo-alt); }
.section-verde { background: var(--verde-scuro); color: var(--bianco); }
.section-verde h2, .section-verde h3 { color: var(--bianco); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-kicker {
  text-transform: uppercase; letter-spacing: 2px; font-size: 13px;
  color: var(--ambra); font-weight: 800; margin-bottom: 10px;
}
.section h2 { font-size: 33px; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--testo-soft); font-size: 18px; }
.section-verde .section-head p { color: #D8E5DC; }

/* ---------- GRIGLIE CARDS ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--bianco); border: 1px solid var(--bordo); border-radius: 10px;
  padding: 30px 26px;
}
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--testo-soft); font-size: 15.5px; }
.card .card-icon {
  width: 46px; height: 46px; border-radius: 9px; background: var(--verde-pallido);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .card-icon svg { width: 24px; height: 24px; fill: var(--verde-primario); }
.card-link {
  display: inline-block; margin-top: 14px; font-weight: 800; font-size: 14.5px;
  text-decoration: none; font-family: var(--font-titoli); color: var(--ambra);
}
.card-link:hover { color: var(--ambra-scuro); }

/* ---------- SERVICE CARD (con link) ---------- */
.service-card { display: flex; flex-direction: column; }
.service-card .card-link { margin-top: auto; padding-top: 14px; }

/* ---------- TABELLA PREZZI ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--bianco); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.price-table th {
  background: var(--verde-scuro); color: var(--bianco); text-align: left;
  padding: 14px 18px; font-family: var(--font-titoli); font-size: 15px;
}
.price-table td { padding: 13px 18px; border-bottom: 1px solid var(--bordo); font-size: 15.5px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: #FDFCF9; }
.price-note { font-size: 13.5px; color: var(--testo-soft); margin-top: 12px; }

/* ---------- FORM PREVENTIVO ---------- */
.quote-box {
  background: var(--bianco); border-radius: 12px; padding: 40px;
  box-shadow: 0 4px 24px rgba(27, 67, 50, .10); border: 1px solid var(--bordo);
}
.quote-box h2 { font-size: 28px; margin-bottom: 8px; }
.quote-box > p { color: var(--testo-soft); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.quote-box label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; font-family: var(--font-titoli); color: var(--verde-scuro); }
.quote-box input, .quote-box select, .quote-box textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--bordo); border-radius: 7px;
  font-family: var(--font-corpo); font-size: 15.5px; background: #FDFCF9; color: var(--testo);
}
.quote-box input:focus, .quote-box select:focus, .quote-box textarea:focus {
  outline: 2px solid var(--verde-chiaro); border-color: var(--verde-chiaro);
}
.quote-box button {
  margin-top: 8px; width: 100%; border: none; cursor: pointer;
  background: var(--ambra); color: var(--bianco); font-family: var(--font-titoli);
  font-weight: 800; font-size: 17px; padding: 16px; border-radius: 7px;
}
.quote-box button:hover { background: var(--ambra-scuro); }
.form-privacy { font-size: 12.5px; color: var(--testo-soft); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq-item { background: var(--bianco); border: 1px solid var(--bordo); border-radius: 9px; margin-bottom: 12px; }
.faq-item summary {
  cursor: pointer; padding: 18px 22px; font-family: var(--font-titoli);
  font-weight: 700; font-size: 16.5px; color: var(--verde-scuro); list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--ambra); font-weight: 800; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-body { padding: 0 22px 18px; color: var(--testo-soft); font-size: 15.5px; }

/* ---------- ZONE SERVITE ---------- */
.zone-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; list-style: none; }
.zone-list a {
  display: block; text-align: center; text-decoration: none; background: var(--bianco);
  border: 1px solid var(--bordo); border-radius: 8px; padding: 13px 8px;
  font-weight: 700; font-size: 14.5px; font-family: var(--font-titoli); color: var(--verde-scuro);
}
.zone-list a:hover { background: var(--verde-pallido); border-color: var(--verde-chiaro); }

/* ---------- BARRA CTA FINALE ---------- */
.cta-band { background: var(--verde-primario); color: var(--bianco); padding: 54px 0; text-align: center; }
.cta-band h2 { color: var(--bianco); font-size: 30px; margin-bottom: 10px; }
.cta-band p { color: #DCE9E0; max-width: 640px; margin: 0 auto 26px; font-size: 17px; }
.cta-phone {
  display: inline-block; font-family: var(--font-titoli); font-weight: 800;
  font-size: 26px; color: var(--bianco); text-decoration: none; margin-bottom: 22px;
}

/* ---------- FOOTER ---------- */
.site-footer { background: #142E22; color: #B9CBC0; padding: 56px 0 26px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 38px; }
.site-footer h4 { color: var(--bianco); font-size: 15px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: #B9CBC0; text-decoration: none; }
.site-footer a:hover { color: var(--bianco); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 30px; height: 30px; }
.footer-brand span { font-family: var(--font-titoli); font-weight: 800; color: var(--bianco); font-size: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }

/* ---------- CONTENUTO PAGINE INTERNE ---------- */
.page-hero { background: var(--verde-scuro); color: var(--bianco); padding: 60px 0 64px; position: relative; overflow: hidden; }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 12 L84 52 H70 L92 88 H28 L50 52 H36 Z' fill='%23ffffff' fill-opacity='0.045'/%3E%3C/svg%3E");
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--bianco); font-size: 38px; font-weight: 800; max-width: 820px; margin-bottom: 14px; }
.page-hero p { max-width: 720px; color: #E4EDE6; font-size: 17.5px; }
.breadcrumb { font-size: 13.5px; margin-bottom: 16px; color: #9DBFA9; }
.breadcrumb a { color: #C4DCCB; text-decoration: none; }
.content-body h2 { font-size: 27px; margin: 40px 0 14px; }
.content-body h3 { font-size: 20px; margin: 28px 0 10px; }
.content-body p { margin-bottom: 16px; color: var(--testo); }
.content-body ul, .content-body ol { margin: 0 0 18px 24px; }
.content-body li { margin-bottom: 8px; }
.content-body strong { color: var(--verde-scuro); }
.local-facts {
  background: var(--verde-pallido); border-left: 4px solid var(--verde-primario);
  border-radius: 0 9px 9px 0; padding: 22px 26px; margin: 30px 0;
}
.local-facts h3 { margin-top: 0; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .zone-list { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 640px) {
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .zone-list { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bianco); border-bottom: 2px solid var(--verde-primario); padding: 18px 22px; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-toggle { display: block; }
  .hero { padding: 56px 0 60px; }
  .hero h1 { font-size: 29px; }
  .page-hero h1 { font-size: 27px; }
  .section { padding: 52px 0; }
  .quote-box { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
}


/* ---------- DROPDOWN SERVIZI ---------- */
.has-dropdown { position: relative; }
.has-dropdown > a::after { content: " \25BE"; font-size: 11px; color: var(--ambra); }
.dropdown {
  position: absolute; top: 100%; left: -10px; min-width: 235px;
  background: var(--bianco); border: 1px solid var(--bordo); border-radius: 9px;
  box-shadow: 0 10px 30px rgba(27,67,50,.14); padding: 8px 0;
  display: none; list-style: none; z-index: 300;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a {
  display: block !important; padding: 9px 18px !important; font-size: 14px !important;
  font-weight: 600 !important; white-space: nowrap;
}
.dropdown a:hover { background: var(--verde-pallido); }

/* ---------- RESPONSIVE FIX ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.page-img { border-radius: 10px; margin: 4px 0 26px; box-shadow: 0 3px 14px rgba(27,67,50,.10); }

@media (max-width: 640px) {
  .has-dropdown .dropdown {
    display: block; position: static; box-shadow: none; border: none;
    border-left: 3px solid var(--verde-pallido); border-radius: 0;
    padding: 2px 0 6px 16px; margin-top: 4px;
  }
  .dropdown a { white-space: normal; padding: 7px 0 !important; }
  .has-dropdown > a { color: var(--verde-scuro) !important; }
  .price-table th, .price-table td { padding: 11px 12px; font-size: 14px; }
  .hero-actions .btn { width: 100%; text-align: center; }
  .cta-phone { font-size: 22px; }
  .brand-name { font-size: 17px; }
  .topbar { font-size: 12.5px; }
}


/* ---------- DROPDOWN A DUE COLONNE ---------- */
.dropdown-wide {
  min-width: 430px;
  column-count: 2;
  column-gap: 0;
  padding: 10px 0;
}
.dropdown-wide li { break-inside: avoid; }
@media (max-width: 640px) {
  .has-dropdown .dropdown-wide { min-width: 0; column-count: 1; }
}

/* evita overflow del dropdown largo su schermi medi */
@media (min-width: 641px) and (max-width: 1100px) {
  .dropdown-wide { min-width: 235px; column-count: 1; left: auto; right: 0; }
}


/* ---------- IMMAGINI NELLE SCHEDE SERVIZIO ---------- */
.service-card .card-img {
  width: 100%; height: 150px; object-fit: cover;
  border-radius: 8px; margin-bottom: 16px;
}

/* ---------- HAMBURGER MENU FINO A 1024px (fix tablet/schermi stretti) ---------- */
@media (max-width: 1024px) {
  .brand-name { font-size: 17px; white-space: normal; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bianco); border-bottom: 2px solid var(--verde-primario); padding: 18px 22px; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav-toggle { display: block; }
  .has-dropdown .dropdown {
    display: block; position: static; box-shadow: none; border: none;
    border-left: 3px solid var(--verde-pallido); border-radius: 0;
    padding: 2px 0 6px 16px; margin-top: 4px;
  }
  .dropdown-wide { min-width: 0; column-count: 1; }
  .dropdown a { white-space: normal; padding: 7px 0 !important; }
}
@media (min-width: 1025px) {
  .brand-name { white-space: nowrap; }
}


/* ---------- HERO A DUE COLONNE CON FORM ---------- */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.hero-quote { padding: 30px 28px; }
.hero-quote h2 { font-size: 24px; }
.hero-quote > p { font-size: 15px; margin-bottom: 18px; }
.hero-quote input, .hero-quote select { padding: 11px 13px; font-size: 15px; }
.hero-quote button { padding: 14px; font-size: 16px; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}
