:root {
  --bg: #FAFAFA;
  --dark: #2B2B2B;
  --light: #E5E5E5;
  --accent: #6F7F73;

  --card: #FFFFFF;
  --muted: #5A5A5A;

  --radius: 16px;
  --radius-sm: 12px;

  --shadow: 0 10px 30px rgba(0,0,0,.08);
  --shadow-sm: 0 8px 18px rgba(0,0,0,.08);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BASE */
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =========================
   HEADER
========================= */
.site-header {
  background: var(--card);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 54px;
  width: auto;
  display: block;
}

/* In caso di custom logo WP che avvolge l'immagine */
.custom-logo-link img {
  height: 54px;
  width: auto;
  display: block;
}

/* NAV */
.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--dark);
  opacity: .9;
}

.main-nav a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 6px;
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* CTA WHATSAPP */
.cta-whatsapp {
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
}

/* HAMBURGER */
.hamburger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--light);
  background: var(--card);
  border-radius: 12px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--dark);
  display: block;
}

/* MOBILE DRAWER */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background: rgba(0,0,0,.35);
  padding: 16px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-inner {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  display: grid;
  gap: 10px;
}

.mobile-drawer a {
  padding: 12px 10px;
  border-radius: 12px;
}

.mobile-drawer a:hover {
  background: #f2f2f2;
}

.no-scroll {
  overflow: hidden;
}

/* =========================
   SECTIONS
========================= */
.section-head {
  margin-bottom: 24px;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
}

.kicker {
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 30px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 40px;
  align-items: start;
}

/* Evita stretch verticale della colonna immagine (grid + sezione min-height). */
.hero-grid > .hero-text,
.hero-grid > .hero-image {
  min-width: 0;
}

.hero-text h1 {
  font-size: 62px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.subhead {
  font-size: 18px;
  color: var(--muted);
  margin: 14px 0 22px;
  max-width: 560px;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  object-fit: contain;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--light);
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
}

/* =========================
   BUTTONS
========================= */
.btn {
  padding: 12px 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.primary:hover {
  filter: brightness(.95);
}

.btn.secondary {
  border-color: var(--dark);
  color: var(--dark);
  background: transparent;
}

.btn.secondary:hover {
  background: rgba(0,0,0,.04);
}

.btn.full {
  width: 100%;
}

/* =========================
   FORMS (CONTATTI)
========================= */
.contact-form {
  margin-top: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 14px;
  color: var(--muted);
}

.field-full {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--light);
  border-radius: 12px;
  padding: 12px 12px;
  font-family: inherit;
  font-size: 15px;
  background: #fff;
  color: var(--dark);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(111,127,115,.75);
  box-shadow: 0 0 0 4px rgba(111,127,115,.12);
}

.form-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

.form-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   CATEGORIES
========================= */
.categories {
  padding: 70px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.04);
  transition: transform .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(111,127,115,.6);
}

.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.card-body p {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 12px;
}

.card-link {
  color: var(--accent);
  font-weight: 500;
}

/* =========================
   WHY
========================= */
.why {
  background: var(--light);
  padding: 60px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.why-item {
  background: rgba(255,255,255,.6);
  border-radius: var(--radius-sm);
  padding: 18px;
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(111,127,115,.18);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.why-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.why-item p {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   GALLERY
========================= */
.gallery {
  padding: 70px 0;
}

.gallery-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gcard {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: block;
}

.gcard img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gcard:hover img {
  transform: scale(1.03);
}

.gmeta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  color: white;
  display: grid;
  gap: 2px;
}

.gmeta em {
  font-style: normal;
  opacity: .9;
  font-size: 14px;
}

/* =========================
   CTA BAND
========================= */
.cta-band {
  padding: 60px 0;
}

.cta-band-inner {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-band-inner p {
  color: var(--muted);
}

.cta-band-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  background: var(--dark);
  color: white;
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer-col h5 {
  margin-bottom: 10px;
  font-size: 14px;
  opacity: .9;
}

.footer-col a,
.footer-col span,
.footer-col p {
  display: block;
  color: rgba(255,255,255,.85);
  margin: 8px 0;
  font-size: 14px;
}

.footer-logo {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  height: 26px;
  width: auto;
  display: block;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: inline-flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 24px 0 40px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-image img {
    max-height: 420px;
    object-fit: cover;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gcard img {
    height: 320px;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .header-inner {
    height: 72px;
  }

  .mobile-drawer {
    inset: 72px 0 0 0;
  }

  .logo img,
  .custom-logo-link img {
    height: 42px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   PAGE HERO + PRODOTTI
========================= */
.page-hero{
  padding: 56px 0 30px;
}
.page-hero-inner{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}
.page-hero-card{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.page-hero-card strong{
  font-family: 'Montserrat', sans-serif;
}
.page-hero-actions{
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-sections{
  padding: 20px 0 70px;
}
.product-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
  margin: 26px 0;
}
.product-block.reverse{
  grid-template-columns: 1fr 1fr;
}
.product-block.reverse .product-media{ order: 2; }
.product-block.reverse .product-content{ order: 1; }

.product-media img{
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: block;
}

.product-content h2{
  font-size: 30px;
  margin-bottom: 8px;
}
.product-content p{
  color: var(--muted);
  margin-bottom: 12px;
}

.ticks{
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
}
.ticks li{
  position: relative;
  padding-left: 22px;
  color: var(--dark);
}
.ticks li::before{
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Responsive Prodotti */
@media (max-width: 980px){
  .page-hero-inner{
    grid-template-columns: 1fr;
  }
  .product-block,
  .product-block.reverse{
    grid-template-columns: 1fr;
  }
  .product-block.reverse .product-media{ order: 0; }
  .product-media img{
    height: 300px;
  }
}

/* =========================
   REALIZZAZIONI (ARCHIVIO)
========================= */
.realizzazioni-archive{
  padding: 20px 0 70px;
}

.filters{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 6px 0 18px;
}

.chip{
  border: 1px solid var(--light);
  background: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.chip:hover{
  border-color: rgba(111,127,115,.6);
}

.chip.active{
  background: rgba(111,127,115,.14);
  border-color: rgba(111,127,115,.55);
}

.real-grid{
  margin-top: 12px;
}

/* =========================
   COOKIE CONSENT (banner)
========================= */
body.cookie-consent-open {
  overflow: hidden;
}

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-consent[hidden] {
  display: none !important;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 43, 43, 0.45);
}

.cookie-consent__dialog {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 26px 22px;
  border: 1px solid var(--light);
}

.cookie-consent__title {
  font-size: 22px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}

.cookie-consent__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 18px;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cookie-consent__actions .btn {
  flex: 1 1 auto;
  min-width: 120px;
  justify-content: center;
  text-align: center;
}

.cookie-consent__link-wrap {
  font-size: 14px;
  margin: 0;
}

.cookie-consent__link-wrap a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-consent__link-wrap a:hover {
  opacity: 0.85;
}

/* Pagina preferenze cookie */
.cookie-prefs-panel {
  background: var(--card);
  border: 1px solid var(--light);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}

.cookie-prefs-status {
  font-weight: 600;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(111, 127, 115, 0.1);
  border-radius: var(--radius-sm);
  color: var(--dark);
}

.cookie-prefs-block {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--light);
}

.cookie-prefs-block:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 0;
}

.cookie-prefs-block h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cookie-prefs-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 10px;
}

.cookie-prefs-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--light);
}

.cookie-prefs-badge--on {
  background: rgba(111, 127, 115, 0.18);
  border-color: rgba(111, 127, 115, 0.45);
  color: var(--dark);
}

.cookie-prefs-badge--off {
  background: #f0f0f0;
  color: var(--muted);
}

.cookie-prefs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.cookie-prefs-note {
  margin-top: 16px !important;
  margin-bottom: 0 !important;
}

.cookie-prefs-wpcontent {
  max-width: 800px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.cookie-prefs-wpcontent p {
  margin-bottom: 12px;
}

@media (max-width: 520px) {
  .cookie-consent__actions {
    flex-direction: column;
  }
  .cookie-consent__actions .btn {
    width: 100%;
  }
}

/* Pagina Privacy (testo legale) */
.legal-section {
  padding-bottom: 70px;
}

.legal-page {
  max-width: 820px;
  margin: 0 auto;
  color: var(--dark);
  font-size: 15px;
  line-height: 1.65;
}

.legal-meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--light);
}

.legal-page h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  margin: 32px 0 12px;
  color: var(--dark);
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page p {
  margin-bottom: 14px;
  color: var(--muted);
}

.legal-page p strong {
  color: var(--dark);
}

.legal-address {
  font-style: normal;
  margin: 12px 0 20px;
  padding: 16px 18px;
  background: rgba(111, 127, 115, 0.08);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  color: var(--dark);
  line-height: 1.6;
}

.legal-address a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-list {
  margin: 12px 0 18px;
  padding-left: 22px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.legal-list li {
  padding-left: 4px;
}

.legal-page a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  opacity: 0.88;
}

.legal-wpcontent {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--light);
}

.legal-wpcontent p {
  margin-bottom: 12px;
}

