/* ═══════════════════════════════════════════════════════════════
   SIMBYOS — home.css
   Stili specifici di index.html
   Dipende da: simbyos.css (caricato prima)
═══════════════════════════════════════════════════════════════ */

/* ─── Extra variables (home-specific) ───────────────────────── */
:root {
  --ease: cubic-bezier(.22,1,.36,1);
}

body {
  line-height: 1.6;
}

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  height: 100svh;
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8vw 5vw 8vw 7vw;
  position: relative;
}

.hero-text::before {
  content: '"';
  position: absolute;
  top: 6vw; left: 5vw;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14rem;
  line-height: 1;
  color: var(--honey-pale);
  opacity: .4;
  pointer-events: none;
  z-index: 0;
}

.hero-text > * { position: relative; z-index: 1; }

.hero-label {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 2rem;
  animation: fadeUp .8s .1s both;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--bark);
  margin-bottom: 1.8rem;
  animation: fadeUp .8s .2s both;
}

.hero-h1 em {
  font-style: italic;
  color: var(--honey);
}

.hero-body {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  color: var(--text-soft);
  max-width: 380px;
  margin-bottom: 2.8rem;
  line-height: 1.9;
  animation: fadeUp .8s .3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  animation: fadeUp .8s .4s both;
}

.hero-image {
  position: relative;
  overflow: hidden;
  background: var(--cream-warm);
  min-height: 0;
}

.hero-image-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, #F0E8D0 0%, #E8D8B0 50%, #D8C890 100%);
  color: var(--bark-mid);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  opacity: .7;
  text-align: center;
  padding: 2rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 7vw;
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--stone-lt);
  animation: fadeUp .8s .7s both;
}

.hero-scroll-hint::before {
  content: '';
  width: 1px; height: 40px;
  background: var(--stone-lt);
  animation: scrollLine 2s 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: .3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.6); transform-origin: top; }
}

/* ─── INTRO QUOTE ────────────────────────────────────────────── */
.intro-quote {
  padding: 7rem 10vw;
  background: var(--bark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.intro-quote::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(184,118,10,.15), transparent);
  pointer-events: none;
}

.intro-quote blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  line-height: 1.4;
  max-width: 780px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 1;
}

.intro-quote blockquote em { color: var(--honey-lt); font-style: normal; }

.intro-quote cite {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--stone-lt);
  font-style: normal;
  position: relative; z-index: 1;
}

/* ─── PRODOTTO HERO ──────────────────────────────────────────── */
.prodotto {
  padding: 8rem 7vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  align-items: center;
}

.prodotto-img-wrap {
  aspect-ratio: 4/5;
  background: var(--cream-warm);
  overflow: hidden;
  position: relative;
}

.prodotto-slideshow,
.prodotto-slides {
  position: absolute;
  inset: 0;
}

.prodotto-slideshow {
  touch-action: pan-y;
  user-select: none;
}

.prodotto-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity .9s var(--ease), transform 1.2s var(--ease);
}

.prodotto-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.prodotto-slider-ui {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  pointer-events: none;
}

.prodotto-slider-count {
  padding: .55rem .75rem;
  background: rgba(250,250,245,.9);
  color: var(--bark-mid);
  font-size: .62rem;
  letter-spacing: .14em;
  backdrop-filter: blur(8px);
}

.prodotto-slider-count strong {
  color: var(--honey);
  font-weight: 600;
}

.prodotto-slider-arrows {
  display: flex;
  gap: 1px;
  pointer-events: auto;
}

.prodotto-slider-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(250,250,245,.92);
  color: var(--bark);
  font: 400 1rem/1 'Jost', sans-serif;
  cursor: pointer;
  transition: color .25s ease, background .25s ease;
}

.prodotto-slider-btn:hover,
.prodotto-slider-btn:focus-visible {
  background: var(--honey);
  color: #fff;
  outline: none;
}

.prodotto-img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1rem;
  background: linear-gradient(160deg, #EDE0C4, #D8C890);
  color: var(--bark-mid);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  opacity: .6;
  text-align: center; padding: 2rem;
}

.prodotto-img-wrap::before {
  content: '';
  position: absolute;
  inset: -12px -12px 12px 12px;
  border: 1px solid rgba(184,118,10,.25);
  z-index: -1;
}

.prodotto-badge {
  position: absolute;
  z-index: 3;
  top: 1rem; right: 1rem;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--honey);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3;
  animation: rotate 20s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .prodotto-slide { transition: none; }
}

.prodotto-badge strong {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  display: block;
}

.prodotto-tag {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.5rem;
}

.prodotto-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--bark);
  margin-bottom: 1.5rem;
}

.prodotto-h2 em { font-style: italic; color: var(--honey); }

.prodotto-desc {
  font-size: .97rem;
  color: var(--text-soft);
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

.prodotto-feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  margin-bottom: 2.8rem;
  border-top: 1px solid rgba(184,118,10,.15);
  padding-top: 1.8rem;
}

.feat-label {
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone-lt);
  margin-bottom: .3rem;
}

.feat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--bark);
}

.prodotto-cta {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* ─── VALORI ─────────────────────────────────────────────────── */
.valori {
  padding: 7rem 7vw;
  background: var(--cream-warm);
  position: relative;
  overflow: hidden;
}

.valori::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(184,118,10,.06), transparent 70%);
  pointer-events: none;
}

.valori-header {
  text-align: center;
  margin-bottom: 5rem;
}

.valori-header .u-label { margin-bottom: 1rem; display: block; }

.valori-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--bark);
  line-height: 1.2;
}

.valori-header h2 em { font-style: italic; color: var(--honey); }

.valori-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.valore-card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--cream);
  border-top: 2px solid transparent;
  transition: border-color .3s, transform .3s;
}

.valore-card:hover {
  border-top-color: var(--honey);
  transform: translateY(-4px);
}

.valore-icon {
  width: 48px; height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--honey);
}

.valore-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bark);
  margin-bottom: .8rem;
}

.valore-text {
  font-size: .85rem;
  color: var(--text-soft);
  line-height: 1.8;
}

/* ─── TERRITORIO ─────────────────────────────────────────────── */
.territorio {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.territorio-image {
  background: linear-gradient(160deg, #4A5E3A 0%, #2E3D24 100%);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.territorio-image-placeholder {
  color: rgba(255,255,255,.3);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  text-align: center;
  padding: 2rem;
}

.territorio-image::before {
  content: '';
  position: absolute; inset: 0;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpolygon points='30,2 58,17 58,47 30,50 2,47 2,17' fill='none' stroke='white' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px;
}

.territorio-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 7rem 6vw;
  background: var(--bark);
  color: var(--cream);
}

.territorio-content .u-label { color: var(--honey-lt); margin-bottom: 1rem; }

.territorio-h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 300;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.territorio-h2 em { font-style: italic; color: var(--honey-lt); }

.territorio-text {
  font-size: .95rem;
  color: rgba(250,250,245,.65);
  line-height: 1.95;
  margin-bottom: 3rem;
}

.territorio-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 2.5rem;
}

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--honey-lt);
  line-height: 1;
  margin-bottom: .4rem;
}

.stat-label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,250,245,.4);
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq {
  padding: 7rem 7vw;
  max-width: 900px;
  margin: 0 auto;
}

.faq-header { margin-bottom: 4rem; }
.faq-header .u-label { margin-bottom: 1rem; display: block; }

.faq-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--bark);
  line-height: 1.2;
}

.faq-item {
  border-top: 1px solid rgba(184,118,10,.2);
  padding: 1.8rem 0;
}

.faq-item:last-child { border-bottom: 1px solid rgba(184,118,10,.2); }

.faq-q {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--bark);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem;
  user-select: none;
}

.faq-q::after {
  content: '+';
  font-family: 'Jost', sans-serif;
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--honey);
  flex-shrink: 0;
  transition: transform .3s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  font-size: .93rem;
  color: var(--text-soft);
  line-height: 1.9;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
}

.faq-item.open .faq-a { max-height: 400px; padding-top: 1.2rem; }

/* ─── PREMI ──────────────────────────────────────────────────── */
.premi {
  background: var(--cream-warm);
  padding: 5rem 7vw;
  text-align: center;
}

.premi .u-label { margin-bottom: 3rem; display: block; }

.premi-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.premio-item {
  display: flex; flex-direction: column;
  align-items: center; gap: .8rem;
}

.premio-icon {
  width: 56px; height: 56px;
  border: 1px solid rgba(184,118,10,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--honey);
  font-size: 1.4rem;
}

.premio-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--bark);
}

.premio-year {
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--stone-lt);
}

/* ─── RICETTE ────────────────────────────────────────────────── */
.ricette {
  padding: 8rem 7vw;
}

.ricette-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
}

.ricette-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--bark);
}

.ricette-header h2 em { font-style: italic; color: var(--honey); }

.ricette-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.ricetta-img {
  aspect-ratio: 4/3;
  background: var(--cream-warm);
  overflow: hidden;
  margin-bottom: 1.2rem;
  position: relative;
}

.ricetta-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: .9rem;
  color: var(--stone);
  opacity: .6;
  padding: 1rem;
  text-align: center;
}

.ricetta-img::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(30,20,8,0);
  transition: background .3s;
}

.ricetta-card:hover .ricetta-img::after { background: rgba(30,20,8,.1); }

.ricetta-tag { margin-bottom: .5rem; }

.ricetta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--bark);
  line-height: 1.25;
  margin-bottom: .4rem;
  transition: color .2s;
}

.ricetta-card:hover .ricetta-title { color: var(--honey); }

.ricetta-time {
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone-lt);
}

/* ─── CTA FINALE ─────────────────────────────────────────────── */
.contact {
  padding: 8rem 7vw;
  background: var(--bark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 70% at 30% 50%, rgba(184,118,10,.12), transparent),
    radial-gradient(ellipse 40% 60% at 70% 50%, rgba(58,78,44,.15), transparent);
  pointer-events: none;
}

.contact::after {
  content: '';
  position: absolute;
  right: -80px; bottom: -80px;
  width: 400px; height: 400px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpolygon points='100,10 190,55 190,145 100,190 10,145 10,55' fill='none' stroke='rgba(184,118,10,0.15)' stroke-width='1'/%3E%3Cpolygon points='100,30 170,67.5 170,132.5 100,170 30,132.5 30,67.5' fill='none' stroke='rgba(184,118,10,0.10)' stroke-width='1'/%3E%3C/svg%3E") no-repeat center;
  pointer-events: none;
}

.contact-inner {
  position: relative; z-index: 1;
  max-width: 620px; margin: 0 auto;
}

.contact .u-label { color: var(--honey-lt); margin-bottom: 1.5rem; display: block; }

.contact h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.contact h2 em { font-style: italic; color: var(--honey-lt); }

.contact p {
  font-size: .97rem;
  color: rgba(250,250,245,.55);
  line-height: 1.9;
  margin-bottom: 3rem;
}

.contact-actions {
  display: flex; gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .valori-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; height: auto; min-height: auto; }
  .hero-text { padding: 4rem 6vw 3rem; }
  .hero-text::before { font-size: 8rem; }
  .hero-image { aspect-ratio: 4/3; }
  .hero-scroll-hint { display: none; }
  .prodotto { grid-template-columns: 1fr; gap: 3rem; padding: 5rem 6vw; }
  .prodotto-badge { right: 1rem; }
  .territorio { grid-template-columns: 1fr; }
  .territorio-image { aspect-ratio: 16/9; }
  .territorio-content { padding: 4rem 6vw; }
  .ricette-grid { grid-template-columns: 1fr; }
  .ricette-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .valori-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
