/* ==========================================================
   Colori e misure – cambia qui per modificare tutto il sito
   ========================================================== */
:root {
  --green:        #2E7352;
  --green-dark:   #1F5239;
  --green-soft:   #E8F1EB;
  --orange:       #F08C3C;
  --orange-dark:  #D2702A;
  --orange-soft:  #FDF1E6;

  --bg:           #FBF8F3;
  --surface:      #FFFFFF;
  --text:         #1E2421;
  --text-muted:   #5D6862;
  --border:       #E4E2DC;

  --radius:       16px;
  --shadow:       0 6px 24px rgba(30, 36, 33, .08);
  --header-h:     68px;
}

/* Modalità scura automatica */
@media (prefers-color-scheme: dark) {
  :root {
    --green:       #6FB58F;
    --green-dark:  #8FCCA9;
    --green-soft:  #1B2A22;
    --orange:      #F09A55;
    --orange-dark: #F5B07A;
    --orange-soft: #2A2119;

    --bg:          #121614;
    --surface:     #1A201D;
    --text:        #E9EEEB;
    --text-muted:  #A3AFA8;
    --border:      #2A322E;
    --shadow:      0 6px 24px rgba(0, 0, 0, .35);
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.accent { color: var(--orange); }

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-bottom-color: var(--border); }

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  text-decoration: none;
  color: var(--green);
}
.logo span { color: var(--orange); }

.nav { display: flex; align-items: center; gap: 24px; }
.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s;
}
.nav a:hover, .nav a.is-active { color: var(--green); }

.nav a.nav__cta {
  color: #fff;
  background: var(--green);
  padding: 8px 18px;
  border-radius: 999px;
}
.nav a.nav__cta:hover { background: var(--green-dark); color: #fff; }

/* Selettore lingua */
.lang {
  display: flex;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}
.nav .lang a {
  font-size: .85rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}
.nav .lang a.is-current { color: var(--orange); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.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); }

/* ===== Pulsanti ===== */
.btn {
  display: inline-block;
  font: inherit;
  cursor: pointer;
  background: none;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }

.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); }

.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-dark); }

.btn--lg { font-size: 1.15rem; padding: 16px 34px; }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 60px;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--green);
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 34ch;
  margin: 0 0 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__photo { display: flex; justify-content: center; }

.avatar,
.hero__photo img {
  width: min(340px, 75vw);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 18px 18px 0 var(--orange), var(--shadow);
}
.avatar {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  font-size: 5rem;
  font-weight: 800;
  letter-spacing: -.04em;
}

/* ===== Sezioni ===== */
.section { padding: 96px 0; }
.section--tinted { background: var(--green-soft); }

.section__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 40px;
}
.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 14px;
  border-radius: 2px;
  background: var(--orange);
}

/* Chi sono */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
}
.about__body p { margin: 0 0 1.2em; color: var(--text-muted); }
.about__body p:first-child { font-size: 1.2rem; color: var(--text); }

/* Percorso (timeline) */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 3px solid var(--green);
  max-width: 720px;
}
.timeline__item { position: relative; padding-bottom: 40px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 6px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--green-soft);
}
.timeline__tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--orange-dark);
  margin-bottom: 6px;
}
.timeline h3 { font-size: 1.35rem; margin-bottom: 4px; }
.timeline h3 a { text-decoration-color: var(--orange); text-underline-offset: 4px; }
.timeline__role { margin: 0 0 10px; font-weight: 600; color: var(--green); }
.timeline__item p:last-child { margin: 0; color: var(--text-muted); }

/* Card passioni */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); border-top-color: var(--orange); }
.card__icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { font-size: 1.2rem; }
.card p { margin: 0; color: var(--text-muted); font-size: .98rem; }

/* Progetto vino */
.section--warm { background: var(--orange-soft); }
.wine {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
}
.wine__text p { color: var(--text-muted); font-size: 1.1rem; margin: 0 0 1em; }
.wine__text strong { color: var(--text); }
.wine__labels {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.wine__label {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s;
}
.wine__label:hover { transform: translateY(-8px) rotate(-1.5deg); }
.wine__label img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.wine__label--dark { background: #000; }

/* Foto d'atmosfera sotto le etichette */
.wine__mood {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.wine__mood button {
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--border);
}
.wine__mood img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .5s;
}
.wine__mood button:hover img { transform: scale(1.06); }

/* Galleria */
.section__intro { margin: -24px 0 32px; color: var(--text-muted); }

/* Mosaico a colonne: ogni foto mantiene le sue proporzioni */
.gallery {
  column-count: 3;
  column-gap: 14px;
}
.gallery__item[hidden] { display: none; }

.gallery__more { text-align: center; margin-top: 32px; }
.gallery__item {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--border);
}
.gallery__item img {
  width: 100%;
  height: auto;
  transition: transform .5s;
}
.gallery__item:hover img { transform: scale(1.06); }

/* Contatti */
.section--green {
  background: var(--green);
  color: #fff;
  text-align: center;
}
@media (prefers-color-scheme: dark) {
  .section--green { background: var(--green-soft); }
}
.contact .section__title::after { margin-left: auto; margin-right: auto; }
.contact__lead { font-size: 1.2rem; opacity: .85; margin: -16px 0 32px; }

.socials {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}
.socials a {
  color: #fff;
  opacity: .8;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: opacity .2s, border-color .2s;
}
.socials a:hover { opacity: 1; border-bottom-color: var(--orange); }

/* Footer */
.footer {
  padding: 28px 0;
  text-align: center;
  font-size: .9rem;
  color: var(--text-muted);
}

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 12, .92);
  padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(1000px, 100%);
  max-height: 85vh;
  border-radius: 10px;
}
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  padding: 10px 16px;
}
.lightbox button:hover { opacity: 1; color: var(--orange); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }

/* ===== Animazione di comparsa ===== */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity .7s ease, translate .7s ease, transform .3s ease;
}
.reveal.is-visible { opacity: 1; translate: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; translate: none; transition: none; }
}

/* ===== Tablet e telefono ===== */
@media (max-width: 960px) {
  .nav-toggle { display: block; }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 12px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform .35s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; width: 100%; font-size: 1.05rem; }
  .nav a.nav__cta { text-align: center; margin-top: 8px; }
  .lang { border-left: 0; padding: 16px 0 0; justify-content: center; gap: 12px; }
  .nav .lang a { width: auto; padding: 6px 14px; font-size: .95rem; }

  .wine { grid-template-columns: 1fr; gap: 36px; }
  .wine__mood { grid-template-columns: repeat(2, 1fr); }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__photo { order: -1; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .avatar, .hero__photo img { width: min(220px, 60vw); box-shadow: 10px 10px 0 var(--orange), var(--shadow); }
  .avatar { font-size: 3.4rem; }

  .about { grid-template-columns: 1fr; gap: 0; }

  .section { padding: 72px 0; }

  .gallery { column-count: 2; column-gap: 10px; }
  .gallery__item { margin-bottom: 10px; }
}
