
/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  --color-bg-primary: #F3EDE4;    /* Beige chiaro */
  --color-bg-secondary: #FAF7F2;  /* Warm tint background */
  --color-white: #FFFFFF;         /* Bianco puro */
  --color-primary: #7A8664;       /* Verde oliva */
  --color-primary-dark: #646E51;  /* Darker olive for hover state */
  --color-taupe: #D1C7BD;         /* Tortora chiaro */
  --color-charcoal: #2C2C2C;      /* Testi in grigio antracite */
  --color-charcoal-light: #5A5A5A;/* Sottotitoli / Dettagli */
  --color-border: #E5DEC9;        /* Delicate border tone */
  --color-error: #B35E5E;         /* Elegant red for validation errors */

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Montserrat', Helvetica, Arial, sans-serif;
  --font-signature: 'Alex Brush', cursive;

  --transition-smooth: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.3s ease;
  
  --container-max-width: 1200px;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

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

ul {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ==========================================================================
   Utility Classes & Layout
   ========================================================================== */
.container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
}

.section {
  padding: 100px 0;
  position: relative;
}

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

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

.section-subtitle {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--color-primary);
  margin-bottom: 12px;
  font-weight: 500;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  color: var(--color-charcoal);
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--color-taupe);
  margin: 20px auto 0;
}

.section-title.left-align::after {
  margin: 20px 0 0 0;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 14px 34px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  position: relative;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  box-shadow: 0 4px 15px rgba(122, 134, 100, 0.2);
}

.btn-outline {
  border-color: var(--color-white);
  color: var(--color-white);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

.btn-outline-dark {
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}

.btn-outline-dark:hover {
  background-color: var(--color-charcoal);
  color: var(--color-bg-primary);
}

/* ==========================================================================
   Floating Widgets (WhatsApp)
   ========================================================================== */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 999;
  cursor: pointer;
  transition: var(--transition-fast);
}

.whatsapp-floating:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.whatsapp-floating svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background-color: var(--color-white);
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Logo Setup */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.logo-img {
  max-height: 58px;
  width: auto;
  display: block;
  transition: filter var(--transition-fast), max-height var(--transition-smooth);
  filter: brightness(0) invert(1);
}

.header.scrolled .logo-img {
  filter: none;
  max-height: 46px;
}

.header.scrolled .logo {
  color: var(--color-charcoal);
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.38em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--color-taupe);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: nowrap;
}

.nav-list {
  display: flex;
  gap: 22px;
  flex-wrap: nowrap;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 5px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-white);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  width: 100%;
}

/* Scrolled Header Nav Link Color overrides */
.header.scrolled .nav-link {
  color: var(--color-charcoal-light);
}

.header.scrolled .nav-link::after {
  background-color: var(--color-primary);
}

.header.scrolled .nav-link:hover {
  color: var(--color-primary);
}

/* Header Action Button */
.header-btn {
  padding: 10px 18px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  border-color: var(--color-white);
  white-space: nowrap;
}

.header.scrolled .header-btn {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: var(--color-white);
}

.header.scrolled .header-btn:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1px;
  width: 100%;
  background-color: var(--color-white);
  transition: var(--transition-fast);
}

.header.scrolled .nav-toggle span {
  background-color: var(--color-charcoal);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  animation: kenburns 25s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}

.hero .container {
  z-index: 2;
  max-width: 900px;
}

.hero-pre {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  margin-bottom: 20px;
  color: var(--color-taupe);
  animation: fadeInUp 1s ease forwards;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-description {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 300;
  max-width: 700px;
  margin: 0 auto 40px;
  opacity: 0.9;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  animation: fadeInUp 1.4s ease forwards;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  animation: fadeInUp 1.6s ease forwards;
}

/* Hero scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}

.scroll-indicator span::after {
  content: "";
  display: block;
  width: 100%;
  height: 50%;
  background-color: var(--color-white);
  position: absolute;
  top: -50%;
  left: 0;
  animation: scrollDownBar 2s infinite ease-in-out;
}

/* ==========================================================================
   Numbers Section (Stats immediately below Hero)
   ========================================================================== */
.numbers-section {
  background-color: var(--color-white);
  padding: 50px 0;
  border-bottom: 1px solid var(--color-border);
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--color-primary);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-charcoal-light);
  font-weight: 500;
}

/* ==========================================================================
   Vision Section (Trust)
   ========================================================================== */
.vision-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.vision-content {
  padding-right: 20px;
}

.vision-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.8;
  font-style: italic;
  color: var(--color-charcoal-light);
}

.vision-text p {
  margin-bottom: 25px;
}

.vision-image-wrapper {
  position: relative;
}

.vision-img-container {
  position: relative;
}

.vision-img-container::after {
  content: "";
  position: absolute;
  top: 30px;
  left: -30px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-taupe);
  z-index: 1;
  pointer-events: none;
  border-radius: 2px;
}

.vision-img-frame {
  height: 500px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   Chi è Ilaria Section (Biography)
   ========================================================================== */
.bio-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.bio-image-wrapper {
  position: relative;
}

.bio-img-container {
  position: relative;
}

.bio-img-container::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-taupe);
  z-index: 1;
  pointer-events: none;
  border-radius: 2px;
}

.bio-image-wrapper img {
  border-radius: 2px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: auto;
}

.bio-content {
  padding-left: 20px;
}

.bio-text {
  font-size: 1.05rem;
  color: var(--color-charcoal-light);
  margin-bottom: 30px;
}

.bio-text p {
  margin-bottom: 20px;
}

.bio-signature {
  margin-top: 40px;
}

.signature-name {
  font-family: var(--font-signature);
  font-size: 2.8rem;
  color: var(--color-primary);
  line-height: 1;
}

.signature-title {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-taupe);
  margin-top: 5px;
}

/* ==========================================================================
   Metodo di Lavoro Section (Timeline)
   ========================================================================== */
.timeline {
  position: relative;
  margin: 60px auto 0;
  max-width: 1000px;
  padding: 20px 0;
}

/* Connective vertical line in center (Desktop) */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: var(--color-taupe);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 60px;
  position: relative;
  width: 100%;
}

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

.timeline-panel {
  width: 44%;
  background-color: var(--color-white);
  padding: 30px;
  border-radius: 2px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.02);
  border: 1px solid var(--color-border);
  position: relative;
}

/* Timeline central bullet */
.timeline-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-bg-primary);
  border: 2px solid var(--color-primary);
  position: absolute;
  left: 50%;
  top: 35px;
  transform: translateX(-50%);
  z-index: 10;
}

.timeline-number {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-primary);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 10px;
  font-weight: 500;
}

.timeline-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--color-charcoal);
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  line-height: 1.6;
}

/* Alternating layout left/right items on desktop */
.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

/* Triangle pointers */
.timeline-panel::after {
  content: "";
  position: absolute;
  top: 32px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-panel::after {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--color-white);
}

.timeline-item:nth-child(even) .timeline-panel::after {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--color-white) transparent transparent;
}

/* Add thin border representation for the pointer triangle shadows */
.timeline-panel::before {
  content: "";
  position: absolute;
  top: 31px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-panel::before {
  right: -11px;
  border-width: 11px 0 11px 11px;
  border-color: transparent transparent transparent var(--color-border);
  z-index: -1;
}

.timeline-item:nth-child(even) .timeline-panel::before {
  left: -11px;
  border-width: 11px 11px 11px 0;
  border-color: transparent var(--color-border) transparent transparent;
  z-index: -1;
}

/* ==========================================================================
   Servizi Section
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.service-card {
  background-color: var(--color-white);
  padding: 60px 45px;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(122, 134, 100, 0.07);
  border-color: var(--color-primary);
}

.service-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--color-bg-primary);
  padding-bottom: 25px;
}

.service-title {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.service-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-taupe);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
  margin-bottom: 35px;
  flex-grow: 1;
}

.service-features-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-charcoal);
  font-weight: 500;
  margin-bottom: 15px;
}

.service-features {
  margin-bottom: 40px;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.service-card .btn {
  width: 100%;
  text-align: center;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 4 / 3;
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(122, 134, 100, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--color-white);
  text-align: center;
  z-index: 2;
}

.gallery-zoom-icon {
  margin-bottom: 15px;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  transition-delay: 0.1s;
}

.gallery-caption {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  transition-delay: 0.2s;
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

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

/* ==========================================================================
   Fullscreen Lightbox Modal
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(44, 44, 44, 0.97);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.05);
}

.lightbox-caption {
  color: var(--color-white);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  margin-top: 20px;
  text-align: center;
  max-width: 600px;
}

.lightbox-btn {
  position: absolute;
  color: var(--color-white);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
}

.lightbox-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.lightbox-close {
  top: 30px;
  right: 30px;
}

.lightbox-prev {
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==========================================================================
   Testimonianze Section (Social Proof)
   ========================================================================== */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.testimonial-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 40px 30px;
  border-radius: 2px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-charcoal-light);
  line-height: 1.6;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-quote::before {
  content: "“";
  font-size: 4rem;
  color: var(--color-taupe);
  opacity: 0.4;
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-serif);
  line-height: 1;
  z-index: 1;
}

.testimonial-author {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-container {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 20px 0;
}

.faq-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.faq-question {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-charcoal);
  transition: var(--transition-fast);
}

.faq-icon-wrapper {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon-wrapper span {
  position: absolute;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.faq-icon-wrapper span:first-child {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform: translateY(-50%);
}

.faq-icon-wrapper span:last-child {
  top: 0;
  left: 50%;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}

.faq-header:hover .faq-question {
  color: var(--color-primary);
}

.faq-header[aria-expanded="true"] .faq-icon-wrapper span:last-child {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.faq-header[aria-expanded="true"] .faq-icon-wrapper span:first-child {
  transform: translateY(-50%) rotate(180deg);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-answer {
  font-size: 0.95rem;
  color: var(--color-charcoal-light);
  padding: 15px 0 5px 0;
  line-height: 1.8;
}

/* ==========================================================================
   Sezione CTA Emozionale Finale (Prima dei Contatti)
   ========================================================================== */
.emotional-cta-section {
  background-color: var(--color-bg-primary);
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.emotional-cta-title {
  font-size: 2.5rem;
  color: var(--color-charcoal);
  margin-bottom: 15px;
}

.emotional-cta-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-charcoal-light);
  max-width: 600px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   Contatti Form Section
   ========================================================================== */
.contact-container {
  max-width: 850px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 30px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  color: var(--color-charcoal-light);
}

.form-input {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 12px 18px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--color-charcoal);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(122, 134, 100, 0.08);
}

/* Select element specific overrides */
select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%237A8664' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px;
  cursor: pointer;
}

.form-input.error {
  border-color: var(--color-error);
}

.form-error-msg {
  font-size: 0.75rem;
  color: var(--color-error);
  margin-top: 5px;
  display: none;
}

.form-error-msg.active {
  display: block;
}

.checkbox-group {
  display: flex;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  margin-top: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-charcoal-light);
  line-height: 1.5;
  cursor: pointer;
  font-weight: 300;
}

.checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--color-primary-dark);
}

.spinner {
  animation: rotateSpinner 2s linear infinite;
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.spinner .path {
  stroke: var(--color-white);
  stroke-linecap: round;
  animation: dashSpinner 1.5s ease-in-out infinite;
}

.form-feedback {
  margin-top: 25px;
  padding: 20px;
  border-radius: 2px;
  background-color: #E2ECD5;
  border: 1px solid #C4D7AC;
  color: #4C5D36;
  font-size: 0.95rem;
  display: none;
}

.form-feedback.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

/* ==========================================================================
   Footer & Social Linkage
   ========================================================================== */
.footer {
  background-color: #262724;
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer-logo {
  color: var(--color-white);
  margin-bottom: 25px;
}

.footer-logo-img {
  max-height: 80px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--color-white);
  margin-bottom: 25px;
  font-weight: 500;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.footer-contacts p {
  margin-bottom: 12px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contacts a:hover {
  color: var(--color-primary);
}

.footer-social-icons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-white);
  transition: var(--transition-fast);
}

.social-icon-btn:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal a {
  margin-left: 20px;
}

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

/* ==========================================================================
   Animations Setup
   ========================================================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scrollDownBar {
  0% { top: -50%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

@keyframes rotateSpinner {
  100% { transform: rotate(360deg); }
}

@keyframes dashSpinner {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) { transition-delay: 0.15s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }

/* Custom Image Reveal on Scroll (Option C) */
.vision-img-container,
.bio-img-container {
  transform: scale(1.06);
  filter: blur(4px);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, filter;
}

.reveal-on-scroll.revealed .vision-img-container,
.reveal-on-scroll.revealed .bio-img-container {
  transform: scale(1);
  filter: blur(0);
}

/* Ken Burns keyframes */
@keyframes kenburns {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.08) translate(1%, -0.5%);
  }
}
.reveal-on-scroll:nth-child(4) { transition-delay: 0.45s; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }
  .section-title {
    font-size: 2.4rem;
  }
  .hero-title {
    font-size: 3rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .vision-content {
    padding-right: 0;
  }
  .vision-img-container {
    max-width: min(100% - 30px, 420px);
    margin: 0 auto;
  }
  .vision-img-container::after {
    top: 15px;
    left: -15px;
  }
  .vision-img-frame {
    height: 400px;
  }
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bio-content {
    padding-left: 0;
  }
  .bio-img-container {
    max-width: min(100% - 30px, 380px);
    margin: 0 auto;
  }
  .bio-img-container::after {
    bottom: -15px;
    right: -15px;
  }
  .bio-image-wrapper img {
    margin: 0;
    max-width: 100%;
  }
  
  /* Timeline responsiveness (Tablet) */
  .timeline::before {
    left: 20px;
  }
  .timeline-badge {
    left: 20px;
    transform: none;
  }
  .timeline-item {
    flex-direction: row !important;
    margin-bottom: 40px;
  }
  .timeline-panel {
    width: calc(100% - 60px);
    margin-left: 60px;
  }
  .timeline-panel::after {
    left: -10px !important;
    right: auto !important;
    border-width: 10px 10px 10px 0 !important;
    border-color: transparent var(--color-white) transparent transparent !important;
  }
  .timeline-panel::before {
    left: -11px !important;
    right: auto !important;
    border-width: 11px 11px 11px 0 !important;
    border-color: transparent var(--color-border) transparent transparent !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-grid > *:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 1150px) {
  .header {
    padding: 20px 0;
  }
  .logo-main {
    font-size: 1.3rem;
  }
  .logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
  }
  
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .nav-link {
    color: var(--color-charcoal);
    font-size: 0.95rem;
  }

  .nav-link::after {
    background-color: var(--color-primary);
  }

  .header.scrolled .nav-toggle span {
    background-color: var(--color-charcoal);
  }

  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--color-charcoal);
  }
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--color-charcoal);
  }
  
  .nav-toggle.active span {
    background-color: var(--color-charcoal) !important;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
  .hero-actions .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline-panel {
    padding: 20px;
  }
  .timeline-title {
    font-size: 1.25rem;
  }
  .emotional-cta-title {
    font-size: 1.8rem;
  }

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

  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full-width {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid > *:first-child {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .footer-legal a {
    margin: 0 10px;
  }

  .whatsapp-floating {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-floating svg {
    width: 26px;
    height: 26px;
  }
}

/* ==========================================================================
   Cookie Banner
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px 0;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-container {
  width: 90%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cookie-banner-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-charcoal-light);
  line-height: 1.6;
  font-weight: 300;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner-btn {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-reject {
  background-color: transparent;
  border: 1.5px solid var(--color-taupe);
  color: var(--color-charcoal-light);
}

.btn-reject:hover {
  border-color: var(--color-charcoal-light);
  color: var(--color-charcoal);
}

.btn-accept {
  background-color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  color: var(--color-white);
}

.btn-accept:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: 25px 0;
  }
  .cookie-banner-container {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner-buttons {
    justify-content: center;
  }
  .cookie-banner-btn {
    flex: 1;
  }
}

