:root {
  --verde-scuro: #1e3524;
  --verde: #3d6340;
  --verde-chiaro: #6f8f5a;
  --giallo: #f0e4a6;
  --crema: #fbf7e8;
  --panna: #fffdf6;
  --testo: #26261f;
  --testo-soft: #5c5f52;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--testo);
  background: var(--panna);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* --- tipografia --- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: .01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); margin-bottom: 1.4rem; }
h3 { font-size: 1.35rem; margin-bottom: .5rem; }

p { margin: 0 0 1rem; }

.lead { font-size: 1.1rem; color: var(--testo); }

.muted { color: var(--testo-soft); font-size: .92rem; }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--verde-chiaro);
  margin-bottom: .9rem;
  font-weight: 400;
}
.eyebrow--light { color: var(--giallo); }

/* --- nav --- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 28px;
  background: rgba(251, 247, 232, .93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 53, 36, .1);
  transform: translateY(-100%);
  transition: transform .45s ease;
}
.nav.is-visible { transform: translateY(0); }

.nav__brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .02em;
  color: var(--verde-scuro);
}

.nav__links { display: flex; gap: 26px; }
.nav__links a {
  text-decoration: none;
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--testo-soft);
  transition: color .25s ease;
}
.nav__links a:hover { color: var(--verde); }

/* --- 1. hero --- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--panna);
  text-align: center;
}
.hero__media { position: absolute; inset: -12% 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30,53,36,.5) 0%, rgba(30,53,36,.25) 45%, rgba(30,53,36,.82) 100%);
}
.hero__content { position: relative; z-index: 2; padding: 0 24px; }
.hero__content .eyebrow { color: var(--giallo); }
.hero__sub {
  margin-top: 1.2rem;
  font-size: clamp(.95rem, 1.6vw, 1.12rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 253, 246, .85);
}

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255,253,246,.55);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--giallo);
  animation: scrollDot 1.9s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  55% { transform: translateY(15px); opacity: .2; }
}

/* --- sezioni --- */
.section { padding: clamp(80px, 12vh, 150px) 0; }

.section--chi { background: var(--panna); }

.grid-2 {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.figure { margin: 0; overflow: hidden; }
.figure img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.figure:hover img { transform: scale(1.04); }

.col h2 { margin-bottom: 1.2rem; }
.col p { max-width: 46ch; color: var(--testo-soft); }
.col .lead { color: var(--testo); }

/* banda dei piatti: scorrimento continuo */
.marquee {
  --gap: 18px;
  position: relative;
  margin-top: clamp(48px, 7vh, 88px);
  overflow: hidden;
  /* sfuma ai bordi, cosi le foto entrano ed escono dalla banda */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
  animation: marquee var(--dur, 40s) linear infinite;
}
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-1 * var(--shift, 50%)), 0, 0); }
}

.marquee__item { margin: 0; flex: 0 0 auto; overflow: hidden; }
/* cornice 4:3 uguale per tutte, cosi il banner ha un ritmo regolare */
.marquee__item img {
  height: clamp(220px, 32vh, 330px);
  aspect-ratio: 4 / 3;
  width: auto;
  max-width: none;
  object-fit: cover;
}

/* ritaglio centrato sul piatto, foto per foto */
.pos-5 { object-position: 46% 54%; }
.pos-6 { object-position: 50% 61%; }
.pos-7 { object-position: 52% 40%; }
.pos-8 { object-position: 44% 20%; }
.pos-9 { object-position: 50% 32%; }

.strip__note {
  margin-top: 1.1rem;
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--testo-soft);
}

/* --- 3. cosa facciamo --- */
.section--cosa {
  background: var(--verde-scuro);
  color: var(--panna);
}
.section--cosa h2 { margin-bottom: 3rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 44px);
}
.card {
  background: rgba(255, 253, 246, .05);
  border: 1px solid rgba(240, 228, 166, .18);
  overflow: hidden;
  transition: border-color .4s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.card:hover { border-color: rgba(240, 228, 166, .45); transform: translateY(-6px); }
.card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}
.card__img--cene { object-position: 50% 34%; }
.card__body { padding: 26px 26px 30px; }
.card__body h3 { color: var(--giallo); }
.card__body p { color: rgba(255, 253, 246, .78); margin: 0; }

/* --- 4. contatti --- */
.section--contatti {
  background: var(--crema);
  padding-bottom: 0;
}
.section--contatti h2 { margin-bottom: 3rem; }

.info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 5vw, 60px);
  padding-bottom: clamp(60px, 9vh, 110px);
}
.info__col h3 {
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--verde);
  margin-bottom: 1rem;
}
.info__col p { color: var(--testo-soft); }
.info__col a { text-decoration: none; color: var(--verde-scuro); border-bottom: 1px solid var(--verde-chiaro); }
.info__col a:hover { color: var(--verde); }

.social { display: flex; flex-direction: column; gap: .7rem; align-items: flex-start; }

/* link con icona: l'icona eredita il colore del testo */
.with-icon {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--verde-scuro);
}
.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: currentColor;
}
.with-icon--top { align-items: flex-start; }
.with-icon--top .icon { margin-top: .28rem; }
.info__col .with-icon { border-bottom: none; }
.info__col .with-icon span {
  text-decoration: underline;
  text-decoration-color: var(--verde-chiaro);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.info__col .with-icon:hover { color: var(--verde); }
.info__col .with-icon:hover span { text-decoration-color: var(--verde); }

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 28px 30px;
  border-top: 1px solid rgba(30, 53, 36, .14);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--testo-soft);
}

/* marchio Io sono FVG */
.footer__brand { display: flex; align-items: center; gap: 16px; }
.footer__logo { display: block; line-height: 0; }
.footer__logo img {
  height: 78px;
  width: auto;
  transition: opacity .3s ease;
}
.footer__logo:hover img { opacity: .75; }
.footer__claim {
  max-width: 24ch;
  line-height: 1.5;
  text-wrap: balance; /* evita la riga orfana */
}

.footer__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: right;
}

/* --- animazioni allo scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.cards .reveal:nth-child(2) { transition-delay: .14s; }
.info .reveal:nth-child(2) { transition-delay: .12s; }
.info .reveal:nth-child(3) { transition-delay: .24s; }

/* --- responsive --- */
@media (max-width: 820px) {
  .grid-2, .cards, .info { grid-template-columns: 1fr; }
  .figure img { aspect-ratio: 4 / 3; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: .76rem; }
}
@media (max-width: 520px) {
  .nav__brand { font-size: .95rem; }
  .footer__meta { text-align: left; }
  .card img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* niente scorrimento automatico: la banda diventa scrollabile a mano */
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll span { animation: none; }
  .hero__media img { transform: none !important; }
}
