/* ========================================
   FLORIA — Single Page Style
   ======================================== */

/* ---------- Script delle tagline ----------
   Lavishly Yours (Google Fonts, licenza SIL Open Font: libera anche per uso
   commerciale). Sostituisce Cherolina, che era una demo "for personal use
   only" e su un sito commerciale andava acquistata.
   Scelta ancora da confermare: vedi confronto-font.png nella cartella del
   progetto. Alternative già scaricate: tangerine, sacramento, great-vibes. */
@font-face {
  font-family: 'Lavishly Yours';
  src: url('../fonts/lavishly-yours/LavishlyYours-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- @font-face Cormorant Garamond (locale) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond/CormorantGaramond-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond/CormorantGaramond-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond/CormorantGaramond-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond/CormorantGaramond-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond/CormorantGaramond-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('../fonts/cormorant-garamond/CormorantGaramond-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- @font-face Mulish (locale, variabile) ---------- */
@font-face {
  font-family: 'Muli';
  src: url('../fonts/muli/Mulish-Variable.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- CSS Variables ---------- */
:root {
  --color-bg:       #ffffff;
  --color-white:    #ffffff;
  --color-dark:     #8c857a;
  --color-text:     #84847c;
  --color-green:    #8c857a;
  --color-green-dk: #333533;
  --color-orange:   #8c857a;
  --color-border:   #e5e5e0;
  --color-brown:    #84847c;

  --font-body:    'Muli', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;

  --container:    1290px;
  --header-h:     90px;
  --transition:   0.35s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text);
  background: linear-gradient(to bottom, #f4f0ed 50%, #ffffff 50%) no-repeat;
  overflow-x: hidden;
}
/* Section card layout — same as hero */
.about,
.features,
.products,
.portfolio,
.news,
.stats,
.identity,
.cta-section,
.page-hero,
.page-section,
section.article,
.footer {
  margin: 0 auto;
  border-radius:0;
  width: calc(100% - 40px);
  background-color: transparent;
}
/* Sezione alternata */
.section--white {
  background-color: transparent;
}
/* Prima sezione: solo angoli in alto */
.section--first {
  border-radius:0;

}
/* Ultima sezione: solo angoli in basso */
.section--last {
  border-radius:0;
}
/* Footer */
.footer {
  margin: 20px auto;
  border-radius:0;
}
.hero {
  margin: 0;
  border-radius:0;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
}
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--color-green); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  line-height: 1.8em;
  color: #b5b0a8;
  font-weight: 300;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: 24px;
}
.section-title--light { color: var(--color-white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 36px;
  border-radius:0;
  transition: var(--transition);
}
.btn--primary {
  background: var(--color-green);
  color: var(--color-white);
}
.btn--primary:hover {
  background: var(--color-green-dk);
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--color-bg);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 55px;
  height: var(--header-h);
  transition: height var(--transition);
}
.header__inner--center {
  justify-content: center;
}
.header__logo {
  flex-shrink: 0;
  margin: 0 40px;
}
.header__logo img { height: 52px; width: auto; }
.logo-light { filter: none; display: block; }
.logo-dark { display: none; }

/* Nav */
.header__nav {
  display: flex;
  gap: 28px;
}
.header__nav--left {
  justify-content: flex-end;
}
.header__nav--right {
  justify-content: flex-start;
}
/* Hide phone icon on desktop (right section handles it) */
.header__right {
  position: absolute;
  right: 55px;
}
.header__nav a {
  font-size: 16px;
  font-weight: 400;
  font-family: 'Crimson Text', Arial, Helvetica, sans-serif;
  color: var(--color-dark);
  text-transform: none;
  letter-spacing: 0;
  position: relative;
  transition: color var(--transition);
}
.header__nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--color-green);
  transition: width var(--transition);
}
.header__nav a:hover::after { width: 100%; }

/* Megamenu Portfolio */
.header__mega {
  position: static;
}
/* Le voci del menu restano sempre sopra il pannello del megamenu: il pannello
   è dentro l'header e con z-index 99 finirebbe davanti ai link, rendendoli
   non cliccabili se per qualsiasi motivo si sovrappone. */
.header__nav {
  position: relative;
  z-index: 100;
}
.header__mega-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
}
.header__mega-toggle svg {
  transition: transform 0.3s;
}
.header__mega:hover .header__mega-toggle svg {
  transform: rotate(180deg);
}
.header__mega-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: var(--color-white);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s, visibility 0.35s, transform 0.35s;
  z-index: 99;
  padding: 32px 0;
}
.header__mega-panel::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
}
.header__mega:hover .header__mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header__mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 30px;
}
.header__mega-item {
  display: block;
  text-align: center;
}
.header__mega-item::after {
  display: none !important;
}
.header__mega-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius:0;
  margin-bottom: 10px;
  background: var(--color-bg);
}
.header__mega-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.header__mega-item:hover .header__mega-thumb img {
  transform: scale(1.06);
}
.header__mega-item span {
  display: block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.25s;
}
.header__mega-item:hover span {
  color: var(--color-green) !important;
}

/* Mobile submenu */
/* Niente padding-left: il nav centra i link come blocchi, quindi un padding
   solo a sinistra spostava il testo fuori asse rispetto alle altre voci. */
.mobile-menu__sub {
  font-size: 20px !important;
  opacity: 0.6;
  text-align: center;
}

/* Right */
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-dark);
  position: relative;
  transition: color var(--transition);
  font-size: 15px;
  font-weight: 500;
}
.header__phone:hover { color: var(--color-green); }
.header__phone-number {
  letter-spacing: 0.02em;
}
.header__icon {
  color: var(--color-white);
  position: relative;
  transition: color var(--transition);
}
.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--color-green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius:0;
  display: flex; align-items: center; justify-content: center;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
}
.header__hamburger span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius:0;
  transition: background var(--transition);
}

/* Scrolled state — stesso sfondo */
.header.scrolled {
  background: var(--color-bg);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu__close {
  position: absolute;
  top: 28px; right: 28px;
  color: var(--color-white);
  z-index: 10;
}
@media (max-width: 600px) {
  /* Sovrapposta all'hamburger che sostituisce: header alto 56px, icona 28px. */
  .mobile-menu__close {
    top: 14px;
    right: 20px;
  }
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.mobile-menu__nav a {
  font-family: var(--font-heading);
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  color: var(--color-white);
  transition: color var(--transition);
}
.mobile-menu__nav a:hover { color: var(--color-dark); }

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border-radius:0;
  width: 100%;
}
.hero__parallax {
  position: absolute;
  inset: -20% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-dark);
  max-width: 700px;
  padding: 0 20px;
}

/* ---------- Floating Title ---------- */
/* Hero logo */
/* (canvas rimosso) */
.hero__content { position: relative; z-index: 2; }

.hero-logo {
  text-align: center;
  margin: 30px 0;
}
.hero-logo__img {
  width: min(95%, 1100px);
  height: auto;
  filter: none;
  clip-path: inset(100% 0 0 0);
  animation: growTree 2.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards 0.4s;
}
@keyframes growTree {
  0%   { clip-path: inset(100% 0 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Legacy floating-title kept for reference */
.floating-title {
  text-align: center;
  pointer-events: none;
  margin: 20px 0;
  will-change: transform;
  display: none;
}
.floating-title__heading {
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
  color: var(--color-white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.5);
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--color-green);
}
/* ---------- Animated title (Nome Azienda & ...) ---------- */
.floating-title__heading .text-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  white-space: nowrap;
}
.floating-title__heading .letters { display: inline-block; opacity: 0; }
.floating-title__heading .letters-left {
  font-size: inherit;
  font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 90'%3E%3Crect width='240' height='90' fill='%232e5e14'/%3E%3Cpath d='M0 75 Q55 5 110 65 Q75 10 38 58Z' fill='%23518a28'/%3E%3Cpath d='M100 80 Q158 5 215 70 Q175 12 133 62Z' fill='%23609830'/%3E%3Cpath d='M190 78 Q230 20 270 72 Q245 22 210 65Z' fill='%23518a28'/%3E%3Cpath d='M20 42 Q52 8 84 46 Q60 14 34 40Z' fill='%237ab535' opacity='.9'/%3E%3Cpath d='M125 38 Q158 5 190 44 Q164 11 138 36Z' fill='%236aaa2e' opacity='.88'/%3E%3Cpath d='M0 52 Q60 46 120 52 Q180 46 240 52' stroke='%231e3e0a' stroke-width='2.5' fill='none' opacity='.55'/%3E%3Cpath d='M200 20 Q220 2 240 18 Q222 5 205 22Z' fill='%238ac038' opacity='.8'/%3E%3Cpath d='M5 72 Q55 22 105 68' stroke='%2396c840' stroke-width='1.2' fill='none' opacity='.45'/%3E%3Cpath d='M108 75 Q158 20 205 68' stroke='%2396c840' stroke-width='1.2' fill='none' opacity='.45'/%3E%3Ccircle cx='48' cy='15' r='3' fill='%23c0d430' opacity='.65'/%3E%3Ccircle cx='155' cy='12' r='2.5' fill='%23c0d430' opacity='.6'/%3E%3C/svg%3E");
  background-size: auto 150%;
  background-position: left center;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(255,255,255,1);
  transform: translateX(-1.5em);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1),
              transform 0.9s cubic-bezier(0.22,1,0.36,1);
}
.floating-title__heading .ampersand {
  font-size: 0.85em;
  font-weight: 400;
  font-style: italic;
  color: #5a7a3a;
  transform: scaleY(0.2);
  transform-origin: center bottom;
  transition: opacity 0.7s ease 0.3s,
              transform 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.3s;
}
.floating-title__heading .letters-right {
  font-size: inherit;
  font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 90'%3E%3Crect width='240' height='90' fill='%232e5e14'/%3E%3Cpath d='M0 75 Q55 5 110 65 Q75 10 38 58Z' fill='%23518a28'/%3E%3Cpath d='M100 80 Q158 5 215 70 Q175 12 133 62Z' fill='%23609830'/%3E%3Cpath d='M190 78 Q230 20 270 72 Q245 22 210 65Z' fill='%23518a28'/%3E%3Cpath d='M20 42 Q52 8 84 46 Q60 14 34 40Z' fill='%237ab535' opacity='.9'/%3E%3Cpath d='M125 38 Q158 5 190 44 Q164 11 138 36Z' fill='%236aaa2e' opacity='.88'/%3E%3Cpath d='M0 52 Q60 46 120 52 Q180 46 240 52' stroke='%231e3e0a' stroke-width='2.5' fill='none' opacity='.55'/%3E%3Cpath d='M200 20 Q220 2 240 18 Q222 5 205 22Z' fill='%238ac038' opacity='.8'/%3E%3Cpath d='M5 72 Q55 22 105 68' stroke='%2396c840' stroke-width='1.2' fill='none' opacity='.45'/%3E%3Cpath d='M108 75 Q158 20 205 68' stroke='%2396c840' stroke-width='1.2' fill='none' opacity='.45'/%3E%3Ccircle cx='48' cy='15' r='3' fill='%23c0d430' opacity='.65'/%3E%3Ccircle cx='155' cy='12' r='2.5' fill='%23c0d430' opacity='.6'/%3E%3C/svg%3E");
  background-size: auto 150%;
  background-position: left center;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  background-clip: text;
  color: rgba(255,255,255,1);
  transform: translateX(1.5em);
  transition: opacity 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s,
              transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s;
}
.floating-title__heading.animated .letters-left,
.floating-title__heading.animated .letters-right { opacity: 1; transform: translateX(0); }
.floating-title__heading.animated .ampersand { opacity: 1; transform: scaleY(1); }
.hero__subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 36px;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__scroll span {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.3);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { top: -100%; }
  50%  { top: 0; }
  100% { top: 100%; }
}

/* ========================================
   FEATURES BAR
   ======================================== */
.features {
  padding: 100px 0;
  position: relative;
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.features__icon {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}
.features__icon img {
  width: 80px;
  height: 80px;
  filter: brightness(0) saturate(100%) invert(62%) sepia(52%) saturate(456%) hue-rotate(59deg) brightness(92%) contrast(88%);
}
.features__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-dark);
  font-weight: 500;
  margin-bottom: 8px;
}
.features__text {
  font-size: 14px;
  line-height: 1.6;
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  padding: 100px 0;
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__images {
  position: relative;
  /* Alzata rispetto alla colonna di testo, che le sta accanto centrata. */
  margin-top: -40px;
}
.about__img--main {
  width: 80%;
  border-radius:0;
}
.about__img--small {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 55%;
  box-shadow: 10px 10px 40px rgba(0,0,0,0.12);
}
.about__content p {
  margin-bottom: 24px;
  line-height: 1.8;
}
.about__hours {
  margin-bottom: 0;
  padding: 20px 0;
/*  border-top: 1px solid var(--color-border);*/
}
.about__hours:last-child {
/*  border-bottom: 1px solid var(--color-border);*/
}
.about__hours-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.about__hours p {
  margin-bottom: 4px;
  font-size: 15px;
}

/* ========================================
   SERVICES (Floria-style overlay grid)
   ======================================== */
.products {
  padding: 0 0 100px;
  overflow: hidden;
}
.products__header {
  text-align: center;
  padding: 0 0 50px;
}
.products__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.product-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}
.product-card__image {
  position: absolute;
  inset: 0;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.product-card:hover .product-card__image img {
  transform: scale(1.08);
}
/* Dark overlay always visible */
.product-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 24px;
  transition: background var(--transition);
}
.product-card:hover .product-card__overlay {
  background: rgba(0,0,0,0.55);
}
/* Title always visible */
.product-card__name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-white);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-dark);
  transition: margin var(--transition);
}
.product-card:hover .product-card__name {
  margin-bottom: 12px;
}
/* Info hidden, appears on hover */
.product-card__info {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}
.product-card:hover .product-card__info {
  max-height: 250px;
  opacity: 1;
}
.product-card__price {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 14px;
}
.product-card__link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background: var(--color-green);
  padding: 10px 22px;
  transition: background var(--transition);
}
.product-card__link:hover {
  background: var(--color-green-dk);
}
/* Classic card variant (text below image) */
.products__grid--classic {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.product-card--classic {
  position: static;
  aspect-ratio: auto;
  text-align: center;
}
.product-card--classic .product-card__image {
  position: relative;
  margin-bottom: 20px;
  aspect-ratio: 4/3;
}
.product-card--classic .product-card__name {
  color: var(--color-dark);
  font-size: 20px;
}
.product-card--classic .product-card__price {
  color: var(--color-text);
  display: block;
  -webkit-line-clamp: unset;
}

/* ========================================
   PORTFOLIO
   ======================================== */
.portfolio {
  padding: 0;
  overflow: hidden;
}
.portfolio__header {
  text-align: center;
  padding: 100px 0 50px;
}
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.portfolio__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}
.portfolio__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio__item:hover img {
  transform: scale(1.08);
}
.portfolio__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(38,26,12,0.7) 0%, rgba(38,26,12,0.15) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px 28px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio__item:hover .portfolio__overlay { opacity: 1; }
.portfolio__cat {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-green);
  margin-bottom: 6px;
}
.portfolio__name {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--color-white);
  font-weight: 500;
  line-height: 1.3;
}

/* ========================================
   STATS / CTA
   ======================================== */
.stats {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.stats__bg {
  position: absolute;
  inset: 0;
}
.stats__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.stats__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 26, 12, 0.65);
}
.stats__grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.stats__left {
  display: flex;
  gap: 60px;
}
.stats__counter {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stats__number {
  font-family: var(--font-heading);
  font-size: 72px;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 12px;
}
.stats__label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.stats__text {
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-green);
  padding: 100px 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer__logo img { height: 41px; margin-bottom: 20px; filter: brightness(0) invert(1); }
.footer__desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-white);
}
.footer__heading {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--color-white);
  font-weight: 500;
  margin-bottom: 20px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-white); }
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a {
  width: 40px; height: 40px;
  border-radius:0;
  border: 1px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  transition: var(--transition);
}
.footer__social a:hover {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-green);
}
.footer__bottom {
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}
.footer__bottom a {
  color: var(--color-white);
}

/* ========================================
   IDENTITY / REVERSE ABOUT
   ======================================== */
.identity {
  padding: 100px 0;
}
.about__grid--reverse {
  direction: rtl;
}
.about__grid--reverse > * {
  direction: ltr;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  padding: 100px 0;
}
.cta-box {
  max-width: 700px;
  text-align: center;
  margin: 0 auto;
}
.cta-box .eyebrow { margin-bottom: 16px; }
.cta-box p {
  margin-bottom: 28px;
  line-height: 1.8;
}

/* ========================================
   INNER PAGES
   ======================================== */

/* Page hero (no fullscreen) */
.page-hero {
  position: relative;
  padding: 160px 0 60px;
  text-align: left;
  overflow: visible;
  background: transparent;
  margin-bottom: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -40px;
  /* Era left:-10% con width:120%: il 10% di troppo a destra usciva dal
     viewport e allargava tutta la pagina. La sezione è già rientrata di
     20px per lato, quindi questi valori la fanno arrivare esattamente
     al bordo dello schermo senza sfondarlo. */
  left: -20px;
  width: calc(100% + 40px);
  height: 0;
  padding-bottom: 46%;
  background: url('../img/decor-line.svg') no-repeat center bottom / 100% auto;
  pointer-events: none;
  z-index: 0;
}
.page-hero__bg {
  display: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: #8c857a; }
.page-hero .section-title {
  margin-bottom: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  line-height: 1.8em;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 300;
  color: #b5b0a8;
}

/* Page sections */
.page-section {
  padding: 100px 0;
}
/* Subito sotto al testo introduttivo si sommavano i 60px del page-hero e i
   100px qui: 160px di vuoto prima che partissero album e gallerie. */
.page-hero + .page-section {
  padding-top: 40px;
}
.page-section--alt {
  background-color: #F7F6F1;
}
.page-section .about__content p {
  margin-bottom: 16px;
}

/* Service detail layout (text + sidebar) */
.service-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 60px;
  align-items: start;
}
.service-layout__sidebar {
  position: sticky;
  top: 120px;
}
.service-layout__image {
}
.service-layout__image img {
  width: 100%;
  border-radius:0;
  margin-bottom: 24px;
}
/* Service sidebar */
.service-sidebar {
  background: #ffffff;
  border-radius:0;
  padding: 24px;
  border: 1px solid var(--color-border);
}
.service-sidebar__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-green);
}
.service-sidebar__list {
  list-style: none;
}
.service-sidebar__list li {
  margin-bottom: 2px;
}
.service-sidebar__list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius:0;
  transition: background var(--transition), color var(--transition);
}
.service-sidebar__list a:hover {
  background: rgba(113, 179, 71, 0.1);
  color: var(--color-green-dk);
}
.service-sidebar__list li.active a {
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 500;
}
@media (max-width: 1024px) {
  .service-layout { grid-template-columns: 1fr; }
  .service-layout__sidebar { position: static; order: 1; }
  .service-layout__image { max-width: 500px; }
  .service-sidebar { position: static; }
}

/* Page CTA buttons */
.page-cta {
  display: flex;
  gap: 16px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* Active nav link */
.header__nav a.active { color: var(--color-green) !important; }
.header__nav a.active::after { width: 100%; }

/* ========================================
   TIMELINE
   ======================================== */
.timeline__header {
  margin-bottom: 50px;
}
.timeline {
  position: relative;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}
.timeline__item {
  position: relative;
  padding-bottom: 40px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius:0;
  background: var(--color-white);
  border: 3px solid var(--color-green);
  z-index: 1;
}
.timeline__content {
  padding-left: 10px;
}
.timeline__date {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.timeline__role {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 4px;
}
.timeline__company {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 2px;
}
.timeline__location {
  font-size: 13px;
  color: var(--color-brown);
  margin-bottom: 10px;
}
.timeline__content p:last-child {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
}

/* ========================================
   ARTICLE
   ======================================== */
.article {
  max-width: 800px;
}
.article__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.article__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius:0;
  color: var(--color-brown);
}
.article__lead p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-dark);
  margin-bottom: 32px;
}
.article__image {
  margin-bottom: 40px;
}
.article__image img {
  width: 100%;
  border-radius:0;
}
.article h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-dark);
  margin: 40px 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-dark);
}
.article h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-dark);
  margin: 32px 0 12px;
}
.article p {
  margin-bottom: 16px;
  line-height: 1.8;
  font-size: 16px;
  color: var(--color-text);
}
.service-layout .article {
  max-width: none;
}
.article blockquote {
  border-left: 3px solid var(--color-green);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--color-white);
}
.article blockquote p {
  font-style: italic;
  color: var(--color-dark);
  font-size: 17px;
  margin-bottom: 0;
}
.article__list {
  margin: 16px 0 24px 20px;
  list-style: none;
}
.article__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.7;
}
.article__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius:0;
  background: var(--color-green);
}
.article__divider {
  height: 1px;
  background: var(--color-border);
  margin: 40px 0;
}
.article__cta {
  background: var(--color-white);
  padding: 32px;
  border: 1px solid var(--color-border);
  margin-top: 40px;
  text-align: center;
}
.article__cta p {
  font-size: 17px;
  color: var(--color-dark);
  margin-bottom: 20px;
}

/* ========================================
   GALLERY GRID
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-grid__item {
  overflow: hidden;
  border-radius:0;
  aspect-ratio: 4/3;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq {
  max-width: 100%;
}
.faq__group {
  margin-bottom: 48px;
}
.faq__group:last-child {
  margin-bottom: 0;
}
.faq__group-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-green);
}
.faq__item {
  border-bottom: 1px solid var(--color-border);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
  list-style: none;
  transition: color var(--transition);
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__question::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--color-green);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--transition);
}
.faq__item[open] .faq__question::after {
  content: '\2212';
  transform: rotate(180deg);
}
.faq__question:hover {
  color: var(--color-green);
}
.faq__answer {
  padding: 0 0 20px;
}
.faq__answer p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}
.faq__answer a {
  color: var(--color-green-dk);
  font-weight: 500;
}
.faq__answer a:hover {
  color: var(--color-green);
}

/* ========================================
   NEWS SLIDER
   ======================================== */
.news {
  padding: 100px 0;
}
.news__header {
  text-align: center;
  margin-bottom: 50px;
}
.news-slider {
  position: relative;
  overflow: hidden;
}
.news-slider__track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.news-card {
  flex: 0 0 calc((100% - 60px) / 3);
  max-width: calc((100% - 60px) / 3);
}
.news-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  margin-bottom: 20px;
}
.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news-card:hover .news-card__image img {
  transform: scale(1.05);
}
.news-card__content {
  padding: 0 4px;
}
.news-card__category {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-green);
  margin-bottom: 8px;
}
.news-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.news-card__title a {
  transition: color var(--transition);
}
.news-card__title a:hover {
  color: var(--color-green);
}
.news-card__meta {
  font-size: 13px;
  color: var(--color-brown);
}
.news-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-top: 8px;
}
.news-card__btn {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  background: var(--color-green);
  padding: 8px 20px;
  border-radius:0;
  transition: background var(--transition);
}
.news-card:hover .news-card__btn {
  background: var(--color-green-dk);
}
.news-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
}
.news-slider__btn {
  width: 44px;
  height: 44px;
  border-radius:0;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-dark);
  transition: var(--transition);
}
.news-slider__btn:hover {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}
.news-slider__dots {
  display: flex;
  gap: 8px;
}
.news-slider__dot {
  width: 10px;
  height: 10px;
  border-radius:0;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.news-slider__dot.active {
  background: var(--color-green);
}

/* Share bar */
.share-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  margin-top: 32px;
  border-top: 1px solid var(--color-border);
}
.share-bar__label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brown);
}
.share-bar__buttons {
  display: flex;
  gap: 10px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius:0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover {
  transform: scale(1.1);
  opacity: 0.85;
}
.share-btn--facebook { background: #1877F2; }
.share-btn--whatsapp { background: #25D366; }
.share-btn--linkedin { background: #0A66C2; }
.share-btn--email { background: var(--color-brown); }

/* News grid (pagina indice) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.news-grid .news-card {
  flex: none;
  max-width: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__hamburger { display: flex; }
  .header__inner { padding: 0 20px; }

  .features__grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }

  .about__grid { grid-template-columns: 1fr; gap: 60px; }
  .about__grid--reverse { direction: ltr; }
  .about__images { max-width: 500px; }

  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .product-card { aspect-ratio: 3/4; }
  .product-card__name { margin-bottom: 10px; font-size: 18px; }
  .product-card__info { max-height: none; opacity: 1; overflow: visible; }
  .product-card__price { font-size: 13px; }
  .product-card__overlay { padding: 20px 16px; }

  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .stats__grid { grid-template-columns: 1fr; gap: 50px; }

  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }

  .timeline { padding-left: 30px; }
  .timeline__dot { left: -30px; }
  .timeline__role { font-size: 20px; }

  .news-card { flex: 0 0 calc((100% - 30px) / 2); max-width: calc((100% - 30px) / 2); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 600px) {
  :root { --header-h: 56px; }
  .header__phone-number { display: none; }
  /* Da telefono le due nav sono nascoste: il logo va a sinistra e l'hamburger
     resta a destra, invece di restare centrato con lo spazio vuoto ai lati. */
  .header__inner--center { justify-content: space-between; }
  .header__logo { margin: 0; }
  .header__logo img { height: 44px; }
  .header { width: 100%; left: 0; top: 0; }
  .header__inner { padding: 0 20px; }
  /* Telefono e hamburger ancorati al bordo destro dello schermo,
     fuori dal flusso dell'inner. */
  .header__right {
    position: absolute;
    right: 20px;
  }
  .container { padding: 0 20px; }
  /* Le sezioni erano rientrate di 20px per lato e il container ne aggiungeva
     altri 20: 40px complessivi. A tutta larghezza il margine lo dà il solo
     container, così resta esattamente 20px. */
  .about, .features, .products, .portfolio, .news, .stats, .identity,
  .cta-section, .page-hero, .page-section, section.article { width: 100%; }
  .page-hero::after { left: 0; width: 100%; }
  .header.scrolled .header__inner { height: 50px; }

  /* Menu overlay: voci più piccole e sottovoci ravvicinate */
  .mobile-menu__nav { gap: 10px; }
  .mobile-menu__nav a { font-size: 26px; }
  .mobile-menu__sub { font-size: 17px !important; margin-top: -5px; }

  .features__grid { grid-template-columns: 1fr; gap: 30px; }

  .products__grid { grid-template-columns: 1fr; }
  .product-card { aspect-ratio: 4/3; }
  .product-card__name { font-size: 20px; }
  .product-card__price { font-size: 14px; }
  .product-card__overlay { padding: 24px 20px; }

  .portfolio__grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }

  .stats { padding: 60px 0; }
  .stats__left { flex-direction: column; gap: 40px; }
  .stats__number { font-size: 52px; }

  .footer__top { grid-template-columns: 1fr; }

  .floating-title__heading { font-size: 36px; }
  .floating-title__heading .text-wrapper { white-space: normal; flex-wrap: wrap; justify-content: center; gap: 0.15em; }
  .floating-title__heading .letters-left,
  .floating-title__heading .letters-right { font-size: inherit; }
  .hero__subtitle { font-size: 15px; }

  /* Meno vuoto sotto al titolo di pagina: prima erano 60px qui più i 40px
     della sezione seguente, cioè 100px di bianco su uno schermo stretto. */
  .page-hero { padding: 120px 0 20px; }
  .page-hero + .page-section { padding-top: 24px; }
  .page-section, .cta-section, .features, .about, .identity, .news { padding: 60px 0; }
  .footer { padding: 60px 0 0; }
  .timeline__role { font-size: 18px; }
  .article h2 { font-size: 24px; }
  .article__lead p { font-size: 16px; }
  .article blockquote { padding: 12px 16px; }
  .page-cta { flex-direction: column; }
  .page-cta .btn { text-align: center; }
  .parallax-deco { display: none !important; }

  .news-card { flex: 0 0 100%; max-width: 100%; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ---------- Parallax Decorative Elements ---------- */
.parallax-deco {
  position: absolute;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  z-index: 5;
  height: auto;
}
.parallax-deco--left  { left: -40px; }
.parallax-deco--right { right: -40px; }

/* Foglia 01 */
.parallax-deco--foglia-01 { width: 280px; }
/* Foglia 02 */
.parallax-deco--foglia-02 { width: 320px; }
/* Foglia 03 */
.parallax-deco--foglia-03 { width: 300px; }
/* Coccinella */
.parallax-deco--coccinella { width: 160px; }
/* Ape */
.parallax-deco--ape { width: 180px; }
/* Rana */
.parallax-deco--rana { width: 160px; }
/* Pipistrello */
.parallax-deco--pipistrello { width: 200px; }
/* Lumaca leopardo */
.parallax-deco--lumaca-leopardo { width: 180px; }

/* ========================================
   CONTACT FORM & LAYOUT
   ======================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form {
  margin-top: 32px;
}
.contact-form__group {
  margin-bottom: 20px;
}
.contact-form__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.contact-form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-dark);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius:0;
  transition: border-color var(--transition);
}
.contact-form__input:focus {
  outline: none;
  border-color: var(--color-green);
}
.contact-form__textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form__success {
  background: rgba(113, 179, 71, 0.12);
  color: var(--color-green-dk);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 500;
}
.contact-form__error {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  padding: 16px 20px;
  margin-bottom: 24px;
  font-weight: 500;
}

/* Form privacy & accessibility */
.contact-form fieldset { border: none; padding: 0; margin: 0; }
.contact-form__privacy { margin-top: 4px; }
.contact-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text);
  line-height: 1.5;
  cursor: pointer;
}
.contact-form__checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--color-green);
  cursor: pointer;
}
.contact-form__checkbox a {
  color: var(--color-green);
  text-decoration: underline;
}
.contact-form__checkbox a:hover {
  color: var(--color-green-dk);
}
.contact-form__note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-brown);
}

/* Quick contact sidebar */
/* Nessuna cornice: il contenuto scorre come testo normale nella pagina */
.contact-quick {
  padding: 0;
  background: none;
  border: 0;
}
.contact-quick__riga {
  line-height: 1.9;
  margin: 0;
}
.contact-quick__riga a {
  color: var(--color-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-quick__riga a:hover {
  color: var(--color-brown);
}
.contact-quick__title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 12px;
}
.contact-quick__text {
  margin-bottom: 24px;
  line-height: 1.7;
}
.contact-quick__info {
  margin-top: 32px;
}
.contact-quick__social {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.contact-quick__social a {
  width: 40px; height: 40px;
  border-radius:0;
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-dark);
  transition: var(--transition);
}
.contact-quick__social a:hover {
  background: var(--color-green);
  border-color: var(--color-green);
  color: var(--color-white);
}

@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .contact-quick { padding: 0; }
}

/* ========================================
   HERO SPLIT (foto sx + testo dx)
   ======================================== */
.hero-split {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 600px;
}
.hero-split__photo {
  width: 48%;
  overflow: hidden;
}
.hero-split__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  /* Ancorata in alto: la foto è verticale e in un riquadro più largo verrebbe
     tagliata sopra e sotto. Così il taglio va tutto in fondo e la parte alta
     (viso, mani, chioma) resta intera. */
  background-position: center top;
}
.hero-split__text {
  position: relative;
  width: 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}
.hero-split__text .hero-fs__eyebrow,
.hero-split__text .hero-fs__title,
.hero-split__text .hero-fs__firma,
.hero-split__text .hero-fs__sub {
  opacity: 1;
  transform: none;
}
.hero-split__text .hero-fs__eyebrow {
  color: var(--color-green);
}
.hero-split__text .hero-fs__title {
  color: var(--color-dark);
}
.hero-split__text .hero-fs__sub {
  color: #8c857a;
}
.hero-split__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #b5b0a8;
  opacity: 0.7;
  animation: heroScrollBounce 2s ease-in-out infinite;
  transition: opacity 0.3s;
}
.hero-split__scroll:hover {
  opacity: 1;
}
.hero-split__tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  line-height: 1.8em;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 300;
  color: #b5b0a8;
  margin: 0;
}
.hero-split__tagline-2 {
  font-family: 'Lavishly Yours', cursive;
  /* La colonna del testo è il 52% meno 160px di padding: il corpo segue quella
     misura così la frase resta su una riga sola invece di spezzarsi. A 60px
     fissi ci stava solo sopra i 1440px. */
  font-size: clamp(20px, calc(5.2vw - 17px), 60px);
  /* Relativa e non più 46px fissi: prima, andando a capo, le righe si
     sovrapponevano perché l'interlinea era più bassa del corpo. */
  line-height: 0.77;
  /* Assottigliamento: il contorno del colore di sfondo mangia i bordi del
     tratto, quindi le aste restano della stessa dimensione ma più fini.
     Il colore DEVE essere quello dello sfondo dietro il testo: qui la
     tagline sta in cima alla pagina, sulla metà chiara del gradiente body. */
  -webkit-text-stroke: 0.3px #f4f0ed;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  color: rgb(181 176 168 / 0.24);
  margin: 12px 0 0;
  position: relative;
}
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    height: auto;
    min-height: 0;
  }
  .hero-split__photo {
    width: 100%;
    height: 60vh;
  }
  .hero-split__text {
    width: 100%;
    padding: 40px 24px;
  }
  /* Da telefono la colonna è a tutta larghezza: cambia la formula del corpo,
     ma il tetto resta 60px per non superare la proporzione del desktop. */
  .hero-split__tagline-2 {
    font-size: clamp(22px, calc(10.2vw - 6.2px), 60px);
  }
  /* A 34px la riga maiuscola andava a capo quattro volte su un telefono. */
  .hero-split__tagline {
    font-size: clamp(17px, 5.2vw, 34px);
    letter-spacing: .15em;
  }
}

/* ========================================
   HERO FULLSCREEN SLIDER (Solene style)
   ======================================== */
.hero-fs {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-fs__slides {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-fs__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #2e1f1a;
  background-blend-mode: lighten;
  opacity: 0;
  z-index: 0;
  transform: scale(1);
  transition: opacity 1.2s ease;
}
.hero-fs__slide.is-active {
  opacity: 1;
  z-index: 1;
  animation: heroKenBurns 7s ease-out forwards;
}
.hero-fs__slide.is-leaving {
  opacity: 0;
  z-index: 1;
}
@keyframes heroKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.08); }
}
.hero-fs__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.hero-fs__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}
.hero-fs__eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}
.hero-fs__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}
.hero-fs__firma {
  max-width: 200px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease 0.6s, transform 0.8s ease 0.6s;
}
.hero-fs__slide.is-active .hero-fs__firma {
  opacity: 1;
  transform: translateY(0);
}
.hero-fs__sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  letter-spacing: .1em;
  color: rgba(255,255,255,0.75);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease 0.8s, transform 0.8s ease 0.8s;
}
.hero-fs__slide.is-active .hero-fs__eyebrow,
.hero-fs__slide.is-active .hero-fs__title,
.hero-fs__slide.is-active .hero-fs__sub {
  opacity: 1;
  transform: translateY(0);
}
/* Diamond dots */
.hero-fs__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: #fff;
  opacity: 0.7;
  animation: heroScrollBounce 2s ease-in-out infinite;
  transition: opacity 0.3s;
}
.hero-fs__scroll:hover {
  opacity: 1;
}
@keyframes heroScrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
.hero-fs__dots {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 16px;
}
.hero-fs__dot {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transform: rotate(45deg);
  transition: background 0.3s, border-color 0.3s;
}
.hero-fs__dot.is-active {
  background: #fff;
  border-color: #fff;
}
.hero-fs__dot:hover {
  border-color: #fff;
}
@media (max-width: 768px) {
  .hero-fs__title { font-size: clamp(28px, 8vw, 48px); }
}

/* ========================================
   HERO SPLIT (foto sx fissa + testo dx sovrapposto)
   ======================================== */
.hero-split {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 100vh;
  overflow: hidden;
  /* La testata è fissa e con sfondo pieno: senza questo spazio i primi
     --header-h pixel della foto restano nascosti sotto di essa. Con
     border-box l'altezza totale resta 100vh, non si allunga la pagina. */
  box-sizing: border-box;
  padding-top: var(--header-h);
}
.hero-split__photo {
  flex: 0 0 48%;
  max-width: 48%;
  overflow: hidden;
}
.hero-split__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Il testo sta dentro la sua colonna e resta centrato.
   Niente margine negativo né z-index: prima sconfinava sopra la foto. */
.hero-split__text {
  flex: 1 1 52%;
  max-width: 52%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 80px;
}
.hero-split__eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brown);
  margin-bottom: 16px;
}
.hero-split__title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
}
.hero-split__sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 32px;
  max-width: 400px;
}
@media (max-width: 768px) {
  .hero-split {
    flex-direction: column;
    min-height: auto;
  }
  .hero-split__photo {
    flex: 0 0 auto;
    max-width: 100%;
    height: 50vh;
  }
  .hero-split__text {
    flex: 0 0 auto;
    max-width: 100%;
    margin-left: 0;
    margin-top: 0;   /* prima -40px: saliva sopra la foto anche da telefono */
    padding: 40px 30px;
  }
}

/* ========================================
   HERO SLIDER (fullscreen fade)
   ======================================== */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.hero-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 0;
}
.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero-slider__slide.is-leaving {
  opacity: 0;
  visibility: visible;
  z-index: 1;
}
.hero-slider__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1);
  transition: transform 6s ease-out;
}
.hero-slider__slide.is-active .hero-slider__img {
  transform: scale(1.06);
}
.hero-slider__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 1;
}
.hero-slider__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 20px;
  color: #fff;
}
.hero-slider__eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.3s, transform 0.8s 0.3s;
}
.hero-slider__title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 7vw, 90px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s 0.5s, transform 0.8s 0.5s;
}
.hero-slider__sub {
  font-family: var(--font-body);
  font-size: 18px;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.7s, transform 0.8s 0.7s;
}
.hero-slider__content .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s 0.9s, transform 0.8s 0.9s, background 0.35s, color 0.35s;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}
.hero-slider__content .btn:hover {
  background: #fff;
  color: #000;
}
.hero-slider__slide.is-active .hero-slider__eyebrow,
.hero-slider__slide.is-active .hero-slider__title,
.hero-slider__slide.is-active .hero-slider__sub,
.hero-slider__slide.is-active .hero-slider__content .btn {
  opacity: 1;
  transform: translateY(0);
}
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.7);
  padding: 16px;
  transition: color 0.3s;
}
.hero-slider__arrow:hover { color: #fff; }
.hero-slider__arrow--prev { left: 24px; }
.hero-slider__arrow--next { right: 24px; }
.hero-slider__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 12px;
}
.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius:0;
  border: 1.5px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.hero-slider__dot.is-active {
  background: #fff;
  border-color: #fff;
}
.hero-slider__dot:hover { border-color: #fff; }
@media (max-width: 768px) {
  .hero-slider__arrow { display: none; }
  .hero-slider__title { font-size: clamp(32px, 10vw, 52px); }
}

/* ========================================
   DECOR LINE (portfolio section)
   ======================================== */
.portfolio-section {
  position: relative;
  overflow: visible;
}
.decor-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 0;
  pointer-events: none;
}
.decor-line--top {
  bottom: auto;
  top: 120px;
  transform: scaleX(-1);
  opacity: 0.6;
}
.story-row {
  position: relative;
  z-index: 1;
}
.story-row:nth-child(odd) .story-row__img-wrap {
  z-index: 2;
}
.story-row:nth-child(even) .story-row__img-wrap {
  z-index: 0;
}
@media (max-width: 768px) {
  .decor-line { display: none; }
}

/* ========================================
   HP TAGLINE
   ======================================== */
.hp-tagline {
  text-align: center;
  padding: 60px 30px;
  position:relative;
}
.hp-tagline p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  line-height: 1.8em;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 300;
  color: #b5b0a8;
  margin: 0;
}
p.hp-tagline-2 {
  font-family: 'Lavishly Yours', cursive;
  /* Il corpo scala con la finestra così la frase resta su una riga sola:
     a 90px fissi serviranno sempre ~890px di spazio, che sotto i 1000px
     non ci sono più. */
  font-size: clamp(22px, 8vw, 90px);
  /* Stesso assottigliamento: questa tagline sta a fondo pagina, sulla metà
     bianca del gradiente. Alzare il valore assottiglia ancora. */
  -webkit-text-stroke: 0.5px #ffffff;
  font-weight: 400;
  font-style: normal;
  text-transform: none;
  letter-spacing: normal;
  color: rgb(181 176 168 / 0.24);
  margin: 12px 0 0;
  /* Sovrapposta alla riga maiuscola e sfalsata a destra. L'offset era
     "left: 400px" fisso: su finestre strette faceva partire il testo già
     fuori schermo e allargava tutta la pagina. */
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-42%);
  width: max-content;
  max-width: 100%;
}
/* Sotto i 1024px la riga maiuscola va a capo e il blocco cresce in altezza:
   la corsiva sovrapposta finirebbe sopra la seconda riga. Qui torna nel
   flusso, centrata sotto. */
@media (max-width: 1024px) {
  p.hp-tagline-2 {
    position: static;
    transform: none;
    width: auto;
    margin: 4px auto 0;
  }
}

/* ========================================
   SECTION SEPARATOR (linea verticale)
   ======================================== */
.section-sep {
  display: block;
  width: 1px;
  height: 136px;
  background: #e1d9cf;
  margin: 0 auto;
}

/* ========================================
   HP PORTFOLIO GRID (2 colonne)
   ======================================== */
.hp-portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 200px;
  row-gap: 24px;
}
@media (max-width: 768px) {
  .hp-portfolio-grid { grid-template-columns: 1fr; }
}

/* ========================================
   HP PORTFOLIO CARDS (scattered like albums)
   ======================================== */
.hp-portfolio-card {
  display: block;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  padding: 10px;
  height: fit-content;
}
.hp-portfolio-card::after {
  display: none !important;
}
.hp-portfolio-card__img {
  overflow: hidden;
}
.hp-portfolio-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
  opacity: 0;
}
.hp-portfolio-card__img img.loaded {
  opacity: 1;
}
.hp-portfolio-card:hover .hp-portfolio-card__img img {
  transform: scale(1.04);
}
.hp-portfolio-card__overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 40%;
}
.hp-portfolio-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.hp-portfolio-card__desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
  max-width: 280px;
}
.hp-portfolio-card__btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 8px 20px;
  width: fit-content;
  transition: background 0.3s, border-color 0.3s;
}
.hp-portfolio-card:hover .hp-portfolio-card__btn {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* Posizioni individuali per ogni card portfolio */
/* Le posizioni non sono più scritte a mano per categoria: le calcola
   js/script.js misurando l'altezza reale di ogni card. Così cambiare una foto
   da orizzontale a verticale non provoca più sovrapposizioni.
   Vedi initPortfolioHome() — lì si regolano distanza e sfalsamento. */

/* ========================================
   STORY ROW (servizi alternati sx/dx)
   ======================================== */
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto 0;
  padding: 0 30px;
}
.story-row + .story-row {
  margin-top: -60px;
}
.story-row--reverse {
  direction: rtl;
}
.story-row--reverse > * {
  direction: ltr;
}

/* Foto con bordo e offset */
.story-row__img-wrap {
  position: relative;
  padding: 16px;
}
.story-row__frame {
  position: relative;
  display: inline-block;
}
.story-row__frame img {
  width: 100%;
  max-width: 380px;
  display: block;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--color-border);
  padding: 10px;
}
.story-row__label {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  color: #fff;
  text-transform: none;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin: 0;
  line-height: 1.2;
  text-align: right;
}
/* offset decorativo: foto leggermente fuori dal contenitore */
.story-row .story-row__img-wrap {
  transform: translateY(20px);
}
.story-row--reverse .story-row__img-wrap {
  transform: translateY(-20px);
}

/* Testo */
.story-row__text {
  padding: 30px 0;
}
.story-row__text p {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
}

/* Reveal animation — globale */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Delay sequenziale per figli con data-reveal-child */
[data-reveal-child] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible [data-reveal-child]:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
[data-reveal].is-visible [data-reveal-child]:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
[data-reveal].is-visible [data-reveal-child]:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
[data-reveal].is-visible [data-reveal-child]:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
[data-reveal].is-visible [data-reveal-child]:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
[data-reveal].is-visible [data-reveal-child]:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }
[data-reveal].is-visible [data-reveal-child]:nth-child(7) { transition-delay: 0.7s; opacity: 1; transform: translateY(0); }
[data-reveal].is-visible [data-reveal-child]:nth-child(8) { transition-delay: 0.8s; opacity: 1; transform: translateY(0); }
/* Delay sfalsato: testo arriva un po' dopo la foto */
.story-row[data-reveal] .story-row__text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}
.story-row[data-reveal].is-visible .story-row__text {
  opacity: 1;
  transform: translateY(0);
}
/* Disabilita reveal per chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-child] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 768px) {
  .story-row {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
  }
  .story-row + .story-row {
    margin-top: 0;
  }
  .story-row--reverse {
    direction: ltr;
  }
  .story-row .story-row__img-wrap,
  .story-row--reverse .story-row__img-wrap {
    transform: none;
  }
}

/* ========================================
   TESTIMONIALS (foto sx + testo dx, Avala style)
   ======================================== */
.tm-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: clamp(36px, 5vw, 64px) !important;
  font-weight: 400 !important;
  font-style: italic !important;
  text-transform: none !important;
}
.tm-slider {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}
.tm-slider__track {
  position: relative;
}
.tm-slider__slide {
  display: flex;
  align-items: stretch;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.tm-slider__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
}
.tm-slider__photo {
  flex: 0 0 50%;
  max-width: 50%;
  overflow: hidden;
}
.tm-slider__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tm-slider__content {
  flex: 1;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 50px;
  background: transparent;
  text-align: center;
}
.tm-slider__icon {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  line-height: 0.8;
  color: var(--color-green);
  margin-bottom: 16px;
}
.tm-slider__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
.tm-slider__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text);
  font-style: italic;
}
.tm-slider__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}
.tm-slider__dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid var(--color-brown);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, border-color 0.3s;
}
.tm-slider__dot.is-active {
  background: var(--color-dark);
  border-color: var(--color-dark);
}
@media (max-width: 768px) {
  .tm-slider__slide {
    flex-direction: column;
  }
  .tm-slider__photo,
  .tm-slider__content {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .tm-slider__content {
    padding: 30px 20px;
  }
}

/* ========================================
   ALBUM GRID (sparso, dimensioni diverse)
   ======================================== */
.album-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.album-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius:0;
}
.album-card::after {
  display: none !important;
}
/* Pattern: alternare dimensioni diverse */
.album-card:nth-child(3n+1) {
  grid-column: span 7;
  height: fit-content;
}
.album-card:nth-child(3n+2) {
  grid-column: span 5;
  margin-top: 40px;
  height: fit-content;
}
.album-card:nth-child(3n+3) {
  grid-column: span 5;
/*  margin-top: -60px;*/
  height: fit-content;
}
/* Se c'è un 4o item nella riga, allarghiamo */
.album-card:nth-child(3n+1):nth-child(n+4) {
  grid-column: span 5;
  height: fit-content;
}
.album-card:nth-child(3n+2):nth-child(n+5) {
  grid-column: span 7;
  margin-top: 60px;
  height: fit-content;
}

.album-card__img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.album-card:nth-child(3n+1) .album-card__img {
  aspect-ratio: 3 / 4;
}
.album-card:nth-child(3n+2) .album-card__img {
  aspect-ratio: 1 / 1;
}
.album-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease, opacity 0.5s ease;
  opacity: 0;
}
.album-card__img img.loaded {
  opacity: 1;
}
.album-card:hover .album-card__img img {
  transform: scale(1.05);
}
.album-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
  color: #fff;
}
.album-card__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.album-card__count {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
@media (max-width: 768px) {
  .album-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  /* Il ".album-grid" davanti non è decorativo: senza, questo reset perde.
     Le regole del desktop usano due pseudo-classi
     (.album-card:nth-child(3n+1):nth-child(n+4)) e hanno quindi specificità
     più alta di .album-card:nth-child(n). Le carte 4, 5, 7, 8... restavano
     larghe 5 o 7 colonne dentro una griglia da 2: la griglia creava colonne
     implicite per contenerle e le carte normali venivano schiacciate a
     larghezza zero, sparendo dalla pagina. */
  .album-grid .album-card:nth-child(n) {
    grid-column: span 1;
    margin-top: 0;
  }
  .album-card__info {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   SERVICE GALLERY (masonry)
   ======================================== */
.srv-gallery {
  columns: 3;
  column-gap: 16px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.srv-gallery.is-ready {
  opacity: 1;
}
.srv-gallery__item {
  display: block;
  margin-bottom: 16px;
  break-inside: avoid;
  overflow: hidden;
  border-radius:0;
  cursor: pointer;
}
.srv-gallery__item img {
  width: 100%;
  display: block;
  /* Mancava la transizione: lo zoom scattava di colpo invece di accompagnare
     come fanno le copertine degli album. Stessa curva e stessa scala. */
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.srv-gallery__item:hover img {
  transform: scale(1.05);
}
@media (max-width: 900px) {
  .srv-gallery { columns: 2; }
}
@media (max-width: 500px) {
  .srv-gallery { columns: 1; }
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius:0;
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  padding: 16px;
  z-index: 2;
  transition: color 0.3s;
}
.lightbox__arrow:hover { color: #fff; }
.lightbox__arrow--prev { left: 16px; }
.lightbox__arrow--next { right: 16px; }

/* ========================================
   PARALLAX GALLERY
   ======================================== */
.pgallery {
  padding-top: calc(var(--header-h) + 40px);
  overflow: hidden;
}
.pgallery__header {
  text-align: center;
  padding: 60px 20px 40px;
}
.pgallery__canvas {
  position: relative;
  padding: 0 20px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.pgallery__item {
  position: relative;
  display: block;
  margin-bottom: 80px;
  will-change: transform;
  transition: opacity 0.4s;
}
.pgallery__item:hover { opacity: 0.85; }
.pgallery__img-wrap {
  overflow: hidden;
  border-radius:0;
  line-height: 0;
}
.pgallery__img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pgallery__item:hover .pgallery__img-wrap img {
  transform: scale(1.03);
}
.pgallery__placeholder {
  width: 100%;
  padding-bottom: 66%;
  background: var(--color-border);
  border-radius:0;
}
.pgallery__title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 700;
  color: #8c857a;
  margin-top: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .pgallery__item {
    left: 5% !important;
    width: 90% !important;
    margin-bottom: 50px;
  }
}

/* ========================================
   BLOG GRID
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.blog-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.blog-card::after {
  display: none !important;
}
.blog-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
}
.blog-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.blog-card:hover .blog-card__img img {
  transform: scale(1.04);
}
.blog-card__body {
  padding: 24px;
}
.blog-card__meta {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brown);
  margin-bottom: 10px;
}
.blog-card__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #8c857a;
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 16px;
}
.blog-card__link {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-green);
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ========================================
   PARTNERS GRID
   ======================================== */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 30px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius:0;
  transition: box-shadow var(--transition);
}
.partner-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.partner-card img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius:0;
}
.partner-card span {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
  text-align: center;
}

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

