/*
Theme Name: Ortolano Sibillini Theme
Theme URI: https://www.protocollicreativi.it/
Author: Protocolli Creativi - Digital Innovation
Author URI: https://www.protocollicreativi.it/
Description: Tema custom per L'Ortolano dei Sibillini
Version: 1.1.1
Text Domain: ortolano-sibillini
Tested up to: 6.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: LICENSE
Tags: custom-background, custom-menu, featured-images, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

/* ============================================================
   L'ORTOLANO DEI SIBILLINI — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,600&family=Lato:wght@300;400;700;900&display=swap');

/* ===========================
   CSS VARIABLES & RESET
=========================== */
:root {
  --primary:       #4A6B53;
  --accent:        #D97443;
  --bg:            #FAFAF6;
  --bg-secondary:  #F0F4F1;
  --text:          #2B3A30;
  --text-light:    #6b7f72;
  --white:         #ffffff;
  --shadow:        0 4px 20px rgba(43, 58, 48, 0.10);
  --shadow-hover:  0 10px 32px rgba(43, 58, 48, 0.18);
  --radius:        10px;
  --radius-sm:     6px;
  --transition:    0.3s ease;
  --max-width:     1200px;
  --header-height: 100px;
  --font-heading:  'Playfair Display', Georgia, serif;
  --font-body:     'Lato', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-size: 17px;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }

p {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  line-height: 1.8;
}
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary); }

img { max-width: 100%; display: block; }
ul  { list-style: none; }

/* ===========================
   UTILITIES
=========================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section     { padding: 5rem 0; }
.section-alt { background-color: var(--bg-secondary); }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-title p {
  color: var(--text-light);
  max-width: 620px;
  margin: 0.75rem auto 0;
  font-size: 1.05rem;
}

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-size: 0.97rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  letter-spacing: 0.2px;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background-color: #c0622e;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 116, 67, 0.38);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-ghost:hover {
  background-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}

/* Ghost bianco — per bottoni su sfondo foto scuro (hero) */
.btn-hero-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-hero-ghost:hover {
  background: rgba(255,255,255,0.28);
  color: #fff;
  transform: translateY(-2px);
}

/* ===========================
   HEADER & NAVIGATION
=========================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg);
  border-bottom: 1px solid rgba(74, 107, 83, 0.15);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(43, 58, 48, 0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.15;
}

.nav-logo-main {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-heading);
}

.nav-logo-sub {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active,
.nav-menu .current-menu-item > a {
  color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* WordPress genera le stesse prop su <a> anche senza classe nav-link */
.nav-menu li a {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 400;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition);
}
.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background-color: var(--accent);
  transition: width var(--transition);
  border-radius: 2px;
}

/* — Nav CTA telefono — */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background-color: var(--accent);
  color: var(--white);
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-body);
  white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
}

.nav-cta:hover {
  background-color: #c0622e;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(217, 116, 67, 0.4);
}

.nav-cta svg {
  width: 1rem;
  height: 1rem;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* — Hamburger — */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ===========================
   HERO — HOME
=========================== */
.hero {
  background-color: var(--primary);
  color: var(--white);
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('img/hero-bg.jpg') center / cover no-repeat;
  opacity: 0.18;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,107,83,0.9) 0%, rgba(43,58,48,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  font-family: Georgia, serif;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.87);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* — Hero pagine interne — */
.page-hero {
  background-color: var(--primary);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(74,107,83,0.95) 0%, rgba(43,58,48,0.9) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.breadcrumb {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}

.breadcrumb a {
  color: rgba(255,255,255,0.65);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--white); }

.breadcrumb span { margin: 0 0.4rem; }

/* ===========================
   FILOSOFIA
=========================== */
.philosophy-wrap {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.philosophy-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: block;
}

.philosophy-text {
  font-size: 1.07rem;
  line-height: 1.9;
  color: var(--text);
}

/* ===========================
   BOX EMOZIONALE
=========================== */
.emotional-box {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 2.5rem 3rem;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.emotional-box::before {
  content: '\201C';
  font-size: 7rem;
  color: var(--accent);
  opacity: 0.12;
  position: absolute;
  top: -0.5rem;
  left: 1.2rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.emotional-box p {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.9;
  color: var(--text);
  position: relative;
  z-index: 1;
}

/* ===========================
   GALLERY GRID (HOME)
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 4/3;
  background-color: #d6e0d8;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(43,58,48,0.82) 0%, transparent 100%);
  color: var(--white);
  padding: 1.5rem 0.9rem 0.75rem;
  font-size: 0.82rem;
  font-style: italic;
  transform: translateY(100%);
  transition: transform var(--transition);
}

.gallery-item:hover .gallery-caption {
  transform: translateY(0);
}

.gallery-cta {
  text-align: center;
}

/* ===========================
   TIMELINE (CHI SIAMO)
=========================== */

/* Sezione con sfondo B&W "vedo e non vedo" */
.timeline-section {
  position: relative;
  overflow: hidden;
  background-color: #F2EAD8;   /* pergamena calda */
}

.timeline-section > .container {
  position: relative;
  z-index: 1;
}

.bw-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: grayscale(100%) sepia(20%);
  opacity: 0.13;
  z-index: 0;
}

.timeline {
  position: relative;
  padding: 1rem 0 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 3px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 70px 1fr;
  align-items: start;
  margin-bottom: 3.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

/* Nodo centrale */
.timeline-node {
  display: flex;
  justify-content: center;
  padding-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 22px;
  height: 22px;
  background-color: var(--accent);
  border-radius: 50%;
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent);
  flex-shrink: 0;
}

/* Card contenuto */
.timeline-content {
  background-color: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
  position: relative;
  transition: box-shadow var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-hover);
}

.timeline-date {
  display: inline-block;
  background-color: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.6rem;
  font-family: Georgia, serif;
}

.timeline-content h3 {
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.timeline-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

/* Frecce */
.timeline-left::after,
.timeline-right::after {
  content: '';
  position: absolute;
  top: 1.8rem;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-left::after {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--bg);
}

.timeline-right::after {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--bg) transparent transparent;
}

/* Spacer lato vuoto */
.timeline-spacer { /* vuoto */ }

/* ===========================
   GALLERY STORICA (CHI SIAMO)
=========================== */
.gallery-history {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.gallery-history-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: #d6e0d8;
  transition: box-shadow var(--transition);
}

.gallery-history-item:hover {
  box-shadow: var(--shadow-hover);
}

.gallery-history-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.55s ease;
  display: block;
}

.gallery-history-item:hover img {
  transform: scale(1.04);
}

.gallery-history-caption {
  padding: 1rem 1.25rem;
  background-color: var(--bg);
}

.gallery-history-caption h4 {
  font-size: 0.97rem;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.gallery-history-caption p {
  font-size: 0.83rem;
  color: var(--text-light);
  margin-bottom: 0;
}

/* ===========================
   CARDS (PRODOTTI)
=========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background-color: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
  display: block;
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.card p {
  color: #556b5a;
  font-size: 0.97rem;
  line-height: 1.8;
}

.card-tag {
  display: inline-block;
  margin-top: 1.25rem;
  background-color: var(--bg-secondary);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
}

/* ===========================
   SERVIZI — CARD ORIZZONTALI
=========================== */
.services-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card-h {
  display: grid;
  grid-template-columns: 42% 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  border-top: 4px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card-h:hover {
  border-top-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.service-card-h-img {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.service-card-h-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.service-card-h:hover .service-card-h-img img {
  transform: scale(1.06);
}

.service-card-h-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  z-index: 1;
}

.service-card-h-text {
  padding: 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
}

.service-card-h-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
}

.service-card-h-text h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  color: var(--text);
  line-height: 1.25;
  margin: 0;
}

.service-card-h-text h3 em {
  font-style: italic;
  color: var(--primary);
}

.service-card-h-text p {
  font-size: 0.97rem;
  line-height: 1.82;
  color: #556b5a;
  margin: 0;
}

.service-card-h-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.service-card-h-tag {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(74,107,83,0.1);
  border-radius: 20px;
  padding: 0.25rem 0.8rem;
  font-weight: 700;
}

/* ===========================
   CONTATTI — NUOVA STRUTTURA
=========================== */

/* Page hero con sfondo B&W */
.page-hero--img {
  position: relative;
  overflow: hidden;
  text-align: center;
}

/* Riduce l'overlay scuro per far trasparire la foto */
.page-hero--img::after {
  background: linear-gradient(135deg, rgba(74,107,83,0.78) 0%, rgba(43,58,48,0.72) 100%);
}

.page-hero--img .bw-bg {
  filter: grayscale(100%) sepia(15%);
  opacity: 0.55;
  z-index: 0;
}
.page-hero--img::after { z-index: 1; }
.page-hero--img .container { position: relative; z-index: 2; }
.page-hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.1rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

/* Form section — sfondo pergamena */
.contact-form-section {
  background: #F2EAD8;
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.contact-form-section > .bw-bg {
  filter: grayscale(100%) sepia(20%);
  opacity: 0.07;
}

.contact-form-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(43,58,48,0.12);
  padding: 3.5rem 4rem;
  max-width: 760px;
  margin: 0 auto;
}

.contact-form-card-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.contact-form-card-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
}
.contact-form-card-header h2 em { font-style: italic; color: var(--primary); }
.contact-form-card-header p { color: #6a7e70; font-size: 1rem; line-height: 1.7; margin-top: 0.5rem; }

.form-divider {
  width: 48px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1.25rem auto;
}

/* Form fields */
.cform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.cform-group { margin-bottom: 1.25rem; }

.cform-group label {
  display: block;
  font-size: 0.76rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 0.4rem;
}
.label-opt {
  font-weight: 400;
  color: #8a9e90;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.76rem;
}

.cform-group input,
.cform-group select,
.cform-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(74,107,83,0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem; color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.cform-group input:focus,
.cform-group select:focus,
.cform-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(74,107,83,0.1);
  background: #fff;
}
.cform-group select { appearance: none; cursor: pointer; }
.cform-group textarea { resize: vertical; min-height: 130px; }

.cform-submit svg {
  width: 1rem; height: 1rem;
  stroke: #fff; fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 0.3rem;
}

.cform-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.cform-privacy {
  font-size: 0.82rem; color: #8a9e90; line-height: 1.6;
}
.cform-privacy a { color: var(--primary); text-decoration: none; }
.cform-privacy a:hover { color: var(--accent); }

/* Info strip verde */
.contact-info-strip {
  background: var(--primary);
  padding: 3.5rem 1.5rem;
}
.contact-info-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.contact-info-strip-item {
  text-align: center;
}
.contact-info-strip-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.contact-info-strip-icon svg {
  width: 1.3rem; height: 1.3rem;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-info-strip-item strong {
  display: block;
  font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}
.contact-info-strip-item span,
.contact-info-strip-item a {
  font-size: 0.97rem; color: #fff;
  text-decoration: none; line-height: 1.6; display: block;
}
.contact-info-strip-item a:hover { color: #f0c9a8; }

/* Mappa */
.contact-map { background: var(--bg-secondary); }
.contact-map iframe { display: block; width: 100%; height: 420px; border: 0; }
.contact-map .map-placeholder {
  height: 420px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 0.75rem;
  color: var(--primary);
}
.contact-map .map-placeholder svg {
  width: 2.5rem; height: 2.5rem;
  stroke: var(--primary); fill: none; stroke-width: 1.5;
}
.contact-map .map-placeholder p { font-size: 1rem; font-weight: 700; }
.contact-map .map-placeholder small { font-size: 0.85rem; color: #6a7e70; }

/* Nota sisma */
.contact-note-section {
  padding: 2.5rem 1.5rem;
  background: var(--bg);
}

/* ===========================
   CONTATTI — vecchio (non usato)
=========================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 0.5rem;
}

.contact-intro {
  font-size: 0.97rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background-color: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item-text strong {
  display: block;
  color: var(--primary);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 0.2rem;
}

.contact-item-text span,
.contact-item-text a {
  color: var(--text);
  font-size: 1rem;
  font-style: normal;
}

.contact-item-text a:hover {
  color: var(--accent);
}

.note-box {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}

.note-box strong {
  color: var(--accent);
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background-color: #d6e0d8;
  height: 420px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #d6e0d8 0%, #c8d8cb 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-align: center;
  gap: 0.5rem;
}

.map-placeholder-icon { font-size: 3rem; }
.map-placeholder p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.map-placeholder small { font-size: 0.78rem; opacity: 0.7; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background-color: var(--text);
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 0;
}

.footer-since {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.73rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.footer-nav h4,
.footer-info h4 {
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.1rem;
}

.footer-nav li,
.footer-info li {
  margin-bottom: 0.55rem;
}

.footer-nav a {
  color: rgba(255,255,255,0.68);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--accent); }

.footer-info li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.68);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.38);
}

/* ===========================
   RESPONSIVE — TABLET (≤ 1024px)
=========================== */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  /* Timeline: passa a layout a sinistra */
  .timeline::before {
    left: 24px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 60px 1fr;
  }

  .timeline-left,
  .timeline-right {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-node {
    grid-column: 1;
    grid-row: 1;
    padding-top: 1.4rem;
  }

  .timeline-spacer { display: none; }

  .timeline-left::after,
  .timeline-right::after {
    right: auto;
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--bg) transparent transparent;
  }
}

/* ===========================
   RESPONSIVE — MOBILE (≤ 768px)
=========================== */
/* Hamburger menu attivo fino a 1080px */
@media (max-width: 1080px) {
  .hamburger { display: flex; }
  .nav-right  { display: none; }   /* nasconde il container desktop (menu + cta) */
}

/* ===========================
   MOBILE MENU — FULL SCREEN (Proposta B)
   Foto B&W sfondo + overlay verde caldo.
   Slide da sinistra. Link Playfair grandi.
=========================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Foto di sfondo B&W — gestita dinamicamente via PHP */
.mobile-menu-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.35;
  z-index: 0;
}

/* Overlay gradiente verde caldo */
.mobile-menu::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(43,58,48,0.94) 0%, rgba(74,107,83,0.88) 100%);
  z-index: 0;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.mobile-menu > *:not(.mobile-menu-bg):not(.menu-close):not(.menu-year) { position: relative; z-index: 1; }

/* X — sempre in alto a destra */
.menu-close {
  position: absolute;
  top: calc(var(--header-height) / 2 - 26px); right: 1.5rem;
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff; font-size: 1.5rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: all var(--transition);
  z-index: 2; line-height: 1;
}
.menu-close:hover { background: var(--accent); border-color: var(--accent); }

/* Eyebrow */
.menu-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}
.mobile-menu.active .menu-eyebrow { opacity: 1; transform: none; }

/* Links */
.menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.menu-links li {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.menu-links li:first-child { border-top: 1px solid rgba(255,255,255,0.08); }

.mobile-menu.active .menu-links li:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.15s; }
.mobile-menu.active .menu-links li:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.22s; }
.mobile-menu.active .menu-links li:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.29s; }
.mobile-menu.active .menu-links li:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.36s; }

.menu-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  padding: 0.75rem 0;
  transition: color var(--transition), padding-left var(--transition);
}

.menu-links a .menu-arrow {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--accent);
}

.menu-links a:hover,
.menu-links a.active,
.menu-links .current-menu-item > a { color: #fff; padding-left: 0.5rem; }
.menu-links a:hover .menu-arrow,
.menu-links a.active .menu-arrow,
.menu-links .current-menu-item > a .menu-arrow { opacity: 1; transform: none; }
.menu-links a.active,
.menu-links .current-menu-item > a { color: var(--accent); }

/* Footer menu */
.menu-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease 0.45s, transform 0.4s ease 0.45s;
}
.mobile-menu.active .menu-footer { opacity: 1; transform: none; }

.menu-footer-cta {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent); color: #fff;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 1rem; font-weight: 700;
  text-decoration: none; align-self: flex-start;
  transition: background var(--transition), transform var(--transition);
}
.menu-footer-cta svg {
  width: 1rem; height: 1rem;
  stroke: #fff; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.menu-footer-cta:hover { background: #c0622e; transform: translateY(-2px); }

.menu-footer-addr {
  font-size: 0.78rem; color: rgba(255,255,255,0.4);
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* Anno decorativo */
.menu-year {
  position: absolute;
  bottom: -1rem; right: -0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(7rem, 22vw, 14rem);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

@media (max-width: 768px) {
  .hero            { padding: 5.5rem 0 4rem; }
  .section         { padding: 3.5rem 0; }

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

  .services-img-grid { grid-template-columns: 1fr; }
  .service-card-h    { grid-template-columns: 40% 1fr; }
  .service-card-h-img { min-height: 240px; }

  .contact-form-card { padding: 2.5rem 2rem; }
  .cform-row { grid-template-columns: 1fr; }
  .contact-info-strip-grid { grid-template-columns: repeat(2, 1fr); }

  .emotional-box {
    padding: 2rem 1.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .map-container { height: 300px; }
}

/* ===========================
   RESPONSIVE — SMALL (≤ 480px)
=========================== */
@media (max-width: 480px) {
  .container { padding: 0 1rem; }

  .card    { padding: 1.75rem; }
  .btn     { padding: 0.75rem 1.6rem; font-size: 0.9rem; }

  .hero h1 { font-size: 2rem; }

  .service-card-h { grid-template-columns: 1fr; }
  .service-card-h-img { min-height: 200px; }

  .contact-form-card { padding: 2rem 1.25rem; }
  .contact-info-strip-grid { grid-template-columns: 1fr; }
  .cform-bottom { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   NUOVI COMPONENTI — PROPOSTE HOMEPAGE
   ============================================================ */

/* ===========================
   SVG ICONS (minimal, mono)
=========================== */
.icon-svg {
  width: 3rem;
  height: 3rem;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
  margin-bottom: 1.25rem;
}
.icon-svg-accent { stroke: var(--accent); }
.icon-svg-white  { stroke: var(--white); }
.icon-svg-lg { width: 4rem; height: 4rem; }

/* ===========================
   HERO PHOTO (proposte)
=========================== */
.hero-photo {
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
  color: var(--white);
  overflow: hidden;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(43,58,48,0.85) 0%,
    rgba(43,58,48,0.45) 45%,
    rgba(43,58,48,0.15) 100%
  );
}

/* Wrapper hero che replica esattamente il .nav per allineare il testo al logo */
.hero-nav-align {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-photo-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.hero-photo h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
}

.hero-photo .subtitle {
  font-size: clamp(1.05rem, 2vw, 1.9rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  font-family: var(--font-heading);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-photo .hero-badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}

/* ===========================
   NUMERI STRIP
=========================== */
.numbers-strip {
  background-color: var(--primary);
  padding: 3.5rem 0;
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.number-divider {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: center;
  height: 60px;
  display: none; /* shown via JS or manually if needed */
}

.number-item .num {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  color: #fff;
  display: block;
  line-height: 1;
  margin-bottom: 0.9rem;
}

.number-item .num-sub { display: block; }

.number-item .num-label {
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 700;
}

.number-item .num-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--white);
  margin-top: 0.3rem;
  font-style: italic;
  font-family: var(--font-heading);
}

/* ===========================
   STORIA PREVIEW (2 col)
=========================== */
.story-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.story-preview-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  position: relative;
}

.story-preview-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.story-preview-img:hover img { transform: scale(1.04); }

/* Immagine a destra, testo a sinistra */
.story-preview--reverse .story-preview-text { order: 1; }
.story-preview--reverse .story-preview-img  { order: 2; }

.story-preview-img .img-year {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
}

.story-preview-text .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.story-preview-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ===========================
   GALLERY ASIMMETRICA (5 foto)
=========================== */
.asym-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 290px 290px;
  gap: 0.75rem;
}

.asym-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.asym-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.asym-item:hover img { transform: scale(1.06); }

.asym-item:first-child { grid-row: 1 / 3; }

.asym-item .asym-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(43,58,48,0.8) 0%, transparent 100%);
  color: white;
  padding: 1.5rem 0.9rem 0.7rem;
  font-size: 0.82rem;
  font-style: italic;
  font-family: var(--font-heading);
  transform: translateY(100%);
  transition: transform var(--transition);
}

.asym-item:hover .asym-caption { transform: translateY(0); }

/* ===========================
   PRODOTTI CARD CON IMMAGINE
=========================== */
.products-img-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-img-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 360px;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.55s ease;
}

.product-img-card:hover img { transform: scale(1.07); }

.product-img-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(43,58,48,0.92) 0%,
    rgba(43,58,48,0.35) 55%,
    transparent 100%
  );
  z-index: 1;
  transition: background var(--transition);
}

.product-img-card:hover::after {
  background: linear-gradient(to top,
    rgba(43,58,48,0.96) 0%,
    rgba(43,58,48,0.5) 65%,
    transparent 100%
  );
}

.product-img-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 1.75rem 1.5rem;
  color: var(--white);
}

.product-img-tag {
  display: inline-block;
  background-color: var(--accent);
  color: white;
  font-size: 0.68rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.product-img-content h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.product-img-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ===========================
   SECTION CTA (verde pieno)
=========================== */
.section-cta {
  background-color: var(--primary);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.section-cta-content { position: relative; z-index: 1; }

.section-cta h2 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.section-cta p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   SPLIT SECTION (Proposta B)
=========================== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  align-items: stretch;
}

.split-section-img {
  overflow: hidden;
  position: relative;
}

.split-section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.split-section:hover .split-section-img img { transform: scale(1.04); }

.split-section-text {
  padding: 5rem 4.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg);
}

.split-section-text.bg-secondary { background-color: var(--bg-secondary); }

.split-section.reverse .split-section-img { order: 2; }
.split-section.reverse .split-section-text { order: 1; }

.split-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  display: block;
  margin-bottom: 0.75rem;
}

.split-section-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  margin-bottom: 1.25rem;
}

.split-section-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}

/* ===========================
   STATEMENT (Proposta B)
=========================== */
.statement-section {
  padding: 7rem 0;
  text-align: center;
  background-color: var(--text);
  background-size: cover;
  background-position: center;
  background-blend-mode: luminosity;
  position: relative;
  overflow: hidden;
}

.statement-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43, 58, 48, 0.78);
}

.statement-content { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }

.statement-line {
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  margin: 1.5rem auto;
  border-radius: 2px;
}

.statement-text {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-style: italic;
  color: var(--white);
  line-height: 1.65;
  font-weight: 400;
}

/* ===========================
   GALLERY STRIP (Proposta B)
=========================== */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 300px);
  gap: 0.5rem;
}

.strip-item {
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
  cursor: pointer;
}

.strip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.strip-item:hover img { transform: scale(1.06); }

.strip-item .strip-caption {
  position: absolute;
  inset: 0;
  background: rgba(43,58,48,0);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  transition: background var(--transition);
}

.strip-item:hover .strip-caption {
  background: rgba(43,58,48,0.45);
}

.strip-caption span {
  color: white;
  font-size: 0.82rem;
  font-style: italic;
  font-family: var(--font-heading);
  opacity: 0;
  transition: opacity var(--transition);
}

.strip-item:hover .strip-caption span { opacity: 1; }

/* ===========================
   PRODOTTI FEATURE LIST (Prop B)
=========================== */
.products-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.product-feature-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg);
  transition: all var(--transition);
}

.product-feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.product-feature-img {
  overflow: hidden;
}

.product-feature-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.product-feature-card:hover .product-feature-img img { transform: scale(1.07); }

.product-feature-text {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-feature-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-feature-text p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ===========================
   HERO FULL SCREEN (Proposta B)
=========================== */
.hero-full {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-full::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(43,58,48,0.75) 0%,
    rgba(43,58,48,0.55) 50%,
    rgba(43,58,48,0.8) 100%
  );
}

.hero-full-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  padding: 2rem;
}

.hero-full h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-full .subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,0.85);
  font-style: italic;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-full .hero-badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  margin-bottom: 2rem;
  font-weight: 700;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.6); }
}

/* ===========================
   RESPONSIVE — NUOVI COMPONENTI
=========================== */
@media (max-width: 1024px) {
  .products-img-grid         { grid-template-columns: repeat(2, 1fr); }
  .story-preview             { grid-template-columns: 1fr; gap: 2.5rem; }
  .asym-gallery              { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 240px); }
  .asym-item:first-child     { grid-row: 1 / 2; }
  .split-section             { grid-template-columns: 1fr; }
  .split-section-img         { min-height: 380px; position: relative; }
  .split-section-text        { padding: 3.5rem 2.5rem; }
  .split-section.reverse .split-section-img { order: 1; }
  .split-section.reverse .split-section-text { order: 2; }
  .gallery-strip             { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 260px); }
  .products-feature-grid     { grid-template-columns: 1fr; }
  .numbers-grid              { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .products-img-grid         { grid-template-columns: 1fr; }
  .asym-gallery              { grid-template-columns: 1fr; grid-template-rows: repeat(5, 240px); }
  .asym-item:first-child     { grid-row: 1 / 2; }
  .split-section-text        { padding: 2.5rem 1.5rem; }
  .gallery-strip             { grid-template-columns: 1fr; grid-template-rows: repeat(6, 240px); }
  .numbers-grid              { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-photo                { min-height: 80vh; padding-bottom: 4rem; }
  .product-feature-card      { grid-template-columns: 120px 1fr; }
}


/* ===========================
   PROMO BAND
=========================== */
.promo-band {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  padding: 7rem 0;
}

.promo-band-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(43, 58, 48, 0.92) 0%,
    rgba(43, 58, 48, 0.75) 50%,
    rgba(43, 58, 48, 0.55) 100%
  );
}

.promo-band-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.promo-band-eyebrow {
  display: inline-block;
  font-size: 0.73rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
}

.promo-band-content h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.promo-band-content h2 em {
  color: rgba(255, 255, 255, 0.85);
}

.promo-band-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .promo-band          { padding: 5rem 0; }
  .promo-band-content  { max-width: 100%; }
}

/* ===========================
   CONTACT FORM 7 — integrazione stili tema
=========================== */
.wpcf7 { width: 100%; }

/* Rimuove bordo rosso CF7 default sugli invalid */
.wpcf7 .wpcf7-form-control.wpcf7-not-valid {
  border-color: #d63638;
}

/* Errori di validazione inline */
.wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #d63638;
  margin-top: 0.3rem;
  display: block;
}

/* Messaggio risposta (successo / errore) */
.wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  border: none !important;
}
.wpcf7-form.sent .wpcf7-response-output {
  background: rgba(74,107,83,0.1);
  color: var(--primary);
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  background: rgba(214,54,56,0.08);
  color: #d63638;
}
.wpcf7-form.spam .wpcf7-response-output {
  background: rgba(217,116,67,0.1);
  color: var(--accent);
}

/* Spinner CF7 accanto al submit */
.wpcf7-spinner {
  display: none !important;
}

/* Submit button CF7 — input[type=submit] con le classi btn btn-primary */
.wpcf7 input[type="submit"].btn {
  display: inline-block;
  cursor: pointer;
  border: none;
  width: auto;
}
