/* Caratteri ospitati nel sito (nessuna richiesta a Google), licenza OFL in fonts/ */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/oswald-latin-400-normal.woff2") format("woff2"); }

/* Colori ripresi dal volantino e dall'insegna */
:root {
  --green: #48846a;
  --green-dark: #356650;
  --green-light: #cce3cb;
  --green-pale: #eef6ee;
  --charcoal: #2c3133;
  --text: #222829;
  --muted: #5d6766;
  --border: #e1e7e4;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;
  --radius: 6px;
  --max: 1120px;
  --font-head: "Poppins", system-ui, sans-serif;
  --font-cond: "Oswald", "Arial Narrow", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font-head);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo strong { font-weight: 700; }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--green); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .2s, opacity .2s; }

/* Hero */
.hero { padding: 64px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.tag {
  display: inline-block; margin-bottom: 20px; padding: 8px 14px;
  background: var(--green-light); color: var(--green-dark);
  font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .12);
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: .2em; }
.address-line { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 480px; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 2px solid var(--green); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-ghost { color: var(--green-dark); background: transparent; }
.btn-ghost:hover { background: var(--green-pale); }

/* Su smartphone "Chiama" avvia la telefonata, su computer "Contatti" porta alla sezione */
.only-phone { display: none; }
@media (hover: none) and (pointer: coarse) {
  .only-phone { display: inline-block; }
  .only-desktop { display: none; }
}

/* Servizi: fascia verde in stile volantino */
.services-band { background: var(--green); color: #fff; padding: 80px 0; }
.band-title {
  display: inline-block; padding: 14px 24px; margin-bottom: 18px;
  background: var(--green-light); color: var(--green-dark);
  text-transform: uppercase; font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .15);
}
.band-intro { color: rgba(255, 255, 255, .85); margin-bottom: 40px; }
.services-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.services-cols h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.services { list-style: none; margin: 0; padding: 0; }
.services li {
  font-family: var(--font-cond); font-size: 1.25rem; letter-spacing: .02em;
  text-transform: uppercase; padding: 12px 0;
  border-bottom: 2px solid rgba(255, 255, 255, .85);
}

/* Sezioni */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-intro { color: var(--muted); margin-bottom: 32px; }

/* Galleria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.gallery a { display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3 / 2; background: var(--green-pale); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 18, .92); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 12px; right: 20px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }

/* Contatti */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
address { font-style: normal; }
.hours-title { margin-top: 36px; }
.hours { border-collapse: collapse; width: 100%; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; }
.hours th { font-weight: 500; padding-right: 16px; }
.hours td { text-align: right; }
.note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.map-card {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
  min-height: 320px; padding: 40px; border-radius: var(--radius);
  background: var(--green); color: #fff;
}
.map-card h3 { font-size: 1.4rem; margin: 0; }
.map-card p { color: rgba(255, 255, 255, .85); margin: 0 0 18px; }
.map-card .btn { background: #fff; border-color: #fff; color: var(--green-dark); }
.map-card .btn:hover { background: var(--green-light); border-color: var(--green-light); }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, .75); padding: 28px 0; font-size: .9rem; }
.site-footer p { margin: 0; }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--border); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 40px 0 56px; }
  .hero-inner, .services-cols, .contacts { grid-template-columns: 1fr; gap: 36px; }
  .services-band, .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .services li { font-size: 1.1rem; }
}
