/* Vacchelli Fiori - foglio di stile
   Mobile first. Un solo colore accento (verde), raggi: bottoni pill, immagini 6px. */

:root {
  --bg: #f6f7f3;
  --surface: #ffffff;
  --tint: #e9eee3;
  --ink: #1c2b21;
  --muted: #5c6a5f;
  --line: #dbe1d6;
  --accent: #2f6b44;
  --accent-dark: #255737;
  --on-accent: #f6f7f3;
  --radius: 6px;
  --gutter: 20px;
  --max: 1120px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

figure { margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.4rem); }
h2 { font-size: clamp(2rem, 6.5vw, 3rem); }
h3 { font-size: 1.45rem; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: 56px 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--ink);
}
.wordmark-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 1;
}
.wordmark-sub {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--accent);
}
.site-nav { display: none; }
.header-call {
  display: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
}
.header-call:hover { color: var(--ink); background: var(--tint); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--tint); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn { flex: 1 1 auto; }

/* Hero */
.hero { padding-top: 36px; padding-bottom: 0; }
.hero-grid { display: grid; gap: 28px; }
.hero-copy p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34ch;
  margin-bottom: 1.4em;
}
.hero-media {
  margin-left: calc(-1 * var(--gutter));
  margin-right: calc(-1 * var(--gutter));
}
.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}

/* Servizi: griglia di tessere */
.services h2 { margin-bottom: 0.8em; }
.tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}
.tile img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 0;
}
.tile-label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 36px 12px 12px;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  background: linear-gradient(to top, rgba(20, 32, 24, 0.82), rgba(20, 32, 24, 0));
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.tile-text {
  grid-column: 1 / -1;
  background: var(--tint);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tile-text h3 { font-size: 1.35rem; margin-bottom: 0.3em; }
.tile-text p { font-size: 0.95rem; color: var(--muted); }

/* Matrimoni */
.weddings { background: var(--surface); }
.section-head p { color: var(--muted); max-width: 60ch; }
.scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px var(--gutter) 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.scroller::-webkit-scrollbar { display: none; }
.scroller figure {
  flex: 0 0 78vw;
  max-width: 420px;
  scroll-snap-align: start;
  scroll-margin-left: var(--gutter);
}
.scroller img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.scroller figcaption {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}
.section-foot {
  margin-top: 20px;
  color: var(--muted);
  max-width: 60ch;
}

/* Lauree: immagine + testo */
.split-grid { display: grid; gap: 24px; }
.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.split-copy p { color: var(--muted); max-width: 52ch; }

/* Piante */
.plants { background: var(--tint); }
.plants-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.plants-grid img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Storia */
.story-grid { display: grid; gap: 24px; }
.story-copy p { color: var(--muted); max-width: 52ch; }
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* Recensioni */
.reviews { background: var(--surface); }
.quotes { display: grid; gap: 28px; margin-top: 8px; }
.quotes blockquote {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
}
.quotes cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Dove siamo */
.shops { display: grid; gap: 20px; margin-top: 8px; }
.shop {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.shop h3 { margin-bottom: 0.1em; }
.shop-city { color: var(--muted); margin-bottom: 14px; }
.hours { margin: 0 0 14px; }
.hours div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 0.95rem;
}
.hours dt { color: var(--muted); }
.hours dd { margin: 0; text-align: right; }
.shop-links { display: flex; gap: 20px; font-weight: 500; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 110px;
  font-size: 0.95rem;
  color: var(--muted);
}
.footer-grid { display: grid; gap: 20px; }
.footer-name { color: var(--ink); font-weight: 600; }
.footer-small { font-size: 0.85rem; }

/* Barra fissa su mobile */
.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar .btn { flex: 1 1 0; min-height: 48px; }
.sticky-bar .btn-secondary { background: var(--surface); }

/* Comparsa al scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-bar { transition: none; }
  .btn { transition: none; }
}

/* Tablet */
@media (min-width: 700px) {
  section { padding: 80px 0; }
  .hero { padding-top: 56px; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
  .hero-media { margin: 0; }
  .hero-media img { border-radius: var(--radius); }
  .cta-row .btn { flex: 0 0 auto; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .tile-text { grid-column: auto; min-height: 200px; }
  .header-call { display: inline-block; }
  .scroller figure { flex-basis: 360px; }
  .split-grid { grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; }
  .story-grid { grid-template-columns: 6fr 5fr; gap: 48px; align-items: center; }
  .quotes { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .shops { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 48px; }
  .sticky-bar { display: none; }
}

/* Desktop */
@media (min-width: 1000px) {
  :root { --gutter: 32px; }
  body { font-size: 17px; }
  .header-inner { height: 68px; }
  .site-nav { display: flex; gap: 28px; }
  .site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
  }
  .site-nav a:hover { color: var(--accent); }
  .hero { padding-top: 72px; padding-bottom: 24px; }
  .hero-grid { grid-template-columns: 11fr 9fr; gap: 72px; }
  .hero-copy p { font-size: 1.2rem; }
  .tiles { gap: 16px; }
  .tile-text { padding: 24px; }
  .scroller { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
  .scroller figure { flex-basis: 400px; }
}
