/* ============================================================
   MARZIA D'ANGELO — DESTINATION WEDDING PLANNER
   Global CSS v2.0
   Placement: Appearance → Customize → Additional CSS
   Last updated: 2026-03
   ============================================================

   INDEX
   00. CSS Custom Properties (design tokens)
   01. Reset & base
   02. Typography — Cormorant Garamond
   03. Typography — Jost
   04. Utility classes
   05. Palette utility classes
   06. Buttons
   07. Navigation
   08. Hero
   09. Sections & layout
   10. Cards & portfolio
   11. Testimonials
   12. Contact form
   13. Footer
   14. Dividers & decorative
   15. Scroll animations (ScrollReveal hooks)
   16. Page — Chi Sono / About
   17. Page — Servizi / Services
   18. Page — Portfolio
   19. Page — Val d'Orcia / Roma
   20. Responsive overrides
   ============================================================ */


/* ============================================================
   00. CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* — Palette principale — */
  --c-cloud:      #F4F1EC;   /* Cloud Dancer — sfondo primario   */
  --c-inchiostro: #1C1C1A;   /* Inchiostro — testo principale    */
  --c-prussian:   #1B3A5C;   /* Blu di Prussia — autorità        */
  --c-rosa:       #C4A69D;   /* Rosa Antico — calore             */
  --c-oro:        #B8975A;   /* Oro — lusso discreto             */
  --c-terra:      #7A6652;   /* Terra — tono caldo neutro        */
  --c-pietra:     #B8A898;   /* Pietra — grigio caldo            */
  --c-bosco:      #2E3830;   /* Bosco — verde scuro              */
  --c-white:      #FFFFFF;
  --c-black:      #000000;

  /* — Tipografia — */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  /* — Font sizes — */
  --fs-hero:   clamp(2.8rem, 6vw, 5.5rem);
  --fs-h1:     clamp(2.2rem, 4vw, 3.8rem);
  --fs-h2:     clamp(1.8rem, 3vw, 2.8rem);
  --fs-h3:     clamp(1.4rem, 2vw, 2rem);
  --fs-body:   clamp(0.95rem, 1.2vw, 1.1rem);
  --fs-small:  0.85rem;
  --fs-label:  0.75rem;

  /* — Spaziatura — */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;
  --space-xxl: 12rem;

  /* — Layout — */
  --container-max: 1280px;
  --container-pad: clamp(1.5rem, 5vw, 5rem);
  --nav-height:    80px;

  /* — Transizioni — */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:    200ms;
  --dur-mid:     400ms;
  --dur-slow:    700ms;

  /* — Border radius — */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* — Ombre — */
  --shadow-soft: 0 4px 30px rgba(28, 28, 26, 0.08);
  --shadow-card: 0 8px 40px rgba(28, 28, 26, 0.12);
}


/* ============================================================
   01. RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--c-cloud);
  color: var(--c-inchiostro);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: var(--c-rosa);
  color: var(--c-white);
}


/* ============================================================
   02. TIPOGRAFIA — CORMORANT GARAMOND (display)
   ============================================================ */

.m-display,
.m-h1,
.m-h2,
.m-h3,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--c-inchiostro);
}

.m-display {
  font-size: var(--fs-hero);
  font-weight: 300;
  letter-spacing: -0.01em;
}

.m-display-italic,
.m-hero-payoff {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.m-h1 { font-size: var(--fs-h1); }
.m-h2 { font-size: var(--fs-h2); }
.m-h3 { font-size: var(--fs-h3); font-weight: 400; }

.m-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 300;
  font-style: italic;
  color: var(--c-terra);
  line-height: 1.4;
}

.m-section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  margin-bottom: var(--space-md);
}

.m-section-title--center {
  text-align: center;
}

.m-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-oro);
  display: block;
  margin-bottom: var(--space-sm);
}

.m-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-prussian);
}

.m-quote::before { content: '\201C'; }
.m-quote::after  { content: '\201D'; }


/* ============================================================
   03. TIPOGRAFIA — JOST (body / UI)
   ============================================================ */

.m-body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-inchiostro);
}

.m-body-light {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-terra);
}

.m-label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.m-nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ============================================================
   04. UTILITY CLASSES
   ============================================================ */

.m-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.m-container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.m-container--wide {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.m-text-center  { text-align: center; }
.m-text-left    { text-align: left; }
.m-text-right   { text-align: right; }

.m-flex         { display: flex; }
.m-flex-center  { display: flex; align-items: center; justify-content: center; }
.m-flex-between { display: flex; align-items: center; justify-content: space-between; }
.m-flex-col     { display: flex; flex-direction: column; }

.m-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
.m-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }

.m-mt-sm  { margin-top: var(--space-sm); }
.m-mt-md  { margin-top: var(--space-md); }
.m-mt-lg  { margin-top: var(--space-lg); }
.m-mb-sm  { margin-bottom: var(--space-sm); }
.m-mb-md  { margin-bottom: var(--space-md); }
.m-mb-lg  { margin-bottom: var(--space-lg); }

.m-py-sm  { padding-block: var(--space-sm); }
.m-py-md  { padding-block: var(--space-md); }
.m-py-lg  { padding-block: var(--space-lg); }
.m-py-xl  { padding-block: var(--space-xl); }

.m-visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}


/* ============================================================
   05. PALETTE UTILITY CLASSES
   ============================================================ */

.m-bg-cloud      { background-color: var(--c-cloud); }
.m-bg-prussian   { background-color: var(--c-prussian); }
.m-bg-inchiostro { background-color: var(--c-inchiostro); }
.m-bg-rosa       { background-color: var(--c-rosa); }
.m-bg-bosco      { background-color: var(--c-bosco); }
.m-bg-white      { background-color: var(--c-white); }

.m-text-cloud      { color: var(--c-cloud); }
.m-text-prussian   { color: var(--c-prussian); }
.m-text-oro        { color: var(--c-oro); }
.m-text-rosa       { color: var(--c-rosa); }
.m-text-terra      { color: var(--c-terra); }
.m-text-pietra     { color: var(--c-pietra); }
.m-text-white      { color: var(--c-white); }


/* ============================================================
   06. BUTTONS
   ============================================================ */

.m-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9em 2.2em;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition:
    background var(--dur-mid) var(--ease-smooth),
    color var(--dur-mid) var(--ease-smooth),
    border-color var(--dur-mid) var(--ease-smooth);
  white-space: nowrap;
  text-decoration: none;
}

/* Primary — Blu di Prussia */
.m-btn--primary {
  background: var(--c-prussian);
  color: var(--c-cloud);
  border-color: var(--c-prussian);
}
.m-btn--primary:hover {
  background: var(--c-inchiostro);
  border-color: var(--c-inchiostro);
  color: var(--c-cloud);
}

/* Ghost chiaro (su sfondi scuri) */
.m-btn--ghost {
  background: transparent;
  color: var(--c-cloud);
  border-color: rgba(244, 241, 236, 0.5);
}
.m-btn--ghost:hover {
  background: rgba(244, 241, 236, 0.1);
  border-color: var(--c-cloud);
}

/* Ghost scuro (su sfondi chiari) */
.m-btn--ghost-dark {
  background: transparent;
  color: var(--c-inchiostro);
  border-color: var(--c-inchiostro);
}
.m-btn--ghost-dark:hover {
  background: var(--c-inchiostro);
  color: var(--c-cloud);
}

/* Oro */
.m-btn--oro {
  background: transparent;
  color: var(--c-oro);
  border-color: var(--c-oro);
}
.m-btn--oro:hover {
  background: var(--c-oro);
  color: var(--c-cloud);
}

/* Link testuale con freccia */
.m-btn--text {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--c-prussian);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
}
.m-btn--text::after {
  content: ' →';
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-smooth);
}
.m-btn--text:hover::after {
  transform: translateX(5px);
}


/* ============================================================
   07. NAVIGAZIONE
   ============================================================ */

.m-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition:
    background var(--dur-mid) var(--ease-smooth),
    box-shadow var(--dur-mid) var(--ease-smooth);
}

/* Stato iniziale: trasparente sopra hero video */
.m-nav--transparent {
  background: transparent;
}

/* Stato scrolled: sfondo chiaro */
.m-nav.scrolled,
.m-nav--scrolled {
  background: rgba(244, 241, 236, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(28, 28, 26, 0.08);
}

.m-nav__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo in nav */
.m-nav__logo img {
  height: 44px;
  width: auto;
  transition: filter var(--dur-mid) var(--ease-smooth);
}

/* Logo chiaro (su hero scuro) */
.m-nav--transparent .m-nav__logo img {
  filter: brightness(0) invert(1);
}

/* Logo scuro (scrolled — serve versione dark del logo!) */
.m-nav.scrolled .m-nav__logo img,
.m-nav--scrolled .m-nav__logo img {
  filter: none;
}

/* Links nav */
.m-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.m-nav__link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-cloud);
  transition: color var(--dur-fast) var(--ease-smooth),
              opacity var(--dur-fast) var(--ease-smooth);
  opacity: 0.85;
}

.m-nav__link:hover {
  opacity: 1;
  color: var(--c-cloud);
}

.m-nav.scrolled .m-nav__link,
.m-nav--scrolled .m-nav__link {
  color: var(--c-inchiostro);
}

.m-nav.scrolled .m-nav__link:hover,
.m-nav--scrolled .m-nav__link:hover {
  color: var(--c-prussian);
  opacity: 1;
}

/* CTA in nav */
.m-nav__cta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.6em 1.4em;
  border: 1px solid rgba(244, 241, 236, 0.5);
  color: var(--c-cloud);
  background: transparent;
  transition: all var(--dur-fast) var(--ease-smooth);
}

.m-nav__cta:hover {
  background: rgba(244, 241, 236, 0.15);
  border-color: var(--c-cloud);
  color: var(--c-cloud);
}

.m-nav.scrolled .m-nav__cta,
.m-nav--scrolled .m-nav__cta {
  border-color: var(--c-prussian);
  color: var(--c-prussian);
}

.m-nav.scrolled .m-nav__cta:hover,
.m-nav--scrolled .m-nav__cta:hover {
  background: var(--c-prussian);
  color: var(--c-cloud);
}

/* Switcher lingua */
.m-lang-switch {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.6);
  transition: color var(--dur-fast) var(--ease-smooth);
}

.m-lang-switch:hover,
.m-lang-switch--active {
  color: var(--c-cloud);
}

.m-nav.scrolled .m-lang-switch,
.m-nav--scrolled .m-lang-switch {
  color: var(--c-pietra);
}

.m-nav.scrolled .m-lang-switch:hover,
.m-nav--scrolled .m-lang-switch--active {
  color: var(--c-inchiostro);
}

/* Hamburger mobile */
.m-nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.m-nav__hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--c-cloud);
  transition: all var(--dur-mid) var(--ease-smooth);
}

.m-nav.scrolled .m-nav__hamburger span {
  background: var(--c-inchiostro);
}


/* ============================================================
   08. HERO
   ============================================================ */

.m-hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Overlay scuro sfumato */
.m-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 26, 0.35) 0%,
    rgba(28, 28, 26, 0.15) 40%,
    rgba(28, 28, 26, 0.50) 100%
  );
  z-index: 1;
}

.m-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--c-cloud);
  padding: var(--space-md) var(--container-pad);
  max-width: 900px;
}

.m-hero__payoff {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--fs-hero);
  line-height: 1.2;
  color: var(--c-cloud);
  text-shadow: 0 2px 20px rgba(28, 28, 26, 0.3);
  margin-bottom: var(--space-md);
}

.m-hero__sub {
  font-family: var(--font-body);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.75);
  margin-bottom: var(--space-lg);
}

/* Scroll indicator */
.m-hero__scroll {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(244, 241, 236, 0.5);
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}


/* ============================================================
   09. SECTIONS & LAYOUT
   ============================================================ */

.m-section {
  padding-block: var(--space-xl);
}

.m-section--sm {
  padding-block: var(--space-lg);
}

.m-section--xl {
  padding-block: var(--space-xxl);
}

/* Sezione su sfondo scuro */
.m-section--dark {
  background-color: var(--c-inchiostro);
  color: var(--c-cloud);
}

.m-section--dark .m-section-title,
.m-section--dark h1,
.m-section--dark h2,
.m-section--dark h3 {
  color: var(--c-cloud);
}

/* Sezione Blu di Prussia */
.m-section--prussian {
  background-color: var(--c-prussian);
  color: var(--c-cloud);
}

.m-section--prussian .m-section-title,
.m-section--prussian h1,
.m-section--prussian h2,
.m-section--prussian h3 {
  color: var(--c-cloud);
}

/* Sezione Bosco */
.m-section--bosco {
  background-color: var(--c-bosco);
  color: var(--c-cloud);
}

/* Layout 50/50 */
.m-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.m-split--reverse {
  direction: rtl;
}
.m-split--reverse > * {
  direction: ltr;
}

/* Layout testo + immagine larga */
.m-split--wide-img {
  grid-template-columns: 2fr 3fr;
}

.m-split__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Stats row */
.m-stats {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-end;
}

.m-stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--c-prussian);
}

.m-stat__label {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-terra);
  margin-top: 0.3em;
}

/* Sezione dark: stats bianche */
.m-section--dark .m-stat__number,
.m-section--prussian .m-stat__number {
  color: var(--c-cloud);
}

.m-section--dark .m-stat__label,
.m-section--prussian .m-stat__label {
  color: var(--c-pietra);
}


/* ============================================================
   10. CARDS & PORTFOLIO
   ============================================================ */

.m-card {
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow var(--dur-mid) var(--ease-smooth),
              transform var(--dur-mid) var(--ease-smooth);
}

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

.m-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.m-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.m-card:hover .m-card__image img {
  transform: scale(1.04);
}

.m-card__body {
  padding: var(--space-md);
}

.m-card__tag {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-oro);
  margin-bottom: var(--space-xs);
}

.m-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  margin-bottom: var(--space-xs);
}

/* Portfolio grid */
.m-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.m-portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.m-portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

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

.m-portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 28, 26, 0.75) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--dur-mid) var(--ease-smooth);
  display: flex;
  align-items: flex-end;
  padding: var(--space-md);
}

.m-portfolio-item:hover .m-portfolio-item__overlay {
  opacity: 1;
}

.m-portfolio-item__label {
  color: var(--c-cloud);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 300;
  font-style: italic;
}

/* Featured portfolio item (grande) */
.m-portfolio-item--featured {
  grid-column: span 2;
  aspect-ratio: auto;
}


/* ============================================================
   11. TESTIMONIANZE
   ============================================================ */

.m-testimonial {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-xl) var(--container-pad);
}

.m-testimonial__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.55;
  color: var(--c-inchiostro);
  margin-bottom: var(--space-md);
}

.m-testimonial__quote::before { content: '\201C'; }
.m-testimonial__quote::after  { content: '\201D'; }

.m-testimonial__author {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-terra);
}

.m-testimonial__location {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  color: var(--c-pietra);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* Testimonianza su sfondo scuro */
.m-section--dark .m-testimonial__quote {
  color: var(--c-cloud);
}

/* Slider bullets */
.m-testimonial__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-md);
}

.m-testimonial__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-pietra);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth);
}

.m-testimonial__dot--active {
  background: var(--c-prussian);
  transform: scale(1.3);
}


/* ============================================================
   12. CONTACT FORM
   ============================================================ */

.m-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 620px;
}

/* Override CF7 defaults */
.m-form .wpcf7-form-control-wrap,
.wpcf7 .m-form input,
.wpcf7 .m-form textarea,
.wpcf7 .m-form select {
  display: block;
  width: 100%;
}

.m-form label {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-terra);
  display: block;
  margin-bottom: 0.5em;
}

.m-form input[type="text"],
.m-form input[type="email"],
.m-form input[type="tel"],
.m-form select,
.m-form textarea,
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-pietra);
  padding: 0.7em 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-inchiostro);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-smooth);
  border-radius: 0;
  -webkit-appearance: none;
}

.m-form input:focus,
.m-form textarea:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus {
  border-bottom-color: var(--c-prussian);
}

.m-form textarea,
.wpcf7 textarea {
  resize: vertical;
  min-height: 100px;
}

.m-form input::placeholder,
.m-form textarea::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
  color: var(--c-pietra);
  font-weight: 300;
}

/* Submit CF7 */
.wpcf7 input[type="submit"],
.m-form button[type="submit"] {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9em 2.4em;
  background: var(--c-prussian);
  color: var(--c-cloud);
  border: 1px solid var(--c-prussian);
  cursor: pointer;
  transition: background var(--dur-mid) var(--ease-smooth),
              border-color var(--dur-mid) var(--ease-smooth);
  border-radius: 0;
}

.wpcf7 input[type="submit"]:hover,
.m-form button[type="submit"]:hover {
  background: var(--c-inchiostro);
  border-color: var(--c-inchiostro);
}

/* CF7 response */
.wpcf7-response-output {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 300;
  border: none !important;
  padding: 0 !important;
  margin-top: var(--space-sm) !important;
  color: var(--c-terra);
}


/* ============================================================
   13. FOOTER
   ============================================================ */

.m-footer {
  background-color: var(--c-inchiostro);
  color: var(--c-cloud);
  padding-block: var(--space-xl) var(--space-lg);
}

.m-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.m-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(244, 241, 236, 0.1);
  margin-bottom: var(--space-lg);
}

.m-footer__logo img {
  height: 40px;
  width: auto;
  margin-bottom: var(--space-md);
  /* Logo deve essere versione chiara */
  filter: brightness(0) invert(1);
}

.m-footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: rgba(244, 241, 236, 0.65);
  line-height: 1.5;
}

.m-footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-oro);
  margin-bottom: var(--space-md);
}

.m-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}

.m-footer__link {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 300;
  color: rgba(244, 241, 236, 0.6);
  transition: color var(--dur-fast) var(--ease-smooth);
}

.m-footer__link:hover {
  color: var(--c-cloud);
}

.m-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.m-footer__copy {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 300;
  color: rgba(244, 241, 236, 0.35);
  letter-spacing: 0.08em;
}

/* Social icons (Phosphor) */
.m-social {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.m-social__link {
  color: rgba(244, 241, 236, 0.45);
  font-size: 1.2rem;
  transition: color var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth);
}

.m-social__link:hover {
  color: var(--c-cloud);
  transform: translateY(-2px);
}


/* ============================================================
   14. DIVIDERS & DECORATIVE
   ============================================================ */

.m-divider {
  width: 40px;
  height: 1px;
  background: var(--c-oro);
  display: block;
  margin-block: var(--space-md);
}

.m-divider--center {
  margin-inline: auto;
}

.m-divider--long {
  width: 80px;
}

/* Linea decorativa orizzontale piena */
.m-rule {
  border: none;
  border-top: 1px solid rgba(28, 28, 26, 0.1);
  margin-block: var(--space-lg);
}

.m-section--dark .m-rule,
.m-section--prussian .m-rule {
  border-top-color: rgba(244, 241, 236, 0.1);
}

/* Citazione con bordo sinistro */
.m-pullquote {
  border-left: 2px solid var(--c-oro);
  padding-left: var(--space-md);
  margin-block: var(--space-lg);
}

/* Sfondo immagine parallasse-ready */
.m-parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.m-parallax-section__bg {
  position: absolute;
  inset: -20%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.m-parallax-section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, 0.55);
  z-index: 1;
}

.m-parallax-section__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-xl) var(--container-pad);
  color: var(--c-cloud);
}


/* ============================================================
   15. SCROLL ANIMATIONS (hook classes per ScrollReveal)
   ============================================================ */

/* Le classi sr-* vengono gestite da ScrollReveal JS.
   Qui definiamo lo stato hidden iniziale per evitare FOUC. */

.sr-fade-up,
.sr-fade-in,
.sr-slide-left,
.sr-slide-right {
  visibility: hidden;
}

/* ScrollReveal rimuove visibility:hidden e applica le sue trasformazioni */


/* ============================================================
   16. PAGE — CHI SONO / ABOUT
   ============================================================ */

.m-about__intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-xl);
  align-items: center;
  padding-block: var(--space-xl);
}

.m-about__portrait {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.m-about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.m-about__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  padding-block: var(--space-xl);
  border-top: 1px solid rgba(28, 28, 26, 0.08);
}

.m-value__icon {
  font-size: 1.8rem;
  color: var(--c-oro);
  margin-bottom: var(--space-sm);
}

.m-value__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5em;
}

.m-value__text {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 300;
  color: var(--c-terra);
  line-height: 1.7;
}


/* ============================================================
   17. PAGE — SERVIZI / SERVICES
   ============================================================ */

.m-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg) var(--space-xl);
}

.m-service-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(28, 28, 26, 0.08);
}

.m-service-item__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--c-pietra);
  line-height: 1;
}

.m-service-item__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
}

.m-service-item__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-terra);
  line-height: 1.8;
}

/* Come lavoro — steps */
.m-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
}

.m-step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  position: relative;
}

.m-step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 29px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: rgba(28, 28, 26, 0.1);
}

.m-step__num {
  width: 60px;
  height: 60px;
  border: 1px solid var(--c-pietra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-terra);
  flex-shrink: 0;
}

.m-step__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 300;
  margin-bottom: 0.4em;
}

.m-step__text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 300;
  color: var(--c-terra);
  line-height: 1.8;
}


/* ============================================================
   18. PAGE — PORTFOLIO
   ============================================================ */

.m-portfolio-filter {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.m-filter-btn {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5em 1.4em;
  border: 1px solid var(--c-pietra);
  background: transparent;
  color: var(--c-terra);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
}

.m-filter-btn:hover,
.m-filter-btn--active {
  background: var(--c-prussian);
  border-color: var(--c-prussian);
  color: var(--c-cloud);
}


/* ============================================================
   19. PAGE — VAL D'ORCIA / ROMA
   ============================================================ */

.m-territory-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
}

.m-territory-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.m-territory-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(28,28,26,0.2) 0%,
    rgba(28,28,26,0.55) 100%);
}

.m-territory-hero__content {
  position: absolute;
  bottom: var(--space-xl);
  left: var(--container-pad);
  right: var(--container-pad);
  color: var(--c-cloud);
}

.m-territory-hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 236, 0.65);
  margin-bottom: var(--space-sm);
}

.m-territory-hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 300;
  font-style: italic;
  color: var(--c-cloud);
  max-width: 700px;
}

/* Gallery territorio */
.m-gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 3px;
}

.m-gallery-mosaic__item { overflow: hidden; }

.m-gallery-mosaic__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.m-gallery-mosaic__item:hover img {
  transform: scale(1.04);
}

/* Layouts predefiniti mosaico */
.m-gallery-mosaic__item--wide  { grid-column: span 8; aspect-ratio: 16/9; }
.m-gallery-mosaic__item--tall  { grid-column: span 4; aspect-ratio: 9/16; grid-row: span 2; }
.m-gallery-mosaic__item--med   { grid-column: span 6; aspect-ratio: 4/3; }
.m-gallery-mosaic__item--sm    { grid-column: span 4; aspect-ratio: 4/3; }


/* ============================================================
   20. RESPONSIVE OVERRIDES
   ============================================================ */

@media (max-width: 1024px) {

  .m-split,
  .m-split--wide-img {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .m-split--reverse {
    direction: ltr;
  }

  .m-about__intro {
    grid-template-columns: 1fr;
  }

  .m-about__portrait {
    aspect-ratio: 16/9;
    max-height: 500px;
  }

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

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

  .m-portfolio-item--featured {
    grid-column: span 2;
  }

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

  .m-footer__top > *:first-child {
    grid-column: span 2;
  }

  .m-gallery-mosaic__item--wide { grid-column: span 12; }
  .m-gallery-mosaic__item--tall { grid-column: span 6; aspect-ratio: 4/3; grid-row: span 1; }
  .m-gallery-mosaic__item--med  { grid-column: span 6; }
  .m-gallery-mosaic__item--sm   { grid-column: span 6; }

}

@media (max-width: 768px) {

  :root {
    --nav-height: 64px;
    --space-xl:  5rem;
    --space-xxl: 8rem;
  }

  .m-nav__links,
  .m-nav__cta,
  .m-lang-switch:not(.m-lang-switch--mobile) {
    display: none;
  }

  .m-nav__hamburger {
    display: flex;
  }

  .m-hero__payoff {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .m-grid-2,
  .m-grid-3 {
    grid-template-columns: 1fr;
  }

  .m-services-grid {
    grid-template-columns: 1fr;
  }

  .m-about__values {
    grid-template-columns: 1fr;
  }

  .m-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .m-portfolio-grid {
    grid-template-columns: 1fr;
  }

  .m-portfolio-item--featured {
    grid-column: span 1;
  }

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

  .m-footer__top > *:first-child {
    grid-column: span 1;
  }

  .m-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .m-testimonial {
    padding-inline: var(--space-sm);
  }

  .m-gallery-mosaic__item--wide,
  .m-gallery-mosaic__item--tall,
  .m-gallery-mosaic__item--med,
  .m-gallery-mosaic__item--sm {
    grid-column: span 12;
    aspect-ratio: 4/3;
    grid-row: span 1;
  }

}

@media (max-width: 480px) {

  .m-btn {
    padding: 0.8em 1.6em;
    font-size: 0.7rem;
  }

  .m-stats {
    gap: var(--space-md);
  }

  .m-step {
    grid-template-columns: 44px 1fr;
  }

  .m-step__num {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

}
