/*
  DIREZIONE ARTISTICA — Vivai Zanetti Sandro
  Nessuna "Design Direction" era stata specificata nel brief, quindi la scelgo qui,
  motivata dal settore (vivaio + paesaggista, attivita' familiare a Monselice, 4.8/5 su Google):

  - Palette: verde bosco profondo (#26392c) come colore identitario, terracotta (#c1642f)
    per gli accenti e le CTA (colore del vaso in cotto, non del "verde finto ecologico"
    da template generico), crema caldo (#f6f1e6) come fondo — evoca vivaio reale,
    terra, foglie, non un verde "corporate SaaS".
  - Tipografia: coppia serif/sans di sistema (Georgia per i titoli, system-ui per il corpo)
    per restare a costo zero di rete (nessun Google Fonts) ma con un titolo che abbia
    carattere artigianale, non l'ennesimo Inter/Poppins da landing page.
  - Elementi grafici: motivi botanici disegnati a mano in SVG inline (foglie, rametti),
    niente icone stock generiche, niente foto placeholder esterne.
  - Cosa evitiamo deliberatamente: hero con foto stock di "mani nella terra",
    card fluttuanti con ombre morbide, gradient viola/blu da SaaS — qui il registro
    e' quello di un vivaio vero, non di un'app.
*/

:root {
  --forest: #26392c;
  --forest-dark: #17241b;
  --terracotta: #c1642f;
  --terracotta-dark: #9c4d22;
  --cream: #f6f1e6;
  --cream-dark: #ece3d1;
  --ink: #23281f;
  --gold: #b98b3e;
  --max-width: 1160px;
  --radius: 4px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

/* ---------- Header ---------- */

.site-header {
  background: var(--forest);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--cream);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--terracotta);
}

.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 9px 18px !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}

.nav-cta:hover {
  background: var(--terracotta-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(246, 241, 230, 0.4);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--forest-dark);
  color: var(--cream);
  overflow: hidden;
}

.hero-leaves {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
}

.hero .container {
  position: relative;
  padding-top: 88px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 241, 230, 0.1);
  border: 1px solid rgba(246, 241, 230, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}

.hero-badge strong {
  color: var(--gold);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(246, 241, 230, 0.85);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--terracotta);
  color: #fff;
}

.btn-primary:hover {
  background: var(--terracotta-dark);
}

.btn-outline {
  border-color: rgba(246, 241, 230, 0.4);
  color: var(--cream);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--cream);
}

.hero-figure {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-figure svg {
  width: 100%;
  max-width: 380px;
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--cream-dark);
  border-bottom: 1px solid rgba(38, 57, 44, 0.1);
}

.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  padding: 18px 24px;
  font-size: 0.9rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--forest);
}

.trust-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--terracotta);
}

/* ---------- Sections ---------- */

section {
  padding: 72px 0;
}

.section-head {
  max-width: 62ch;
  margin: 0 0 42px;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--terracotta-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  color: var(--forest);
}

.section-head p {
  color: #4a4f42;
  font-size: 1.02rem;
}

.section-alt {
  background: var(--cream-dark);
}

/* ---------- Services grid ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(38, 57, 44, 0.1);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}

.service-card svg {
  width: 38px;
  height: 38px;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--serif);
  font-size: 1.18rem;
  margin: 0 0 10px;
  color: var(--forest);
}

.service-card p {
  margin: 0;
  color: #4a4f42;
  font-size: 0.96rem;
}

/* ---------- Split / about ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-figure {
  background: var(--forest);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.split-figure svg {
  width: 100%;
  max-width: 320px;
}

.split-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--forest);
  margin: 0 0 18px;
}

.split-text p {
  color: #4a4f42;
  margin: 0 0 16px;
}

.split-text ul {
  padding-left: 20px;
  margin: 22px 0 0;
  color: var(--forest);
}

.split-text li {
  margin-bottom: 8px;
}

/* ---------- Reviews ---------- */

.review-banner {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
}

.review-banner .stars {
  color: var(--gold);
  font-size: 1.6rem;
  letter-spacing: 4px;
  margin-bottom: 10px;
}

.review-banner .score {
  font-family: var(--serif);
  font-size: 2.6rem;
  margin: 0;
}

.review-banner p.small {
  color: rgba(246, 241, 230, 0.75);
  margin-top: 10px;
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--terracotta);
  color: #fff;
}

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 6px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.cta-band .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.cta-band .btn-light {
  background: #fff;
  color: var(--terracotta-dark);
}

.cta-band .btn-light:hover {
  background: var(--cream);
}

/* ---------- Info cards (contatti) ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.info-card {
  background: #fff;
  border: 1px solid rgba(38, 57, 44, 0.1);
  border-radius: var(--radius);
  padding: 26px;
}

.info-card h3 {
  font-family: var(--serif);
  color: var(--forest);
  margin: 0 0 12px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-card svg {
  width: 22px;
  height: 22px;
  color: var(--terracotta);
}

.info-card p,
.info-card a {
  color: #4a4f42;
  text-decoration: none;
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.info-card a.link {
  color: var(--terracotta-dark);
  text-decoration: underline;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.hours-table td {
  padding: 6px 0;
  color: #4a4f42;
  border-bottom: 1px solid rgba(38, 57, 44, 0.08);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--forest);
  font-weight: 600;
}

/* ---------- Map placeholder ---------- */

.map-block {
  background: var(--cream-dark);
  border: 1px dashed rgba(38, 57, 44, 0.35);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: #4a4f42;
}

.map-block svg {
  width: 46px;
  height: 46px;
  color: var(--terracotta);
  margin: 0 auto 12px;
}

/* ---------- Page header (subpages) ---------- */

.page-header {
  background: var(--forest);
  color: var(--cream);
  padding: 56px 0 48px;
}

.page-header .eyebrow {
  color: var(--gold);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin: 0 0 12px;
}

.page-header p {
  color: rgba(246, 241, 230, 0.8);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--forest-dark);
  color: rgba(246, 241, 230, 0.85);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .brand-name {
  color: var(--cream);
}

.footer-grid p {
  font-size: 0.92rem;
  color: rgba(246, 241, 230, 0.65);
  max-width: 34ch;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  text-decoration: none;
  color: rgba(246, 241, 230, 0.75);
  font-size: 0.94rem;
}

.footer-grid a:hover {
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(246, 241, 230, 0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(246, 241, 230, 0.5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ---------- 404 ---------- */

.notfound {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.notfound h1 {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--forest);
  margin: 0 0 12px;
}

.notfound p {
  color: #4a4f42;
  margin: 0 0 26px;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .hero .container {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .hero-figure {
    order: -1;
  }

  .hero-figure svg {
    max-width: 240px;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-figure {
    order: -1;
    padding: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 24px 24px;
    border-top: 1px solid rgba(246, 241, 230, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    width: 100%;
    padding: 12px 0;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .trust-strip .container {
    justify-content: flex-start;
  }

  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding: 52px 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}
