/*
Theme Name: Oristano Inerti
Theme URI: https://oristanoinerti.it
Author: Oristano Inerti S.r.l.
Description: Tema personalizzato per Oristano Inerti S.r.l. - Cava Inerti. Homepage con slideshow, sezioni Prodotti, Dove Siamo, FAQ e Contatti. Tema bianco e verde coordinato col logo aziendale.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.0
License: GNU General Public License v2 or later
Text Domain: oristano-inerti
*/

:root {
    --green:        #00A04B;
    --green-dark:   #0B7A3D;
    --green-deep:   #075C2D;
    --green-light:  #5BBB87;
    --green-50:     #eef9f2;
    --green-100:    #d9f0e2;
    --ink:          #1a2620;
    --muted:        #5d6b63;
    --white:        #ffffff;
    --radius:       16px;
    --shadow-sm:    0 2px 10px rgba(11,122,61,0.08);
    --shadow-md:    0 10px 30px rgba(11,122,61,0.14);
    --nav-h:        84px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; display: block; }

  /* ---------- NAVBAR ---------- */
  .navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--green-100);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 56px);
    transition: box-shadow .3s, height .3s;
  }
  .navbar.scrolled { box-shadow: var(--shadow-sm); }

  /* bottoni a sinistra */
  .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
  }
  .nav-links a {
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    color: var(--green-deep);
    padding: 10px 18px;
    border-radius: 10px;
    transition: color .2s, background .2s;
  }
  .nav-links a::after {
    content: '';
    position: absolute;
    left: 18px; right: 18px; bottom: 6px;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s ease;
  }
  .nav-links a:hover { color: var(--green); background: var(--green-50); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-links a.cta {
    color: var(--green-deep);
    border: 1.5px solid var(--green);
    transition: color .28s ease, background .28s ease, transform .2s ease, box-shadow .28s ease;
  }
  .nav-links a.cta::after { display: none; }
  .nav-links a.cta:hover {
    background: var(--green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
  }

  /* logo a sinistra */
  .nav-logo img {
    height: 56px;
    width: auto;
    transition: transform .3s;
  }
  .nav-logo:hover img { transform: scale(1.03); }

  /* hamburger */
  .nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
  }
  .nav-toggle span {
    width: 26px; height: 3px;
    background: var(--green-deep);
    border-radius: 3px;
    transition: .3s;
  }

  /* ---------- SLIDESHOW HERO ---------- */
  .hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    margin-top: 0;
    overflow: hidden;
  }
  .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.4s ease, transform 7s ease;
    background-size: cover;
    background-position: center;
  }
  .slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
  }
  .slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7,92,45,0.18) 0%, rgba(7,92,45,0.05) 40%, rgba(7,92,45,0.55) 100%);
  }

  .hero-content {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 clamp(24px, 8vw, 120px);
    padding-top: var(--nav-h);
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.95);
    color: var(--green-deep);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    animation: fadeUp .8s .2s forwards;
  }
  .hero-eyebrow .dot { width: 9px; height: 9px; background: var(--green); border-radius: 50%; }
  .hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    max-width: 16ch;
    text-shadow: 0 2px 30px rgba(0,0,0,0.25);
    opacity: 0;
    animation: fadeUp .9s .35s forwards;
  }
  .hero h1 .accent { color: var(--green-light); }
  .hero p {
    color: rgba(255,255,255,0.94);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 46ch;
    margin-top: 22px;
    text-shadow: 0 1px 12px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeUp .9s .5s forwards;
  }
  .hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 38px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .9s .65s forwards;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 30px;
    border-radius: 12px;
    cursor: pointer;
    border: none;
    transition: transform .2s, box-shadow .2s, background .2s;
  }
  .btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
  .btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
  .btn-ghost { background: rgba(255,255,255,0.95); color: var(--green-deep); }
  .btn-ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* dots slideshow */
  .hero-dots {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 12px;
  }
  .hero-dots button {
    width: 38px; height: 5px;
    border: none;
    border-radius: 4px;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background .3s, width .3s;
  }
  .hero-dots button.active { background: #fff; width: 54px; }

  .scroll-hint {
    position: absolute;
    bottom: 30px; right: 40px;
    z-index: 6;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
  }
  .scroll-hint .mouse {
    width: 24px; height: 38px;
    border: 2px solid #fff;
    border-radius: 14px;
    position: relative;
  }
  .scroll-hint .mouse::after {
    content: '';
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollDot 1.5s infinite;
  }
  @keyframes scrollDot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 12px); }
  }

  /* ---------- SECTIONS ---------- */
  /* Lo stop dello scroll alle ancore tiene conto sia della navbar fissa sia del
     padding superiore della sezione, così si arriva al vero inizio del contenuto
     (es. l'occhiello "VIENI A TROVARCI") e non a una fascia vuota sopra di esso. */
  section { scroll-margin-top: var(--nav-h); }
  .section-pad { scroll-margin-top: calc(var(--nav-h) + clamp(70px, 10vw, 120px) - 28px); }
  .wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); }
  .section-pad { padding: clamp(70px, 10vw, 120px) 0; }

  .sec-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
  .sec-tag {
    display: inline-block;
    color: var(--green);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
  }
  .sec-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--ink);
  }
  .sec-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

  /* reveal on scroll */
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: translateY(0); }

  /* PRODOTTI */
  #prodotti { background: var(--green-50); }
  .prod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
  }
  .prod-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s, box-shadow .3s;
  }
  .prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .prod-card .thumb { height: 170px; background-size: cover; background-position: center; position: relative; }
  .prod-card .thumb::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.06)); }
  .prod-card .body { padding: 22px 24px 26px; }
  .prod-card h3 { font-size: 1.25rem; font-weight: 800; color: var(--green-deep); }
  .prod-card p { color: var(--muted); font-size: 0.93rem; margin-top: 8px; }
  .prod-card .gran { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
  .prod-card .gran span {
    font-size: 0.72rem;
    background: var(--green-100);
    color: var(--green-deep);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
  }

  /* DOVE SIAMO — 3 box affiancati */
  .ds-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .ds-box {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--green-100);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
  }
  .ds-box:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
  .ds-box-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    font-weight: 800;
    color: var(--green-deep);
    font-size: 1.05rem;
    border-bottom: 1px solid var(--green-50);
    background: #fff;
    z-index: 2;
  }
  .ds-box-label .ic {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green);
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: background .3s, color .3s, transform .3s;
  }
  .ds-box:hover .ds-box-label .ic { background: var(--green); color: #fff; transform: rotate(-6deg) scale(1.05); }

  /* box mappa & foto: area uniforme, immagine che riempie senza bande grigie */
  .ds-media,
  .ds-photo {
    position: relative;
    display: block;
    flex: 1;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    line-height: 0;
  }
  .ds-media iframe,
  .ds-photo img {
    width: 100%; height: 100%;
    object-fit: cover;        /* riempie tutto: niente bande grigie */
    object-position: center;
    border: 0;
    display: block;
    transition: transform .6s ease;
  }
  .ds-media iframe { pointer-events: none; }
  .ds-box:hover .ds-photo img { transform: scale(1.05); }
  /* overlay azione su hover */
  .ds-action {
    position: absolute;
    left: 14px; bottom: 14px; right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 11px 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .3s ease, transform .3s ease, background .25s;
    z-index: 3;
  }
  .ds-box:hover .ds-action { opacity: 1; transform: translateY(0); }
  .ds-action:hover { background: var(--green-dark); }
  .ds-action .icon { width: 18px; height: 18px; }

  /* box indirizzo: centra il contenuto verticalmente nell'altezza disponibile */
  .ds-info { padding: 24px 22px; display: flex; flex-direction: column; gap: 18px; flex: 1; justify-content: center; }
  .ds-row { display: flex; gap: 13px; align-items: flex-start; }
  .ds-row .ic {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--green-50);
    color: var(--green);
    display: grid; place-items: center;
    transition: transform .3s;
  }
  .ds-box:hover .ds-row .ic { transform: translateY(-2px); }
  .ds-row h4 { font-size: 0.98rem; color: var(--ink); margin-bottom: 2px; }
  .ds-row p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
  .ds-info .btn { margin-top: auto; align-self: stretch; justify-content: center; }

  /* FAQ */
  #faq { background: var(--green-50); }
  .faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
  .faq-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid transparent;
    transition: border-color .25s;
  }
  .faq-item.open { border-color: var(--green-light); }
  .faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 22px 26px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .faq-q .chev {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--green-50);
    color: var(--green);
    display: grid; place-items: center;
    transition: transform .3s, background .3s;
    font-size: 1.2rem;
    line-height: 1;
  }
  .faq-item.open .chev { transform: rotate(45deg); background: var(--green); color: #fff; }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
  }
  .faq-a p { padding: 0 26px 24px; color: var(--muted); }

  /* CONTATTI */
  .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .contact-form { display: flex; flex-direction: column; gap: 14px; }
  .field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--green-deep); margin-bottom: 4px; }
  .field input, .field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--green-100);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
  }
  .field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-50);
  }
  .field textarea { resize: vertical; min-height: 130px; }
  .contact-aside {
    background: linear-gradient(160deg, var(--green-dark), var(--green-deep));
    color: #fff;
    border-radius: var(--radius);
    padding: 30px 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-self: start;
  }
  .contact-aside h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 2px; }
  .contact-aside .crow { display: flex; gap: 13px; align-items: center; }
  .contact-aside .crow .ic { width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
  .contact-aside .crow .ic .icon { width: 20px; height: 20px; }
  .contact-aside .crow span { font-size: 0.94rem; opacity: 0.95; }
  .form-note { font-size: 0.8rem; color: var(--muted); }

  /* FOOTER */
  footer {
    background: var(--green-deep);
    color: rgba(255,255,255,0.85);
    padding: 50px 0 28px;
  }
  .foot-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; align-items: center; }
  .foot-logo { background: #fff; padding: 12px 18px; border-radius: 12px; }
  .foot-logo img { height: 40px; }
  .foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
  .foot-links a { font-weight: 600; transition: color .2s; }
  .foot-links a:hover { color: var(--green-light); }
  .foot-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 30px; padding-top: 22px; font-size: 0.82rem; opacity: 0.7; text-align: center; }

  /* SVG icons */
  .icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 900px) {
    .map-layout, .contact-layout { grid-template-columns: 1fr; }
    /* "Dove siamo" compatta su mobile: i box impilati diventano molto più bassi
       così la sezione sta (quasi) in una sola schermata. */
    .ds-grid { grid-template-columns: 1fr; gap: 14px; }
    .ds-media, .ds-photo { aspect-ratio: 16 / 9; min-height: 0; }
    .ds-box-label { padding: 14px 18px; font-size: 1rem; }
    .ds-info { padding: 16px 18px; gap: 12px; }
    .ds-row p { font-size: 0.86rem; }
    .ds-info .btn { margin-top: 6px; }

    /* Logo più contenuto per non sforare la barra su mobile */
    .nav-logo img { height: 44px; }

    /* Hamburger ben visibile a destra */
    .nav-toggle { display: flex; }

    /* Menu a comparsa: parte esattamente sotto la barra, a tutta larghezza,
       con voci ben spaziate e cliccabili. */
    .nav-links {
      position: fixed;
      top: var(--nav-h); left: 0; right: 0;
      background: #fff;
      flex-direction: column;
      align-items: stretch;
      gap: 4px;
      padding: 12px 18px 20px;
      box-shadow: var(--shadow-md);
      border-bottom: 1px solid var(--green-100);
      transform: translateY(-130%);
      transition: transform .35s ease;
      max-height: calc(100vh - var(--nav-h));
      overflow-y: auto;
      z-index: 999;
    }
    .nav-links.show { transform: translateY(0); }
    .nav-links a {
      display: block;
      padding: 15px 16px;
      border-radius: 10px;
      font-size: 1rem;
      color: var(--green-deep);
      background: var(--green-50);
    }
    .nav-links a::after { display: none; }
    .nav-links a.cta {
      text-align: center;
      margin-top: 6px;
      background: var(--green);
      color: #fff;
      border-color: var(--green);
    }
    .scroll-hint { display: none; }
  }
/* ---------- Box CONTATTI (sezione Contattaci) ---------- */
.contact-only { max-width: 560px; margin: 0 auto; }
.contact-card {
  background: #fff;
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(7,92,45,.04), 0 10px 30px rgba(7,92,45,.06);
  overflow: hidden;
}
.contact-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--green-100);
}
.contact-card-head .ic {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--green-50); color: var(--green-deep);
  display: grid; place-items: center; flex-shrink: 0;
}
.contact-card-head .ic .icon { width: 22px; height: 22px; }
.contact-card-head h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 0; }
.contact-card-body { display: flex; flex-direction: column; }
.contact-line {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  color: var(--ink);
  border-top: 1px solid var(--green-100);
  transition: background-color .16s ease;
}
.contact-line:first-child { border-top: none; }
.contact-line .ic {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--green-50); color: var(--green-deep);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .18s cubic-bezier(.22,.61,.36,1);
}
.contact-line .ic .icon { width: 20px; height: 20px; }
.contact-line-txt { display: flex; flex-direction: column; line-height: 1.35; }
.contact-line-txt strong {
  font-size: .76rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; margin-bottom: 2px;
}
.contact-line--wa .ic { background: #25D366; color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .contact-line:hover { background: var(--green-50); }
  .contact-line:hover .ic { transform: scale(1.06); }
  .contact-line--wa:hover { background: #eafaf0; }
}
.contact-line:active { background: var(--green-100); }
@media (prefers-reduced-motion: reduce) {
  .contact-line, .contact-line .ic { transition: none; }
}

/* ---------- Stile modulo Contact Form 7 ---------- */
.contact-form .wpcf7-form { display: flex; flex-direction: column; gap: 14px; }
/* CF7 racchiude ogni campo in un <p>: azzero i margini di default del browser
   per evitare spazi eccessivi tra etichetta e campo. */
.contact-form .wpcf7-form p { margin: 0; }
.contact-form .wpcf7-form label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--green-deep); margin-bottom: 4px; }
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form input.wpcf7-form-control,
.contact-form textarea.wpcf7-form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--green-100);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input.wpcf7-form-control:focus,
.contact-form textarea.wpcf7-form-control:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-50);
}
.contact-form textarea.wpcf7-form-control { resize: vertical; min-height: 110px; }
.contact-form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 30px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  background: var(--green);
  color: #fff;
  box-shadow: var(--shadow-md);
  align-self: flex-start;
  transition: transform .2s, background .2s;
}
.contact-form .wpcf7-submit:hover { background: var(--green-dark); transform: translateY(-2px); }
.contact-form .wpcf7-spinner { margin: 0 0 0 10px; }
.contact-form .wpcf7-response-output {
  border-radius: 10px !important;
  margin: 8px 0 0 !important;
  padding: 12px 16px !important;
  font-size: 0.9rem;
}

/* ============ PAGINA PRODOTTI ============ */
.page-hero {
  margin-top: var(--nav-h);
  background: linear-gradient(160deg, var(--green-dark), var(--green-deep));
  color: #fff;
  padding: clamp(50px, 8vw, 90px) 0;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-top: 8px;
}
.page-hero p {
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.08rem;
  color: rgba(255,255,255,0.92);
}

/* Indice categorie sticky sotto la navbar */
.cat-index {
  position: sticky;
  top: var(--nav-h);
  z-index: 500;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--green-100);
  box-shadow: var(--shadow-sm);
}
.cat-index .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.cat-index a {
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-deep);
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--green-50);
  transition: background .2s, color .2s, transform .2s;
}
.cat-index a:hover { background: var(--green); color: #fff; transform: translateY(-1px); }

.prodotti-page { padding: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 100px); }
.cat-block { scroll-margin-top: calc(var(--nav-h) + 70px); padding-top: clamp(30px, 5vw, 50px); }
.cat-head { max-width: 760px; margin-bottom: 30px; }
.cat-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--green-deep);
  position: relative;
  padding-bottom: 12px;
}
.cat-head h2::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 4px;
  background: var(--green);
  border-radius: 3px;
}
.cat-head p { color: var(--muted); margin-top: 14px; font-size: 1rem; }

/* badge categoria sopra la foto del prodotto */
.prod-card .thumb { position: relative; }
.prod-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.95);
  color: var(--green-deep);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}
/* certificato */
.prod-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green);
  background: var(--green-50);
  padding: 5px 12px;
  border-radius: 8px;
}
.prod-cert .icon { stroke: var(--green); stroke-width: 2.2; }

/* CTA finale pagina prodotti */
.prod-cta {
  margin-top: clamp(50px, 7vw, 80px);
  text-align: center;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 56px);
}
.prod-cta h3 { font-size: 1.5rem; font-weight: 800; color: var(--green-deep); }
.prod-cta p { color: var(--muted); margin: 10px 0 24px; }
.prod-cta .btn { display: inline-flex; }

/* ============ CARD CATEGORIE (homepage) ============ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cat-card {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-100);
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s;
}
.cat-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.cat-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform .6s ease;
}
.cat-card:hover .cat-card-img { transform: scale(1.06); }
.cat-card-body { padding: 20px 22px 22px; }
.cat-card-count {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--green);
  background: var(--green-50);
  padding: 3px 10px;
  border-radius: 20px;
}
.cat-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-deep);
  margin: 12px 0 14px;
  line-height: 1.25;
}
.cat-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  transition: gap .25s;
}
.cat-card-link .icon { width: 18px; height: 18px; transition: transform .25s; }
.cat-card:hover .cat-card-link { gap: 12px; }
.cat-card:hover .cat-card-link .icon { transform: translateX(3px); }

@media (max-width: 900px) {
  /* Categorie a due per riga su mobile, così si scorrono molto più in fretta */
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cat-card-img { height: 120px; }
  .cat-card-body { padding: 14px 14px 16px; }
  .cat-card h3 { font-size: 1rem; margin: 10px 0 10px; }
  .cat-card-count { font-size: 0.66rem; padding: 3px 8px; }
  .cat-card-link { font-size: 0.82rem; white-space: nowrap; }
}
@media (max-width: 380px) {
  /* Su schermi molto stretti il testo dei pulsanti resta leggibile */
  .cat-grid { gap: 10px; }
  .cat-card-body { padding: 12px 12px 14px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
