/*!
Theme Name: AD Fine Art
Theme URI: https://adfineart.it
Author: Raffaella per AD Fine Art
Description: Tema custom per AD Fine Art — galleria di arte europea e antichità selezionate, Via Margutta, Roma. Base: Underscores (_s).
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: adfineart
Tags: gallery, art, editorial, minimal
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colori */
  --cream: #faf9f6;
  --cream-soft: #faf9f7;
  --ink: #1a1c1a;
  --ink-deep: #1d1f1e;
  --ink-warm: #1a1c1b;
  --stone: #e3e2e0;
  --sage: #85a4a7;
  --gold: #c8af7b;
  --bronze: #705c2b;
  --bronze-soft: rgba(112, 92, 43, 0.05);
  --bronze-line: rgba(112, 92, 43, 0.2);
  --earth: #4c463a;
  --mute: #6b7280;
  --overlay: rgba(0, 0, 0, 0.35);
  --on-dark-80: rgba(227, 226, 224, 0.8);
  --on-dark-70: rgba(227, 226, 224, 0.7);
  --on-dark-40: rgba(227, 226, 224, 0.4);
  --on-dark-10: rgba(227, 226, 224, 0.1);
  --ink-body:   #444748;            
  --stone-warm: #efeeeb;            
  --line-soft:  rgba(0, 0, 0, 0.1); 
  --line-mute:  rgba(0, 0, 0, 0.2); 

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-display: 'Fahkwang', 'Inter', sans-serif;

  /* Spazi */
  --container-max: 1440px;
  --section-pad-x: 80px;
  --section-pad-x-mobile: 24px;
  --header-h: 113px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; transition: opacity 0.3s ease; }
a:hover { opacity: 0.65; }

button { border: 0; background: transparent; font: inherit; color: inherit; cursor: pointer; }

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 20px;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER — 3 colonne: logo (sx) · menu (centro) · actions (dx)
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 32px var(--section-pad-x);
  /* DEFAULT (pagine interne): bianco blurred, testo scuro */
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom: 1px solid rgba(112, 92, 43, 0.08);
  transform: translateY(0);
  transition: transform 0.45s cubic-bezier(.2,.6,.2,1),
              background 0.4s ease,
              padding 0.4s ease,
              color 0.4s ease,
              border-color 0.4s ease;
  will-change: transform;
}

/* Home: trasparente solo quando siamo in cima alla pagina */
.has-transparent-header .site-header {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--cream);
  border-bottom-color: transparent;
  padding: 32px var(--section-pad-x);
}

/* Allo scroll (anche home): bianco blurred */
.site-header.is-scrolled,
.has-transparent-header .site-header.is-scrolled {
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  border-bottom-color: rgba(112, 92, 43, 0.08);
  padding: 18px var(--section-pad-x);
}

/* Nascosto durante lo scroll verso il basso */
.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Colonna sinistra */
.site-branding {
  justify-self: start;
  display: flex;
  align-items: center;
}

.site-branding .logo-img {
  height: 49px;
  width: auto;
}

.site-branding .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: currentColor;
}

/* Colonna centrale: navigation */
.main-navigation {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 48px;
}

.main-navigation a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: none;
  color: currentColor;
}

/* Colonna destra: lang switch + hamburger */
.site-header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: currentColor;
}
.lang-switch a.is-active { opacity: 1; }
.lang-switch a:not(.is-active) { opacity: 0.5; }
.lang-switch .sep { opacity: 0.4; }

/* La versione mobile del lang switch è nascosta da desktop */
.lang-switch--mobile { display: none; }

/* Hamburger */
.menu-toggle {
  display: none;
  position: relative;
  width: 32px; height: 32px;
  z-index: 110;
  color: currentColor;
}
.menu-toggle .hamburger-icon,
.menu-toggle .hamburger-icon::before,
.menu-toggle .hamburger-icon::after {
  display: block;
  position: absolute;
  left: 0;
  width: 28px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.2s ease;
}
.menu-toggle .hamburger-icon {
  top: 50%;
  transform: translateY(-50%);
}
.menu-toggle .hamburger-icon::before {
  content: ''; top: -9px;
}
.menu-toggle .hamburger-icon::after {
  content: ''; top: 9px;
}
.menu-toggle[aria-expanded="true"] .hamburger-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger-icon::after { top: 0; transform: rotate(-45deg); }

/* Toggle nero quando il menu mobile è aperto (per contrasto sul cream) */
.menu-toggle[aria-expanded="true"] {
  color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  max-height: 900px;
  overflow: hidden;
  background: var(--ink-deep);
  color: var(--cream);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  z-index: 2;
}

.hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.hero__body {
  position: absolute;
  top: 190px;
  right: var(--section-pad-x);
  max-width: 500px;
  text-align: right;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.18px;
  color: var(--cream);
}
.hero__body p + p { margin-top: 0; }

.hero__title {
  position: absolute;
  bottom: 150px;
  left: var(--section-pad-x);
  max-width: 800px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 130px;
  line-height: 1;
  letter-spacing: -7.5px;
  color: var(--cream);
}

.hero__location {
  position: absolute;
  bottom: 130px;
  left: var(--section-pad-x);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -1px;
  color: var(--cream);
}

.hero__scroll {
  position: absolute;
  bottom: 50px;
  right: var(--section-pad-x);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.8;
}

/* ============================================================
   SECTION ATOMS
   ============================================================ */
.section {
  position: relative;
  padding: 120px var(--section-pad-x);
  max-width: var(--container-max);
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 15px;
}

.eyebrow--sage {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--sage);
  margin-bottom: 5px;
  margin-top: 15px;
}

.eyebrow--bronze {
  color: var(--bronze);
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px;
  line-height: 68.4px;
  letter-spacing: -2.5px;
  color: var(--ink);
  max-width: 1023px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  padding: 15px 48px;
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--ink);
  transition: background 0.3s ease, color 0.3s ease, opacity 0.3s ease;
}
.btn:hover { background: var(--cream); color: var(--ink); opacity: 1; }

/* ============================================================
   COLLECTION / FEATURED WORKS
   ============================================================ */
.collection {
  background: var(--cream);
  padding: 96px var(--section-pad-x) 120px;
}

.collection__header {
  max-width: var(--container-max);
  margin: 0 auto 60px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.featured-work { display: flex; flex-direction: column; gap: 23px; }
.featured-work__media {
  background: var(--stone);
  overflow: hidden;
}
.featured-work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2,.6,.2,1);
}
.featured-work:hover .featured-work__media img { transform: scale(1.04); }

.featured-work__meta { display: flex; flex-direction: column; gap: 5px; }

.featured-work__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--ink);
}

.featured-work--1 { grid-column: 1 / span 6; }
.featured-work--1 .featured-work__media { aspect-ratio: 4 / 5; }

.featured-work--2 { grid-column: 8 / span 4; margin-top: 128px; }
.featured-work--2 .featured-work__media { aspect-ratio: 1 / 1; }

.collection__cta {
  display: flex;
  justify-content: center;
  margin-top: 96px;
}

/* ============================================================
   NEWSLETTER (parte del footer, bg customizzabile per pagina)
   ============================================================ */
.newsletter-section {
  background: var(--bronze-soft);
  padding: 96px 192px;
  text-align: center;
}

.newsletter-section__inner {
  max-width: 896px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.newsletter-section__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 40px;
  line-height: 48px;
  letter-spacing: -1px;
  color: var(--ink-warm);
}

.newsletter-section__form {
  width: 100%;
  max-width: 576px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.newsletter-section__input {
  width: 100%;
  height: 50.8px;
  padding: 16px 25px 16.8px;
  background: var(--cream-soft);
  border: 1px solid var(--bronze-line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease;
}
.newsletter-section__input::placeholder { color: var(--mute); text-transform: uppercase; }
.newsletter-section__input:focus { border-color: var(--bronze); }

.newsletter-section__privacy {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--earth);
  padding-top: 8px;
}

.newsletter-section__submit {
  padding: 16px 32px 17.3px;
  background: var(--ink-warm);
  color: var(--cream-soft);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}
.newsletter-section__submit:hover { opacity: 0.85; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink-deep);
  color: var(--on-dark-80);
  padding: 80px var(--section-pad-x);
}

.site-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.footer-col--brand { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.footer-col--explore { grid-column: 6 / span 2; display: flex; flex-direction: column; gap: 20px; }
.footer-col--connect { grid-column: 8 / span 2; display: flex; flex-direction: column; gap: 20px; }
.footer-col--location { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 20px; }

.footer-brand-logo { height: 49px; width: auto; }

.footer-description {
  max-width: 384px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--on-dark-70);
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 16.8px;
}

.footer-links li + li { margin-top: 16px; }

.footer-links a,
.footer-location p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--on-dark-80);
}

.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 80px;
  padding-top: 33px;
  border-top: 1px solid var(--on-dark-10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom__copy,
.footer-bottom__links a {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 19.5px;
  color: var(--on-dark-40);
}

.footer-bottom__links { display: flex; gap: 32px; flex-wrap: wrap; }

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1200px) {
  .hero__title { font-size: 96px; letter-spacing: -5.5px; }
  .section-title { font-size: 48px; line-height: 1.1; letter-spacing: -2.2px; }
  .newsletter-section { padding: 80px 48px; }
  .main-navigation ul { gap: 32px; }
}

/* ============================================================
   RESPONSIVE — Mobile + Hamburger menu
   ============================================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad-x: var(--section-pad-x-mobile);
    --header-h: 80px;
  }

  /* Header: torna a 2 colonne (logo sx · actions dx). Il menu esce dal flow. */
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 20px var(--section-pad-x-mobile);
  }
  .has-transparent-header .site-header { padding: 24px var(--section-pad-x-mobile); }
  .site-header.is-scrolled,
  .has-transparent-header .site-header.is-scrolled { padding: 16px var(--section-pad-x-mobile); }

  /* Hamburger visibile, lang desktop nascosto */
  .menu-toggle { display: block; }
  .lang-switch--desktop { display: none; }
  .lang-switch--mobile { display: flex; }

  /* Nav diventa overlay full-screen */
  .main-navigation {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--cream);
    color: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    padding: 80px 24px;
    z-index: 105;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
    justify-self: stretch;
  }

  .main-navigation.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-navigation ul {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .main-navigation a {
    font-size: 16px;
    letter-spacing: 3.2px;
  }

  .lang-switch--mobile { font-size: 14px; letter-spacing: 2.8px; }

  /* Hero mobile */
  .hero { min-height: 600px; }
  .hero__title { font-size: 64px; letter-spacing: -3px; bottom: 140px; max-width: 100%; }
  .hero__body {
    top: 220px;
    right: var(--section-pad-x-mobile);
    left: var(--section-pad-x-mobile);
    max-width: 50%;
    font-size: 15px;
    text-align: left;
  }
  .hero__location { bottom: 120px; font-size: 16px; }
  .hero__scroll { font-size: 11px; bottom: 32px; right: var(--section-pad-x-mobile); }

  /* Collection grid mobile */
  .collection { padding: 64px var(--section-pad-x-mobile); }
  .featured-grid { grid-template-columns: 1fr; gap: 48px; }
  .featured-work--1, .featured-work--2 { grid-column: 1; margin-top: 0; }
  .featured-work--2 .featured-work__media { aspect-ratio: 4 / 5; }

  .section-title { font-size: 32px; letter-spacing: -1.5px; line-height: 1.2; }
  .collection__cta { margin-top: 56px; }

  /* Newsletter mobile */
  .newsletter-section { padding: 64px 24px; }
  .newsletter-section__title { font-size: 26px; line-height: 1.3; }

  /* Footer mobile */
  .site-footer { padding: 64px 24px 32px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-col--brand,
  .footer-col--explore,
  .footer-col--connect,
  .footer-col--location { grid-column: span 1; }
  .footer-col--brand { grid-column: 1 / -1; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 48px;
  }
}

@media (max-width: 540px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .footer-col--brand,
  .footer-col--explore,
  .footer-col--connect,
  .footer-col--location { grid-column: 1; }
  .hero__title { font-size: 64px; }
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
 
/* ---------- Layout di base ---------- */
.about-main {
  background: var(--cream);
  padding-top: var(--header-h);
}
 
.about-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}
 
/* ---------- Atomi tipografici riutilizzabili (pagine interne) ---------- */
.about-eyebrow {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.about-eyebrow--gold { color: var(--gold); }
.about-eyebrow--sage { color: var(--sage); }
 
.about-h1 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px;
  line-height: 70.4px;
  letter-spacing: -1.28px;
  color: var(--ink);
}
 
.about-heading-md {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
}
 
.about-body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-body);
}
.about-body p + p { margin-top: 24px; }
 
.about-lead {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 28.8px;
  color: var(--ink-body);
}
.about-lead p + p { margin-top: 24px; }
.about-lead--center { max-width: 672px; text-align: center; }
 
/* ---------- 1. GENESIS / INTRO ---------- */
.about-intro { padding-top: 52px; }
.about-intro__inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 708px;
}
.about-intro .about-h1 { margin-top: -2px; }
 
/* ---------- 2. ESTABLISHED IN ROME ---------- */
.about-portrait {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 60px;
}
.about-portrait__media {
  grid-column: 1 / span 7;
  background: var(--stone-warm);
  overflow: hidden;
  aspect-ratio: 761 / 449;
}
.about-portrait__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-portrait__aside {
  grid-column: 8 / span 4;
  padding-left: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-quote {
  border-left: 1px solid var(--gold);
  padding: 8px 0 8px 25px;
}
.about-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 19.6px;
  color: var(--ink-body);
}
 
/* ---------- 3. LINEAGE ---------- */
.about-legacy {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 120px;
}
.about-legacy__period {
  grid-column: 1 / span 2;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
}
.about-legacy__period span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 1.2px;
  color: var(--ink);
  white-space: nowrap;
}
.about-legacy__content {
  grid-column: 3 / span 6;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-legacy__content .about-body { margin-top: 12px; }
 
/* ---------- 4. A NEW VISION + CAROSELLO ---------- */
.about-vision {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 120px;
}
.about-vision__text {
  grid-column: 1 / span 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-vision__media { grid-column: 7 / span 6; }
 
/* Carosello */
.vision-carousel { position: relative; width: 100%; }
.vision-carousel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--stone-warm);
  overflow: hidden;
}
.vision-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(.2,.6,.2,1), visibility 0s linear 0.8s;
}
.vision-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(.2,.6,.2,1), visibility 0s;
}
.vision-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vision-carousel__controls {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
}
.vision-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.vision-carousel__arrow:hover { opacity: 0.55; }
.vision-carousel__arrow[data-dir="next"]:hover { transform: translateX(3px); }
.vision-carousel__arrow[data-dir="prev"]:hover { transform: translateX(-3px); }
.vision-carousel__count {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--ink-body);
  font-variant-numeric: tabular-nums;
}
.vision-carousel__caption {
  margin-top: 12px;
  min-height: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: var(--sage);
}
 
/* ---------- 5. PHILOSOPHY ---------- */
.about-philosophy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 896px;
  margin: 120px auto 0;
  padding: 80px var(--section-pad-x);
  text-align: center;
}
.about-philosophy .about-h1 { margin-top: 4px; }
.about-philosophy .about-lead { margin-top: 24px; }
.about-divider {
  display: block;
  width: 96px;
  height: 1px;
  background: var(--line-mute);
  margin-top: 32px;
}
 
/* ---------- 6. MISSION / CONTACT ---------- */
.about-closing {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 80px var(--section-pad-x);
}
.about-closing__col {
  border-top: 1px solid var(--line-soft);
  padding-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about-closing__col--mission { grid-column: 1 / span 4; }
.about-closing__col--contact { grid-column: 9 / span 4; }
.about-inquire {
  align-self: flex-start;
  margin-top: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
}
 
/* ============================================================
   ABOUT — RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .about-h1 { font-size: 48px; line-height: 1.1; letter-spacing: -1px; }
  .about-portrait__aside { padding-left: 40px; }
}
 
@media (max-width: 1024px) {
  .about-intro { padding-top: 40px; }
  .about-intro__inner { max-width: 100%; }
 
  .about-portrait,
  .about-legacy,
  .about-vision,
  .about-closing { grid-template-columns: 1fr; }
 
  .about-portrait { margin-top: 42px; }
  .about-portrait__media { grid-column: 1; aspect-ratio: 4 / 3; }
  .about-portrait__aside { grid-column: 1; padding-left: 0; }
 
  .about-legacy { margin-top: 72px; }
  .about-legacy__period,
  .about-legacy__content { grid-column: 1; }
  .about-legacy__period { border-bottom: 0; padding-bottom: 8px; }
  .about-legacy__content {border-top: none;}
 
  .about-vision { margin-top: 64px; }
  .about-vision__text { grid-column: 1; }
  .about-vision__media { grid-column: 1; }
 
  .about-philosophy { margin-top: 72px; padding: 64px var(--section-pad-x); }
  .about-philosophy .about-h1 { font-size: 40px; }
 
  .about-closing { padding: 64px var(--section-pad-x); gap: 48px; }
  .about-closing__col--mission,
  .about-closing__col--contact { grid-column: 1; }
  .about-closing__col--contact { border-top: 0; padding-top: 0; }
}
 
@media (max-width: 600px) {
  .about-h1 { font-size: 38px; }
  .about-heading-md { font-size: 26px; }
  .about-lead { font-size: 16px; line-height: 26px; }
}
 
/* Rispetta le preferenze di movimento ridotto */
@media (prefers-reduced-motion: reduce) {
  .vision-slide { transition: none; }
}

/* ============================================================
   WORKS / OPERE  (archive-opera.php)
   ============================================================ */
.works-main {
  background: var(--cream);
  padding-top: var(--header-h);
}

/* ---------- Hero / Title ---------- */
.works-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 52px var(--section-pad-x) 0;
  display: flex;
  flex-direction: column;
  gap: 23px;
}
.works-hero__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px;
  line-height: 70.4px;
  letter-spacing: -1.28px;
  color: var(--ink);
}
.works-hero__lead {
  max-width: 672px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 28.8px;
  color: var(--ink-body);
}

/* ---------- Filtro categorie ---------- */
.works-filter {
  max-width: var(--container-max);
  margin: 52px auto 0;
  padding: 0 var(--section-pad-x) 17px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.works-filter__btn {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: none;
  color: var(--ink-body);
  padding-bottom: 17px;
  margin-bottom: -17px;
  transition: color 0.3s ease;
}
.works-filter__btn::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.works-filter__btn:hover { color: var(--ink); opacity: 1; }
.works-filter__btn.is-active { color: var(--gold); }
.works-filter__btn.is-active::after { transform: scaleX(1); }

/* ---------- Dropdown filtro (mobile) ---------- */
.works-filter-mobile {
  display: none;                 /* visibile solo da mobile */
  position: relative;
  max-width: var(--container-max);
  margin: 40px auto 0;
  padding: 0 var(--section-pad-x);
}
.works-filter-mobile__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--cream-soft);
  border: 1px solid var(--bronze-line);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink);
}
.works-filter-mobile__chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.works-filter-mobile[data-open="true"] .works-filter-mobile__chevron {
  transform: rotate(-135deg);
}
.works-filter-mobile__panel {
  position: absolute;
  left: var(--section-pad-x);
  right: var(--section-pad-x);
  top: calc(100% + 6px);
  z-index: 20;
  background: var(--cream-soft);
  border: 1px solid var(--bronze-line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
}
.works-filter-mobile[data-open="true"] .works-filter-mobile__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s;
}
.works-filter-mobile__option {
  padding: 14px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--ink-body);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.works-filter-mobile__option + .works-filter-mobile__option {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.works-filter-mobile__option:hover { color: var(--ink); }
.works-filter-mobile__option.is-active { color: var(--gold); }

/* ---------- Gallery: griglia 12 colonne ---------- */
.works-gallery {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px var(--section-pad-x) 120px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 96px;
}

.opera { align-self: start; }
.opera.is-hidden { display: none; }
.opera__link { display: flex; flex-direction: column; gap: 24px; }

.opera__media {
  background: var(--stone-warm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.opera__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .6, .2, 1);
}
.opera:hover .opera__media img { transform: scale(1.04); }

.opera__meta { display: flex; flex-direction: column; gap: 5px; }
.opera__eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sage);
}
.opera__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--ink);
}
.opera__tecnica {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 19.6px;
  color: var(--ink-body);
}

/* ============================================================
   FIX HOVER WORKS GALLERY
   Disattiva l'opacity globale degli <a> sulle card opera,
   lascia attivo solo lo zoom dell'immagine.
   ============================================================ */
.opera__link:hover,
.opera__link:focus { opacity: 1; }

/* ---------- Ritmo asimmetrico (ciclo di 6 slot) ----------
   1 grande (8)        | 2 stretta sfalsata giù (4)
   3 media sfalsata (5)| 4 larga in alto (7)
   5 piccola (4)       | 6 larga rientrata (8)
*/
.opera[data-slot="0"] { grid-column: 1 / span 8; }
.opera[data-slot="0"] .opera__media { aspect-ratio: 3 / 4; }

.opera[data-slot="1"] { grid-column: 9 / span 4; margin-top: 128px; }
.opera[data-slot="1"] .opera__media { aspect-ratio: 4 / 5; }

.opera[data-slot="2"] { grid-column: 1 / span 5; margin-top: 48px; }
.opera[data-slot="2"] .opera__media { aspect-ratio: 1 / 1; }

.opera[data-slot="3"] { grid-column: 6 / span 7; }
.opera[data-slot="3"] .opera__media { aspect-ratio: 16 / 11; }

.opera[data-slot="4"] { grid-column: 1 / span 4; }
.opera[data-slot="4"] .opera__media { aspect-ratio: 4 / 5; }

.opera[data-slot="5"] { grid-column: 5 / span 8; }
.opera[data-slot="5"] .opera__media { aspect-ratio: 16 / 11; }

.works-empty {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 18px;
  color: var(--ink-body);
}

/* ============================================================
   OPERA — ZOOM CONTROL (lente) e MODAL
   ============================================================ */

/* Bottone lente: stessa altezza delle frecce, spinto a destra */
.opera-carousel__zoom {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--ink);
	margin-left: auto;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.opera-carousel__zoom:hover { opacity: 0.55; }
.opera-carousel__zoom:hover svg { transform: scale(1.08); }
.opera-carousel__zoom svg { transition: transform 0.3s ease; }

/* Body lock quando il modal è aperto */
body.zoom-open { overflow: hidden; }

/* Modal: full-screen cream */
.opera-zoom {
	position: fixed;
	inset: 0;
	z-index: 200;
	background: rgba(250, 249, 246, 0.97);
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 80px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s cubic-bezier(.2,.6,.2,1), visibility 0s linear 0.4s;
}
.opera-zoom[hidden] { display: none; }
.opera-zoom.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.4s cubic-bezier(.2,.6,.2,1), visibility 0s;
}

.opera-zoom__viewport {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 1400px;
}

.opera-zoom__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s cubic-bezier(.2,.6,.2,1), visibility 0s linear 0.4s;
}
.opera-zoom__slide.is-active {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.4s cubic-bezier(.2,.6,.2,1), visibility 0s;
}
.opera-zoom__slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* Close button */
.opera-zoom__close {
	position: absolute;
	top: 32px;
	right: 32px;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	z-index: 10;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.opera-zoom__close:hover { opacity: 0.55; transform: rotate(90deg); }

/* Frecce */
.opera-zoom__arrow {
	position: absolute;
	top: 50%;
	width: 48px;
	height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--ink);
	z-index: 10;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.opera-zoom__arrow:hover { opacity: 0.55; }
.opera-zoom__arrow--prev {
	left: 32px;
	transform: translateY(-50%);
}
.opera-zoom__arrow--next {
	right: 32px;
	transform: translateY(-50%);
}
.opera-zoom__arrow--prev:hover { transform: translateY(-50%) translateX(-4px); }
.opera-zoom__arrow--next:hover { transform: translateY(-50%) translateX(4px); }

/* Counter */
.opera-zoom__count {
	position: absolute;
	bottom: 32px;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 1.2px;
	color: var(--ink-body);
	font-variant-numeric: tabular-nums;
}

/* Responsive */
@media (max-width: 1024px) {
	.opera-zoom { padding: 60px 20px; }
	.opera-zoom__close { top: 16px; right: 16px; }
	.opera-zoom__arrow { width: 40px; height: 40px; }
	.opera-zoom__arrow--prev { left: 8px; }
	.opera-zoom__arrow--next { right: 8px; }
	.opera-zoom__count { bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.opera-zoom,
	.opera-zoom__slide,
	.opera-zoom__close,
	.opera-zoom__arrow,
	.opera-carousel__zoom svg { transition: none; }
}

/* ============================================================
   WORKS — RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .works-hero__title { font-size: 48px; line-height: 1.1; letter-spacing: -1px; }
}

@media (max-width: 1024px) {
  .works-hero { padding-top: 40px; }

  /* I tab lasciano il posto al dropdown */
  .works-filter { display: none; }
  .works-filter-mobile { display: block; }

  .works-gallery {
    padding: 64px var(--section-pad-x);
    grid-template-columns: 1fr;
    row-gap: 56px;
  }
  /* Reset ritmo: tutte a piena larghezza, nessun offset */
  .opera[data-slot] { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .opera[data-slot] .opera__media { aspect-ratio: 4 / 5; }
}

@media (max-width: 600px) {
  .works-hero__title { font-size: 38px; }
}

/* ============================================================
   SINGLE OPERA  (single-opera.php)
   ============================================================ */
.opera-single {
  background: var(--cream);
  padding-top: var(--header-h);
}

/* ---------- Hero ---------- */
.opera-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 56px var(--section-pad-x) 120px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.opera-hero__media {
  grid-column: 1 / span 7;
  background: var(--stone-warm);
  overflow: hidden;
  aspect-ratio: 800 / 804;
}
.opera-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.opera-hero__info {
  grid-column: 8 / span 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.opera-hero__eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--sage);
}
.opera-hero__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px;
  line-height: 68.4px;
  letter-spacing: -1.28px;
  color: var(--ink);
}
.opera-hero__detail {
  border-left: 1px solid var(--gold);
  padding-left: 25px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
.opera-hero__material {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--ink);
}
.opera-hero__period {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 28.8px;
  color: var(--ink-body);
}
.opera-hero__author {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 22px;
  line-height: 30.8px;
  letter-spacing: -0.3px;
  color: var(--ink-body);
}

@media (max-width: 1024px) {
  .opera-hero__author { font-size: 20px; }
}
.opera-hero__cta {
  align-self: flex-start;
  margin-top: 32px;
}

/* ============================================================
   OPERA — BACK LINK ("Tutte le opere")
   ============================================================ */
.opera-back {
	max-width: var(--container-max);
	margin: 0 auto;
	padding: 40px var(--section-pad-x) 0;
}

.opera-back__link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-sans);
	font-weight: 600;
	font-size: 12px;
	letter-spacing: 2.4px;
	text-transform: uppercase;
	color: var(--ink-body);
	transition: color 0.3s ease;
}
.opera-back__link:hover,
.opera-back__link:focus {
	opacity: 1;
	color: var(--ink);
}

.opera-back__arrow {
	flex-shrink: 0;
	color: currentColor;
	transition: transform 0.3s ease;
}
.opera-back__link:hover .opera-back__arrow,
.opera-back__link:focus .opera-back__arrow {
	transform: translateX(-4px);
}

/* Riduco il padding-top della hero quando segue il back link,
   così la distanza header → titolo resta compatta. */
.opera-back + .opera-hero {
	padding-top: 24px;
}

@media (max-width: 1024px) {
	.opera-back { padding: 24px var(--section-pad-x) 0; }
	.opera-back + .opera-hero { padding-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.opera-back__arrow { transition: none; }
}

/* ---------- The Essence ---------- */
.opera-essence {
  background: #f4f3f1;
  padding: 120px var(--section-pad-x);
}
.opera-essence__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.opera-essence__eyebrow {
  grid-column: 1 / span 2;
  align-self: start;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  text-transform: uppercase;
}
.opera-essence__content {
  grid-column: 4 / -1;
  columns: 2;
  column-gap: 64px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 29.25px;
  color: var(--ink);
}
.opera-essence__content p {
  break-inside: avoid;
  margin-bottom: 24px;
}
.opera-essence__content p:last-child { margin-bottom: 0; }

/* ---------- Provenance & Technical ---------- */
.opera-tech {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px var(--section-pad-x);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.opera-tech__provenance { grid-column: 1 / span 5; }
.opera-tech__specs { grid-column: 8 / span 5; }

.opera-tech .eyebrow { margin-bottom: 24px; }

.opera-prove-list { display: flex; flex-direction: column; }
.opera-prove-list li {
  padding: 0px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink);
}

.opera-spec-table { display: flex; flex-direction: column; }
.opera-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 6px;
}
.opera-spec-row + .opera-spec-row { padding-top: 6px; }
.opera-spec-row dt {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink-body);
  flex-shrink: 0;
}
.opera-spec-row dd {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink);
  text-align: right;
}

/* ---------- Related Works ---------- */
.opera-related {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px var(--section-pad-x);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.opera-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.opera-related__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 32px;
  line-height: 41.6px;
  color: var(--ink);
}
.opera-related__viewall {
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  white-space: nowrap;
}
.opera-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.opera-related__card a { display: flex; flex-direction: column; gap: 16px; }
.opera-related__media {
  background: var(--stone-warm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.opera-related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .6, .2, 1);
}
.opera-related__card:hover .opera-related__media img { transform: scale(1.04); }
.opera-related__eyebrow {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage);
}
.opera-related__name {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--ink);
}

/* ============================================================
   SINGLE OPERA — RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .opera-hero__title { font-size: 48px; line-height: 1.1; letter-spacing: -1px; }
}

@media (max-width: 1024px) {
  .opera-hero {
    grid-template-columns: 1fr;
    padding: 40px var(--section-pad-x) 80px;
  }
  .opera-hero__media { grid-column: 1; aspect-ratio: 4 / 5; }
  .opera-hero__info { grid-column: 1; }
  .opera-hero__cta { margin-top: 24px; }

  .opera-essence__content { grid-column: 1;columns: 1;}
  .opera-essence__inner { grid-template-columns: 1fr; }
  .opera-essence__eyebrow { grid-column: 1; }
  .opera-essence__col:nth-of-type(2),
  .opera-essence__col:nth-of-type(3) { grid-column: 1; }

  .opera-tech {
    grid-template-columns: 1fr;
    padding: 64px var(--section-pad-x);
    gap: 56px;
  }
  .opera-tech__provenance,
  .opera-tech__specs { grid-column: 1; }

  .opera-related { padding: 64px var(--section-pad-x); gap: 48px; }
  .opera-related__grid { grid-template-columns: 1fr; gap: 48px; }
  .opera-related__head { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 600px) {
  .opera-hero__title { font-size: 38px; }
}

/* ============================================================
   OPERA CAROUSEL  (hero della scheda singola)
   ============================================================ */
.opera-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Quando il carosello sostituisce .opera-hero__media il box di sfondo
   e l'aspect-ratio sono già definiti sul contenitore. Spostiamo questi
   vincoli sul viewport interno, così le slide riempiono lo stesso spazio. */
.opera-hero__media.opera-carousel {
  background: transparent;
  overflow: visible;
  aspect-ratio: auto;
}
.opera-carousel__viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 260px);
  max-height: 720px;
  min-height: 480px;
  background: var(--stone-warm);
  overflow: hidden;
}

.opera-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(.2, .6, .2, 1),
              visibility 0s linear 0.8s;
}
.opera-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s cubic-bezier(.2, .6, .2, 1), visibility 0s;
}
.opera-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.opera-carousel__controls {
  display: flex;
  align-items: center;
  gap: 22px;
}
.opera-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.opera-carousel__arrow:hover { opacity: 0.55; }
.opera-carousel__arrow[data-dir="next"]:hover { transform: translateX(3px); }
.opera-carousel__arrow[data-dir="prev"]:hover { transform: translateX(-3px); }
.opera-carousel__count {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--ink-body);
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .opera-slide { transition: none; }
  .opera-carousel__arrow { transition: none; }
}

/* ============================================================
   EVENTS  (archive-evento.php)
   ============================================================ */
.events-main {
  background: var(--cream);
  padding-top: var(--header-h);
}

/* ---------- Hero ---------- */
.events-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 52px var(--section-pad-x) 0;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.events-hero__title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px;
  line-height: 70.4px;
  letter-spacing: -1.28px;
  color: var(--ink);
}
.events-hero__lead {
  max-width: 708px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 29.25px;
  color: var(--ink-body);
}

/* ---------- Atomi condivisi Events ---------- */
.event-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}

.event-readmore {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--sage);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--sage);
}
.event-readmore--arrow span { transition: transform 0.3s ease; }
.event-readmore--arrow:hover span { transform: translateX(4px); }

/* ---------- Current & Upcoming ---------- */
.events-current {
  max-width: var(--container-max);
  margin: 72px auto 0;
  padding: 0 var(--section-pad-x);
}

/* Featured full-width: immagine (7) + testo (9–12) */
.event-featured {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 80px;
}
.event-featured__media {
  grid-column: 1 / span 7;
  display: block;
  aspect-ratio: 6 / 5;
  background: var(--stone-warm);
  overflow: hidden;
}
.event-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .6, .2, 1);
}
.event-featured:hover .event-featured__media img { transform: scale(1.04); }

.event-featured__body {
  grid-column: 9 / span 4;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.event-featured__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 32px;
  line-height: 41.6px;
  color: var(--ink);
}
.event-featured__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink-body);
}

/* Secondari: split asimmetrico (5 + 5, il pari sfalsato in basso) */
.event-secondary {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 120px;
}
.event-card { display: flex; flex-direction: column; gap: 8px; }
.event-card:nth-child(odd)  { grid-column: 1 / span 5; }
.event-card:nth-child(even) { grid-column: 8 / span 5; margin-top: 128px; }

.event-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  background: var(--stone-warm);
  overflow: hidden;
  margin-bottom: 15px;
}
.event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(.2, .6, .2, 1);
}
.event-card:hover .event-card__media img { transform: scale(1.04); }

.event-card__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--ink);
}
.event-card__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink-body);
}

/* ---------- Archive ---------- */
.events-archive {
  background: #f4f3f1;
  padding: 80px var(--section-pad-x);
  margin-top: 0;
}
.events-archive__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.events-archive__head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.events-archive__divider {
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.events-archive__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.events-archive__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.archive-item {
  grid-column: span 4;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  padding: 16px 0 16px 25px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.archive-item__year {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  line-height: 15px;
  color: #868382;
}
.archive-item__title {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--ink);
}
.archive-item__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-body);
}

/* ============================================================
   EVENTS — RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .events-hero__title { font-size: 48px; line-height: 1.1; letter-spacing: -1px; }
}

@media (max-width: 1024px) {
  .events-hero { padding-top: 40px; }
  .events-current { margin-top: 56px; }

  .event-featured,
  .event-secondary,
  .events-archive__grid { grid-template-columns: 1fr; }

  .event-featured__media { grid-column: 1; aspect-ratio: 4 / 5; }
  .event-featured__body  { grid-column: 1; }
  .event-featured        { padding-bottom: 56px; gap: 24px; }

  .event-card:nth-child(odd),
  .event-card:nth-child(even) { grid-column: 1; margin-top: 0; }
  .event-secondary { gap: 56px; }
  .event-card__media { aspect-ratio: 4 / 5; }

  .events-archive { padding: 64px var(--section-pad-x); }
  .events-archive__inner { gap: 48px; }
}

@media (max-width: 600px) {
  .events-hero__title { font-size: 38px; }
}

/* ============================================================
   SINGLE EVENTO  (single-evento.php)
   ============================================================ */
.evento-single {
  background: var(--cream);
  padding-top: var(--header-h);
}

/* ---------- Hero ---------- */
.evento-hero {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--section-pad-x) 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.evento-hero__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.evento-hero__heading {
  grid-column: 1 / span 7;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.evento-hero__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--ink);
}
.evento-hero__date {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.evento-hero__media {
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--stone-warm);
}
.evento-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Statement ---------- */
.evento-statement {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 97px var(--section-pad-x);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.evento-statement__inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.evento-statement__eyebrow {
  grid-column: 1 / span 2;
  align-self: start;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--gold);
}
.evento-statement__body {
  grid-column: 3 / span 9;
  padding-right: 48px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink);
}
.evento-statement__body p + p { margin-top: 26px; }

/* ---------- Back ---------- */
.evento-back {
  display: flex;
  justify-content: center;
  padding: 77px 0;
}
.evento-back__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--sage);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: var(--sage);
}
.evento-back__icon {
  transition: transform 0.3s ease;
}
.evento-back__link:hover { opacity: 1; }
.evento-back__link:hover .evento-back__icon { transform: translateX(-3px); }

/* ---------- Other Events ---------- */
.evento-archive {
  background: #f4f3f1;
  padding: 96px var(--section-pad-x) 200px;
}
.evento-archive__head {
  max-width: var(--container-max);
  margin: 0 auto 64px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.evento-archive__divider {
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.evento-archive__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
}
.evento-archive__grid {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}
.evento-archive__item:nth-child(1) { grid-column: 1 / span 4; }
.evento-archive__item:nth-child(2) { grid-column: 5 / span 4; }
.evento-archive__item:nth-child(3) { grid-column: 9 / span 4; }

.evento-archive__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border-left: 1px solid var(--line-soft);
  padding: 16px 0 16px 25px;
  height: 100%;
}
.evento-archive__card:hover { opacity: 1; }
.evento-archive__date {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 10px;
  line-height: 15px;
  color: #868382;
}
.evento-archive__name {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--ink);
}
.evento-archive__desc {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 14px;
  line-height: 21px;
  color: var(--ink-body);
}
.evento-archive__more {
  margin-top: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 1.2px;
  color: var(--sage);
}

/* ============================================================
   SINGLE EVENTO — RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .evento-hero { padding: 16px var(--section-pad-x) 0; gap: 40px; }
  .evento-hero__heading { grid-column: 1 / -1; }
  .evento-hero__media { height: 320px; }

  .evento-statement { padding: 64px var(--section-pad-x); }
  .evento-statement__inner { grid-template-columns: 1fr; gap: 16px; }
  .evento-statement__eyebrow { grid-column: 1; }
  .evento-statement__body { grid-column: 1; padding-right: 0; }

  .evento-back { padding: 56px 0; }

  .evento-archive { padding: 64px var(--section-pad-x) 96px; }
  .evento-archive__grid { grid-template-columns: 1fr; gap: 48px; }
  .evento-archive__item:nth-child(1),
  .evento-archive__item:nth-child(2),
  .evento-archive__item:nth-child(3) { grid-column: 1; }
}

@media (max-width: 600px) {
  .evento-hero__media { height: 240px; }
}

/* ============================================================
   CONTATTI  (page-contatti.php)
   ============================================================ */
.contatti-main {
  background: var(--cream);
  padding-top: var(--header-h);
}

.contatti-section {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

/* ---------- HERO / HEADLINE ---------- */
.contatti-hero {
  padding-top: 39px;
  display: flex;
  flex-direction: column;
  gap: 30.8px;
}
.contatti-hero__title {
  max-width: 739px;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px;
  line-height: 70.4px;
  letter-spacing: -1.28px;
  color: var(--ink);
}
.contatti-hero__lead {
  max-width: 576px;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 28.8px;
  color: var(--ink-body);
}

/* ---------- Eyebrow gold (riusabile in pagina) ---------- */
.contatti-eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- BENTO: DETAILS + MAP ---------- */
.contatti-bento {
  margin-top: 120px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.contatti-details {
  grid-column: 1 / span 4;
  display: flex;
  flex-direction: column;
  gap: 47px;
}
.contatti-block {
  display: flex;
  flex-direction: column;
  gap: 15.3px;
}
.contatti-block--comm { gap: 8px; }
.contatti-block--social { gap: 16px; }

.contatti-address {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 33.6px;
  color: var(--ink);
}

.contatti-line {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 33.6px;
  color: var(--ink);
}
.contatti-block--comm .contatti-line:first-of-type { margin-top: 8px; }

.contatti-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contatti-social__handle {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-mute);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink);
}
.contatti-social__arrow {
  flex-shrink: 0;
  color: var(--sage);
  transition: transform 0.3s ease;
}
.contatti-social:hover .contatti-social__arrow { transform: translate(2px, -2px); }

/* ---------- MAP ---------- */
.contatti-map {
  grid-column: 5 / span 8;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contatti-map__media {
  width: 100%;
  background: var(--stone-warm);
  overflow: hidden;
}
.contatti-map__media img {
  width: 100%;
  height: auto;     
  display: block;
}
.contatti-map__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.contatti-map__caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  line-height: 19.6px;
  color: var(--ink-body);
}
.contatti-map__link {
  flex-shrink: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- OPENING HOURS ---------- */
.contatti-hours {
  margin-top: 120px;
  padding-top: 49px;
  padding-bottom: 49px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.contatti-hours__head { grid-column: 1 / span 4; }
.contatti-hours__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  color: var(--sage);
}
.contatti-hours__grid {
  grid-column: 5 / span 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 32px;
}
.contatti-hours__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.contatti-hours__label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  line-height: 14.4px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
}
.contatti-hours__value {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 25.6px;
  color: var(--ink);
  text-align: right;
}

/* ============================================================
   CONTATTI — RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .contatti-hero__title { font-size: 48px; line-height: 1.1; letter-spacing: -1px; }
}

@media (max-width: 1024px) {
  .contatti-hero { padding-top: 40px; }
  .contatti-hero__title,
  .contatti-hero__lead { max-width: 100%; }

  .contatti-bento {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }
  .contatti-details { grid-column: 1; }
  .contatti-map { grid-column: 1; }

  .contatti-hours {
    grid-template-columns: 1fr;
    margin-top: 64px;
    gap: 32px;
  }
  .contatti-hours__head { grid-column: 1; }
  .contatti-hours__grid { grid-column: 1; }
}

@media (max-width: 600px) {
  .contatti-hero__title { font-size: 38px; }
  .contatti-map__foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contatti-hours__grid { grid-template-columns: 1fr; row-gap: 0; }
}

/* ============================================================
   OPERA — MAGNIFIER INLINE
   ============================================================ */

/* ---------- Bottone lente ---------- */
.opera-carousel__zoom {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--ink);
	margin-left: auto;
	transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.opera-carousel__zoom:hover { opacity: 0.55; }
.opera-carousel__zoom:hover svg { transform: scale(1.08); }
.opera-carousel__zoom svg { transition: transform 0.3s ease; }

/* Le due icone (on/off) — di default mostra solo "on" (lente con +) */
.opera-carousel__zoom-icon-off { display: none; }
.opera-carousel__zoom-icon-on  { display: block; }

/* Stato attivo: icona si tinge di oro per segnalare la modalità */
.opera-carousel[data-zoom-active="true"] .opera-carousel__zoom {
	color: var(--gold);
}
.opera-carousel[data-zoom-active="true"] .opera-carousel__zoom-icon-on  { display: none; }
.opera-carousel[data-zoom-active="true"] .opera-carousel__zoom-icon-off { display: block; }

/* ---------- Pannello magnifier ---------- */
.opera-carousel__lens {
	position: absolute;
	inset: 0;
	z-index: 5;
	background-color: var(--stone-warm);
	background-repeat: no-repeat;
	background-size: 250%;       /* fattore zoom */
	background-position: 50% 50%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

/* Quando lo zoom è attivo: pannello visibile + cursore + cattura eventi */
.opera-carousel[data-zoom-active="true"] .opera-carousel__lens {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	cursor: zoom-out;
	transition: opacity 0.3s ease, visibility 0s;
}

/* Quando lo zoom è attivo, il viewport ha cursore zoom-in fuori dal lens (per consistenza) */
.opera-carousel[data-zoom-active="true"] .opera-carousel__viewport {
	cursor: zoom-out;
}

/* Touch: blocco scroll sull'area lens così il pan-touch funziona */
.opera-carousel__lens { touch-action: none; }

@media (prefers-reduced-motion: reduce) {
	.opera-carousel__lens,
	.opera-carousel__zoom,
	.opera-carousel__zoom svg { transition: none; }
}

/* ============================================================
   NEWSLETTER
   ============================================================ */

/* Wrapper del <form> generato da MC4WP — riprende il layout del vecchio .newsletter-section__form */
.newsletter-section .mc4wp-form {
	width: 100%;
	max-width: 576px;
	margin: 0 auto;
	padding-top: 16px;
}

.newsletter-section .mc4wp-form-fields {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

/* Riga input + bottone */
.newsletter-section__form-row {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: center;
}

/* Checkbox di consenso */
.newsletter-section__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: var(--earth);
	text-align: left;
	padding: 4px 0;
}
.newsletter-section__consent input[type="checkbox"] {
	flex-shrink: 0;
	margin-top: 3px;
	width: 14px;
	height: 14px;
	accent-color: var(--bronze);
	cursor: pointer;
}
.newsletter-section__consent a {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.newsletter-section__consent a:hover { opacity: 0.7; }

/* Override del paragrafo privacy quando dentro al form MC4WP */
.newsletter-section .mc4wp-form .newsletter-section__privacy {
	padding-top: 0;
	margin-top: 0;
	text-align: center;
}

/* Messaggi di risposta MC4WP */
.newsletter-section .mc4wp-response {
	width: 100%;
	margin-top: 8px;
}
.newsletter-section .mc4wp-alert {
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
	text-align: center;
	padding: 12px 16px;
	margin: 0;
}
.newsletter-section .mc4wp-success {
	color: var(--earth);
	background: rgba(133, 164, 167, 0.12);
	border: 1px solid var(--sage);
}
.newsletter-section .mc4wp-error,
.newsletter-section .mc4wp-notice {
	color: var(--bronze);
	background: var(--bronze-soft);
	border: 1px solid var(--bronze-line);
}

@media (max-width: 1024px) {
	.newsletter-section__consent { font-size: 13px; }
}

/* ============================================================
   LOGO SWITCH HEADER (dark ↔ light)
   - Default: mostra logo dark (PNG colorato)
   - Solo su homepage in cima (header trasparente): mostra logo light (SVG bianco)
   - Footer: sempre logo light (sfondo scuro)
   ============================================================ */

.site-branding-marks {
	position: relative;
	display: inline-block;
	height: 49px;
	width: auto;
}

.site-branding-marks .logo-img {
	display: block;
	height: 100%;
	width: auto;
	transition: opacity 0.4s ease;
}

/* Light absolute sopra il dark, di default invisibile */
.site-branding-marks .logo-img--light {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

/* Homepage in cima → fade-in del light, fade-out del dark */
.has-transparent-header .site-header:not(.is-scrolled) .logo-img--dark  { opacity: 0; }
.has-transparent-header .site-header:not(.is-scrolled) .logo-img--light { opacity: 1; }

/* FOOTER (sfondo scuro): solo logo light */
.site-footer .site-branding-marks .logo-img--dark  { display: none; }
.site-footer .site-branding-marks .logo-img--light {
	position: relative;
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.site-branding-marks .logo-img { transition: none; }
}

/* ============================================================
   LEGAL PAGE  (page-legal.php — Privacy / Cookie Policy)
   ============================================================ */
.legal-main {
  background: var(--cream);
  padding-top: var(--header-h);
}

/* ---------- Header ---------- */
.legal-header {
  border-bottom: 1px solid var(--line-soft);
}
.legal-header__inner {
  margin: 0 auto;
  padding: 52px var(--section-pad-x) 40px;
}
.legal-title {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 64px;
  line-height: 70.4px;
  letter-spacing: -1.28px;
  color: var(--ink);
}

/* ---------- Body ---------- */
.legal-body {
  padding: 80px var(--section-pad-x) 120px;
}
.legal-body__inner {
  margin: 0 auto;

  /* Tipografia base */
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 26px;
  color: var(--ink-body);
}

/* Headings interni generati dall'editor */
.legal-body__inner h2 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 24px;
  line-height: 33.6px;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 16px;
}
.legal-body__inner h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2px;
  color: var(--ink);
  margin-top: 32px;
  margin-bottom: 10px;
}

/* Paragrafi */
.legal-body__inner p { margin-bottom: 20px; }
.legal-body__inner p:last-child { margin-bottom: 0; }

/* Liste */
.legal-body__inner ul,
.legal-body__inner ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.legal-body__inner ul { list-style: disc; }
.legal-body__inner ol { list-style: decimal; }
.legal-body__inner li { margin-bottom: 8px; }

/* Link */
.legal-body__inner a {
  color: var(--bronze);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-body__inner a:hover { opacity: 0.7; }

/* Linea separatore orizzontale */
.legal-body__inner hr {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 48px 0;
}

/* ============================================================
   LEGAL — RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .legal-title { font-size: 48px; line-height: 1.1; letter-spacing: -1px; }
}

@media (max-width: 1024px) {
  .legal-header__inner { padding: 40px var(--section-pad-x) 32px; }
  .legal-body { padding: 56px var(--section-pad-x) 80px; }
  .legal-body__inner h2 { font-size: 20px; margin-top: 40px; }
}

@media (max-width: 600px) {
  .legal-title { font-size: 36px; }
  .legal-body__inner { font-size: 15px; line-height: 25px; }
}

/* ============================================================
   HOMEPAGE — ANIMATIONS
   Stati iniziali "nascosti", gated da .adfa-anim su <html>.
   Sostituisce TUTTI i blocchi anim precedenti.
   ============================================================ */

/* ---------- Hero: body / location / scroll hint ---------- */
html.adfa-anim .hero__body,
html.adfa-anim .hero__location,
html.adfa-anim .hero__scroll {
	opacity: 0;
	transform: translateY(20px);
	will-change: opacity, transform;
}

/* ---------- Hero: titolo split per lettera ---------- */
html.adfa-anim .hero__title:not(.is-split) {
	visibility: hidden;
}

html.adfa-anim .hero__title.is-split .char {
	display: inline-block;
	opacity: 0;
	transform: translateY(30px);
	will-change: opacity, transform;
}

html.adfa-anim .hero__title.is-split .word {
	display: inline-block;
	white-space: nowrap;
}

/* ---------- Collection: slide-up sul titolo sezione ---------- */
html.adfa-anim .collection .section-title {
	opacity: 0;
	transform: translateY(30px);
	will-change: opacity, transform;
}

/* ---------- Reduced motion: bypass ---------- */
@media (prefers-reduced-motion: reduce) {
	html.adfa-anim .hero__body,
	html.adfa-anim .hero__location,
	html.adfa-anim .hero__scroll,
	html.adfa-anim .collection .section-title {
		opacity: 1;
		transform: none;
	}

	html.adfa-anim .hero__title:not(.is-split) {
		visibility: visible;
	}

	html.adfa-anim .hero__title.is-split .char {
		opacity: 1;
		transform: none;
	}
}

html.adfa-anim .about-h1,
html.adfa-anim .works-hero__title,
html.adfa-anim .opera-hero__title,
html.adfa-anim .events-hero__title,
html.adfa-anim .contatti-hero__title,
html.adfa-anim .legal-title {
	opacity: 0;
	transform: translateY(30px);
	will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
	html.adfa-anim .about-h1,
	html.adfa-anim .works-hero__title,
	html.adfa-anim .opera-hero__title,
	html.adfa-anim .events-hero__title,
	html.adfa-anim .contatti-hero__title,
	html.adfa-anim .legal-title {
		opacity: 1;
		transform: none;
	}
}

.footer-bottom__left {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.footer-bottom__madeby {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-sans);
	font-weight: 400;
	font-size: 13px;
	line-height: 1;
	color: var(--on-dark-40);
	transition: opacity 0.3s ease;
}
.footer-bottom__madeby:hover { opacity: 0.85; }
.footer-bottom__madeby img {
	height: 14px;
	width: auto;
	display: block;
	opacity: 0.7;
}