/* ==========================================================================
   FERMENTO — Page-Specific Styles
   Hero, Wine Cans, Category pages, About, Contact, etc.
   ========================================================================== */

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* --- HERO SPLIT (warm cinematic restyling B+C) ---
   Layout grid 1.2fr 1fr: text sx + bottle dx. Compact, no full-bleed centered. */
.hero--split {
  min-height: 620px;
  display: block;
  padding-top: 56px; /* navbar height clearance */
}

.hero--split .hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 640px;
  padding: var(--space-16) 4% var(--space-16) 8%;
  gap: var(--space-8);
}

.hero--split .hero__content {
  position: relative;
  z-index: 3;
  text-align: left;
  max-width: 600px;
  padding: 0;
  margin: 0;
  animation: none;
  align-self: center;     /* explicit vertical center within grid cell */
}

.hero--split .hero__bottle-wrap {
  position: relative;
  inset: auto;
  height: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: visible;
  align-self: center;     /* explicit vertical center */
}

.hero--split .hero__bottle {
  height: auto;
  width: 100%;
  max-width: 506px;       /* +10% (era 460) */
  max-height: 594px;      /* +10% (era 540) */
  /* Lift bottle up so its visual center aligns with the hero title's center */
  transform: translateY(-15%);
  position: relative;
  z-index: 1;
}

@media (min-width: 1280px) {
  .hero--split .hero__bottle {
    max-width: 572px;     /* +10% (era 520) */
    max-height: 660px;    /* +10% (era 600) */
    transform: translateY(-12%);
  }
}

/* Title leggermente più compatto per allineare meglio con bottiglia diagonale */
.hero--split .hero__title {
  font-size: clamp(3.5rem, 7vw, 5.75rem);  /* 56-92px responsive (era 80-112) */
  line-height: 0.92;
}

/* Eyebrow chiusura più vicina al title */
.hero--split .hero__eyebrow {
  margin-bottom: var(--space-4);          /* era space-6 */
}

/* Subtitle left-aligned col title (rimuove margin auto della regola base) */
.hero--split .hero__subtitle {
  margin-left: 0;
  margin-right: 0;
}

/* Actions left-aligned col title */
.hero--split .hero__actions {
  justify-content: flex-start;   /* main axis (row) - era center */
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .hero--split .hero__grid {
    grid-template-columns: 1fr;
    padding: var(--space-16) var(--space-6) var(--space-8);
    text-align: center;
  }
  .hero--split .hero__content {
    text-align: center;
    margin: 0 auto;
  }
  .hero--split .hero__bottle-wrap {
    min-height: 360px;
    opacity: 0.45;
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .hero--split .hero__bottle {
    max-width: 70%;
    transform: translateX(15%);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  /* Warm cinematic gradient bordeaux (B+C direction) */
  background: var(--gradient-hero-cinematic);
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, transparent 0%, var(--color-overlay-medium) 60%, var(--color-overlay-strong) 100%),
    linear-gradient(to bottom, transparent 0%, var(--color-overlay-light) 100%);
  z-index: 1;
  pointer-events: none;
}

/* --- Hero Bottle (photoreal render, diagonal, right-side dominant) ---
   Warm cinematic: bordeaux pieno con leggero glow oro sulla bottiglia */
.hero--bottle .hero__bg {
  background:
    radial-gradient(ellipse at 75% 50%, rgba(var(--color-gold-warm-rgb), 0.18) 0%, transparent 55%),
    var(--gradient-hero-cinematic);
}

.hero__bottle-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  overflow: hidden;
}

.hero__bottle-glow {
  position: absolute;
  top: 50%;
  right: 8%;
  width: 55vmin;
  height: 55vmin;
  transform: translate(30%, -50%);
  /* Warm cinematic: glow in oro caldo per accenti artigianali */
  background: radial-gradient(circle, rgba(var(--color-gold-warm-rgb), 0.35) 0%, rgba(var(--color-primary-rgb), 0.18) 35%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
  will-change: transform, opacity;
}

.hero__bottle {
  position: relative;
  z-index: 1;
  width: auto;
  height: 82vh;
  max-height: 740px;
  max-width: 54%;
  object-fit: contain;
  transform-origin: center center;
  /* Pushes bottle off the right edge — creates dramatic framing where content
     has more breathing room on the left without bottle overlap on CTAs. */
  transform: translateX(28%);
  will-change: transform;
  filter: var(--drop-shadow-brand-heavy);
}

@media (min-width: 1280px) {
  .hero__bottle {
    transform: translateX(24%);
    max-width: 50%;
  }
}

/* Mobile: smaller bottle centered behind content, lower opacity */
@media (max-width: 768px) {
  .hero__bottle-wrap {
    justify-content: center;
    opacity: 0.3;
  }
  .hero__bottle {
    height: 75vh;
    max-width: 95%;
    transform: translateX(0);
  }
  .hero__bottle-glow {
    right: 50%;
    transform: translate(50%, -50%);
  }
}

/* --- Bubbles Animation --- */
.hero__bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--color-inverse-alpha-35), var(--color-inverse-alpha-08));
  border: 1px solid var(--color-inverse-alpha-15);
  box-shadow: 0 0 6px var(--color-inverse-alpha-08);
  animation: bubbleRise linear infinite;
  will-change: transform, opacity;
}

.bubble::after {
  content: '';
  position: absolute;
  top: 18%;
  left: 22%;
  width: 35%;
  height: 35%;
  border-radius: 50%;
  background: var(--color-inverse-alpha-35);
  filter: blur(1px);
}

@keyframes bubbleRise {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0;
  }
  5% {
    opacity: 1;
  }
  50% {
    transform: translateY(-50vh) translateX(var(--drift, 20px)) scale(1.05);
    opacity: 0.8;
  }
  85% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-110vh) translateX(var(--drift-end, -15px)) scale(0.9);
    opacity: 0;
  }
}

/* Bubble size + timing variants */
.bubble--xs { width: 6px; height: 6px; }
.bubble--sm { width: 10px; height: 10px; }
.bubble--md { width: 16px; height: 16px; }
.bubble--lg { width: 24px; height: 24px; }
.bubble--xl { width: 32px; height: 32px; }

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-24) var(--space-4) var(--space-16);
  max-width: 800px;
  margin: 0 auto;
  animation: heroFadeIn 1.2s ease-out;
}

/* Hero variant: bottle on right → content left-aligned on desktop */
@media (min-width: 1024px) {
  .hero--bottle .hero__content {
    margin: 0;
    margin-left: 8%;
    text-align: left;
    max-width: 560px;
  }
  .hero--bottle .hero__actions,
  .hero--bottle .hero__badges {
    justify-content: flex-start;
  }
}

/* ----- Motion.dev takeover: disable CSS keyframes, let JS set initial states
         via inline styles on DOMContentLoaded (avoids CSS/JS transform conflicts).
         If JS fails, CSS keyframes above still play as fallback. ----- */
.js-motion .hero__content,
.js-motion .hero__title,
.js-motion .hero__subtitle,
.js-motion .hero__actions,
.js-motion .hero__badges {
  animation: none;
}
.js-motion .hero__title-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: baseline;
  line-height: inherit;
  padding-bottom: 0.1em; /* guard against descender clipping */
}
.js-motion .hero__title-word-inner {
  display: inline-block;
  will-change: transform, opacity;
}
.js-motion .hero__subtitle,
.js-motion .hero__actions > *,
.js-motion .hero__badges > * {
  will-change: transform, opacity;
}
.js-motion .hero__bg {
  will-change: transform;
  transform-origin: center;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Eyebrow sopra il titolo hero (warm cinematic restyling) */
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.4em;
  color: var(--color-gold-warm);
  margin-bottom: var(--space-6);
  text-transform: uppercase;
  font-weight: var(--fw-medium);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--text-7xl);
  font-weight: var(--fw-bold);
  color: var(--color-cream);
  margin-bottom: var(--space-6);
  letter-spacing: -0.01em;
  line-height: 0.88;
  text-transform: uppercase;
  animation: titleReveal 1s ease-out 0.2s both;
}

/* Accent oro warm sull'ultima parola del titolo (es. "Firm.") */
.hero__title-accent {
  color: var(--color-gold-warm);
}

@keyframes titleReveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes subtitleReveal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes actionsReveal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes badgesReveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 5.5rem;   /* 88px */
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 7rem;     /* 112px */
  }
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-cream-alpha-90);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-8);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-weight: var(--fw-regular);
  animation: subtitleReveal 1s ease-out 0.5s both;
}

@media (min-width: 768px) {
  .hero__subtitle {
    font-size: var(--text-xl);
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
  animation: actionsReveal 0.8s ease-out 0.8s both;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    justify-content: center;
  }
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  animation: badgesReveal 0.8s ease-out 1.1s both;
}

/* --- Page Hero (smaller, for subpages) — warm cinematic restyling
   Bordeaux gradient + eyebrow oro + Impact title gigante */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  text-align: center;
  overflow: hidden;
  background: var(--gradient-hero-cinematic);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.15;       /* attenua eventuali immagini di sfondo per non distrarre */
  mix-blend-mode: multiply;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(var(--color-gold-warm-rgb), 0.18) 0%, transparent 60%),
    linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 6vw, 5rem);  /* 44-80px responsive */
  color: var(--color-cream);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-cream-alpha-85);
  max-width: 600px;
  margin: 0 auto;
  line-height: var(--lh-normal);
}

/* ==========================================================================
   FIRMS CATEGORY PAGES
   ========================================================================== */

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-8);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  height: 100%;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--color-border);
}

.product-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 60%);
  pointer-events: none;
}

.product-card__body {
  flex: 1;
  padding: var(--space-5) var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  letter-spacing: -0.01em;
}

.product-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  flex: 1;
}

.product-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}

.product-card__abv {
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  font-size: var(--text-base);
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

/* Pricing Block */
.pricing-block {
  text-align: center;
  padding: var(--space-12) var(--space-6);
  background: linear-gradient(135deg, var(--color-bg-warm), var(--color-bg));
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-border-light);
}

.pricing-block__price {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.pricing-block__note {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
}

/* Timeline (vertical) — Elegant Step Cards */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border-light);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__dot {
  display: none;
}

.timeline__step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-cream);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline__item:last-child .timeline__step-number {
  border-color: var(--color-gold-warm);
  background: var(--color-gold-warm);
  color: var(--color-primary-darker);
}

.timeline__step-content {
  background: var(--color-cream);
  border: 1px solid var(--color-ink-alpha-12);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.timeline__step-content:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-ink-alpha-25);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
  color: var(--color-ink);
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.timeline__text {
  font-size: var(--text-base);
  color: var(--color-ink-medium);
  line-height: var(--lh-relaxed);
}

.timeline__duration {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--color-primary);
  padding: 3px 10px;
  margin-top: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background-color: rgba(107, 33, 63, 0.06);
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   WINE CANS — Comparator
   ========================================================================== */

.comparator {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .comparator {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.comparator__column {
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
}

.comparator__column--bottle {
  background-color: var(--color-bg-warm);
  border: 2px solid var(--color-border);
}

.comparator__column--can {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-text-inverse);
  border: 2px solid var(--color-primary);
}

.comparator__icon {
  font-size: 64px;
  margin-bottom: var(--space-4);
}

.comparator__title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-6);
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-8) 0;
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-3);
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
}

.comparison-table th {
  font-weight: var(--fw-bold);
  font-size: var(--text-base);
  padding-bottom: var(--space-4);
  border-bottom: 2px solid var(--color-border);
}

.comparison-table td:first-child {
  text-align: left;
  font-weight: var(--fw-medium);
}

.comparison-table .highlight {
  color: var(--color-success);
  font-weight: var(--fw-bold);
}

.comparison-table .negative {
  color: var(--color-error);
}

/* Savings Calculator */
.calculator {
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
}

.calculator__slider {
  width: 100%;
  margin: var(--space-6) 0;
  accent-color: var(--color-primary);
  height: 8px;
}

.calculator__result {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin: var(--space-4) 0;
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--color-border-light);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) 0;
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--color-text);
  gap: var(--space-4);
}

.accordion__trigger:hover {
  color: var(--color-primary);
}

.accordion__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
  font-size: var(--text-xl);
  color: var(--color-primary);
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.accordion__content-inner {
  padding-bottom: var(--space-6);
  font-size: var(--text-base);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */

/* Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-tab {
  padding: var(--space-2) var(--space-5);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-ink-alpha-25);
  background: var(--color-cream);
  color: var(--color-ink);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover,
.filter-tab.is-active {
  background-color: var(--color-primary);
  color: var(--color-cream);
  border-color: var(--color-primary);
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-card__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card__bg {
  transform: scale(1.08);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__cta {
  color: var(--color-text-inverse);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--color-text-inverse);
  border-radius: var(--radius-md);
}

.portfolio-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 2;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: var(--color-text-inverse);
}

.portfolio-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--color-cream);
}

.portfolio-card__type {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--color-gold-warm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: var(--space-1);
}

/* ==========================================================================
   ABOUT / CHI SIAMO
   ========================================================================== */

.team-card {
  text-align: center;
  padding: var(--space-6);
}

.team-card__photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  background: linear-gradient(135deg, var(--color-bg-warm), var(--color-border-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.team-card__name {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-1);
}

.team-card__role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: var(--fw-medium);
}

/* Value Cards */
.value-card {
  text-align: center;
  padding: var(--space-8) var(--space-6);
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  height: 100%;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.value-card__icon {
  font-size: 48px;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}

/* ==========================================================================
   CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background-color: var(--color-bg-warm);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-info__label {
  font-size: var(--text-sm);
  color: var(--color-text-light);
}

.contact-info__value {
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
}

/* Map placeholder */
.map-placeholder {
  width: 100%;
  height: 250px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-bg-warm), var(--color-border-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  color: var(--color-text-light);
}

/* ==========================================================================
   HERO EDITORIALE «carta e bottiglia» — v2 (ref. Berlucchi/Fasoli)
   Pannello crema luminoso, bottiglia inclinata al centro, botaniche
   line-art, 4 note serif con asterisco disposte in asimmetria.
   ========================================================================== */

.hero-ed {
  position: relative;
  min-height: 100svh;
  padding: calc(56px + var(--space-12)) var(--space-6) var(--space-10);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% -5%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    var(--color-cream);
}

/* grana carta sottile */
.hero-ed::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* --- Botaniche line-art dietro la bottiglia --- */
.hero-ed__botanicals {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(760px, 88vw);
  height: auto;
  transform: translate(-54%, -50%);
  color: rgba(106, 110, 78, 0.55); /* verde oliva tenue */
  opacity: 0.34;
  z-index: 1;
  will-change: transform;
}

/* --- Eyebrow + wordmark centrali --- */
.hero-ed__top {
  position: relative;
  z-index: 4;
  text-align: center;
  margin-bottom: var(--space-4);
}

.hero-ed__kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-ink-medium);
  margin-bottom: var(--space-3);
}

.hero-ed__wordmark {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: 0.01em;
  color: var(--color-ink);
  line-height: 1.1;
  text-transform: none; /* override dell'uppercase globale sui heading */
}

.hero-ed__wordmark em {
  font-style: italic;
  color: var(--color-bordeaux, #6B213F);
}

/* --- Bottiglia centrale inclinata --- */
.hero-ed__bottle-wrap {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 380px;
  pointer-events: none;
}

.hero-ed__bottle {
  /* Trio vino+birra+gin in piedi (reference docx 17-07): niente rotazione */
  height: clamp(380px, 54vh, 520px);
  width: auto;
  filter: drop-shadow(0 26px 28px rgba(45, 32, 24, 0.22));
  will-change: transform;
}

.hero-ed__bottle-shadow {
  position: absolute;
  bottom: 6%;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 58vw);
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(45, 32, 24, 0.22) 0%, transparent 70%);
  filter: blur(6px);
}

/* --- Note asimmetriche --- */
.hero-ed__notes {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hero-ed__note {
  position: absolute;
  max-width: 200px;
  pointer-events: auto;
}

.hero-ed__note--1 { left: 6%;  top: 30%; width: 170px; }
.hero-ed__note--2 { left: 22%; top: 30%; width: 190px; }
.hero-ed__note--3 { left: 67%; top: 56%; width: 185px; }
.hero-ed__note--4 { left: 83%; top: 56%; width: 195px; }

.hero-ed__note-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-ink);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
  text-transform: none; /* Title Case come la reference, non uppercase */
}

.hero-ed__note-title span {
  color: var(--color-gold-warm-dark);
  margin-right: 2px;
}

.hero-ed__note-text {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--color-ink-medium);
}

/* --- Claim + CTA testuali in basso --- */
.hero-ed__foot {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  margin-top: var(--space-6);
}

.hero-ed__cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-bordeaux, #6B213F);
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 5px;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.hero-ed__cta span {
  display: inline-block;
  transition: transform var(--transition-fast);
  margin-left: 4px;
}

.hero-ed__cta:hover span { transform: translateX(5px); }
.hero-ed__cta:hover { opacity: 0.75; }

.hero-ed__cta--ghost {
  color: var(--color-ink-medium);
  border-bottom-color: rgba(45, 32, 24, 0.25);
}

/* --- Entrance: SOLO CSS (nessuna dipendenza dal JS: la hero appare sempre) --- */
@keyframes heroEdRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroEdBottle {
  from { opacity: 0; transform: translateY(26px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroEdFade {
  from { opacity: 0; }
  to   { opacity: 0.34; }
}

.hero-ed__kicker,
.hero-ed__wordmark,
.hero-ed__note,
.hero-ed__foot {
  animation: heroEdRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-ed__bottle    { animation: heroEdBottle 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.hero-ed__botanicals { animation: heroEdFade 1.6s ease 0.15s both; }

/* stagger */
.hero-ed__wordmark { animation-delay: 0.12s; }
.hero-ed__note--1  { animation-delay: 0.55s; }
.hero-ed__note--2  { animation-delay: 0.68s; }
.hero-ed__note--3  { animation-delay: 0.81s; }
.hero-ed__note--4  { animation-delay: 0.94s; }
.hero-ed__foot     { animation-delay: 1.1s; }

@media (prefers-reduced-motion: reduce) {
  .hero-ed__kicker, .hero-ed__wordmark, .hero-ed__note,
  .hero-ed__foot, .hero-ed__bottle, .hero-ed__botanicals {
    animation: none;
  }
}

/* --- Tablet / Mobile: note in griglia sotto la bottiglia --- */
@media (max-width: 1023px) {
  .hero-ed {
    padding-top: calc(56px + var(--space-8));
    min-height: auto;
  }

  .hero-ed__notes {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-5);
    max-width: 560px;
    margin: var(--space-8) auto 0;
  }

  .hero-ed__note { position: static; max-width: none; }

  .hero-ed__bottle { height: clamp(280px, 38vh, 380px); width: auto; max-width: 88vw; object-fit: contain; }
  .hero-ed__bottle-wrap { min-height: 300px; }
  .hero-ed__botanicals { width: 130vw; opacity: 0.22; top: 38%; }
  .hero-ed__foot { margin-top: var(--space-8); flex-wrap: wrap; gap: var(--space-5); }
}

@media (max-width: 480px) {
  .hero-ed__notes { grid-template-columns: 1fr; max-width: 320px; }
  .hero-ed__kicker { letter-spacing: 0.28em; font-size: 0.6rem; }
}

/* ==========================================================================
   PASS EDITORIALE — il resto del sito parla la lingua della nuova hero
   Playfair Title Case, carta crema, asterisco oro. Niente maiuscole urlate.
   ========================================================================== */

/* Titoli ex-Impact → serif Title Case, peso 600 */
.page-hero__title,
.timeline__title,
.portfolio-card__name,
.service-card__title,
.case-card__name,
.made-in-italy__title,
.firm-block__title,
.process-cinematic__title,
.hero__title {
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0.005em;
}

/* Cifre decorative in serif — numerali da rivista, peso medio */
.firm-block__number,
.process-cinematic__number,
.process-cinematic__number-badge,
.timeline__step-number {
  font-weight: 500;
}

/* Display grandi: in Title Case serve più aria verticale e corpo più sobrio */
.made-in-italy__title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.05;
}

.firm-block__title {
  font-size: 2.6rem;
  line-height: 1.06;
}

/* --- PAGE HERO → carta editoriale (stessa materia della hero) --- */
.page-hero {
  background:
    radial-gradient(120% 85% at 50% -5%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    var(--color-cream);
}

/* grana carta sottile, sopra foto/overlay ma sotto il contenuto */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* La foto resta come velatura tonale sulla carta */
.page-hero__bg {
  opacity: 0.1;
}

/* Vignetta crema: fonde i bordi della foto nella carta */
.page-hero__overlay {
  background: radial-gradient(90% 85% at 50% 40%, transparent 25%, var(--color-cream) 100%);
}

.page-hero__title {
  color: var(--color-ink);
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  line-height: 1.04;
}

/* Asterisco oro sopra il titolo — richiama le note della hero */
.page-hero__title::before {
  content: '*';
  display: block;
  font-size: 0.52em;
  line-height: 1;
  color: var(--color-gold-warm-dark);
  margin: 0 auto var(--space-3);
}

.page-hero__subtitle {
  color: var(--color-ink-medium);
}

/* --- Anteprima Firm Builder (home): pannello carta con bottiglia hero --- */
.builder-preview {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background:
    radial-gradient(120% 85% at 50% -5%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    var(--color-cream);
  border: 1px solid var(--color-ink-alpha-12);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: var(--space-8);
}

/* grana carta come la hero */
.builder-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.builder-preview__botanicals {
  position: absolute;
  width: 135%;
  left: -30%;
  top: -10%;
  color: rgba(106, 110, 78, 0.55);
  opacity: 0.3;
  pointer-events: none;
}

/* La bottiglia della hero entra dal basso a sinistra, inclinata verso la card */
.builder-preview__bottle {
  position: absolute;
  left: -17%;
  bottom: -38%;
  height: 138%;
  width: auto;
  transform: rotate(26deg);
  transform-origin: center;
  filter: drop-shadow(16px 20px 22px rgba(45, 32, 24, 0.22));
  pointer-events: none;
}

.builder-preview__card {
  position: relative;
  z-index: 2;
}

@media (max-width: 1023px) {
  .builder-preview {
    min-height: 400px;
    justify-content: center;
    padding: var(--space-6);
  }
  .builder-preview__bottle {
    left: -22%;
    height: 115%;
    bottom: -20%;
  }
}

/* --- Copy «ready to pitch» (analisi presentazione, 2026-07-16) --- */

/* Promessa sotto il wordmark della hero */
.hero-ed__promise {
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  color: var(--color-ink-medium);
  text-align: center;
  animation: heroEdRise 0.9s ease-out 0.45s both;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ed__promise { animation: none; }
}

/* Lead «Cosa facciamo» nella sezione categorie */
.firms-section__lead {
  max-width: 660px;
  margin: var(--space-5) auto 0;
  font-size: var(--text-lg);
  color: var(--color-ink-medium);
  line-height: var(--lh-relaxed);
}

.firms-section__lead strong {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15em;
  color: var(--color-ink);
}

/* --- PER CHI È --- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8) var(--space-8);
  border-top: 1px solid var(--color-ink-alpha-12);
  padding-top: var(--space-8);
}

.audience-item__mark {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  line-height: 1;
  color: var(--color-gold-warm-dark);
  margin-bottom: var(--space-2);
}

.audience-item__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-ink);
}

.audience-closer {
  margin-top: var(--space-12);
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--color-primary);
}

/* --- PERCHÉ FARLO (bordeaux) --- */
.why-section .section-eyebrow {
  color: var(--color-gold-warm);
}

.why-section__accent {
  color: var(--color-gold-warm);
  font-style: italic;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 var(--space-12);
}

.why-list li {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-cream);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(242, 235, 221, 0.18);
}

.why-list li::before {
  content: '* ';
  color: var(--color-gold-warm);
}

.why-closer {
  margin-top: var(--space-8);
  font-size: var(--text-lg);
  color: var(--color-cream-alpha-85);
}

.why-closer em {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25em;
  color: var(--color-gold-warm);
}

/* --- PER CHI È: varianti target con copy (docx 17-07) --- */
.audience-grid--targets {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-8) var(--space-10);
}

.audience-item__text {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-ink-medium);
  max-width: 42ch;
}

/* --- EDIZIONI SPECIALI + FAQ RAPIDE --- */
.editions-lead {
  max-width: 640px;
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  line-height: var(--lh-relaxed);
  color: var(--color-ink-medium);
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-8) var(--space-10);
  border-top: 1px solid var(--color-ink-alpha-12);
  padding-top: var(--space-8);
}

.editions-item__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.22;
  color: var(--color-ink);
}

.editions-item__title span {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--color-gold-warm-dark);
  font-size: 1.15rem;
  line-height: 1;
}

.editions-item__text {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-ink-medium);
  max-width: 44ch;
}

.faq-link {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--color-primary);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--color-primary-rgb), 0.4);
  transition: border-color var(--transition-fast);
}

.faq-link:hover {
  border-color: var(--color-primary);
}
