/* =============================================
   LA ROMANTICA CESENATICO — Common Styles
   Shared across all pages
   ============================================= */

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

:root {
  --primary: #1A1A1A;
  --primary-light: #2E2E2E;
  --secondary: #9A3412;
  --secondary-light: #C2410C;
  --accent: #A16207;
  --accent-light: #CA8A04;
  --bg: #FBF7F0;
  --bg-warm: #F5EDE0;
  --bg-dark: #111111;
  --text: #2C2418;
  /* WCAG AA contrast ≥4.5:1 on --bg #FBF7F0 */
  --text-muted: #6B5E50; /* 5.4:1 */
  --text-light: #6E6557; /* 5.0:1 — era #B8AD9E (2.06:1, fuori AA) */
  --white: #FFFFFF;
  --border: #E6DED2;

  --font-display: 'Playfair Display SC', serif;
  --font-body: 'Karla', sans-serif;
  --font-accent: 'Cormorant', serif;

  --max-width: 1200px;
  --section-padding: clamp(5rem, 10vw, 9rem);
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}

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

/* Touch optimization */
a, button, input, select, textarea { touch-action: manipulation; }

/* Focus states (accessibility) */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Remove default outline only when not using keyboard */
:focus:not(:focus-visible) { outline: none; }

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 2px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
}

/* Screen-reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: 780px;
}

/* ===== DEFAULT PAGE TEMPLATE (Privacy, Cookie, Accessibility, generiche) ===== */
.page-hero {
  padding: clamp(7rem, 13vw, 11rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--primary); /* scuro per coerenza col nav bianco sovrapposto */
  text-align: center;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.page-hero__subtitle {
  color: rgba(255,255,255,0.82); /* WCAG AA su --primary */
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}
.page-body {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(5rem, 10vw, 8rem);
}
.page-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 400;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: 0.02em;
}
.page-body h2:first-child { margin-top: 0; }
.page-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--primary);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: 0.02em;
}
.page-body p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.page-body ul,
.page-body ol {
  margin: 1rem 0 1.5rem 1.5rem;
  line-height: 1.8;
  color: var(--text);
}
.page-body ul li,
.page-body ol li {
  margin-bottom: 0.5rem;
}
.page-body a {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-body a:hover,
.page-body a:focus-visible {
  color: var(--primary);
}
.page-updated {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ===== TYPOGRAPHY ===== */
.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.accent-text {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
}

.body-text {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-muted);
}

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ===== DECORATIVE LINE ===== */
.deco-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 1.5rem 0;
}

.deco-line--center { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--secondary);
  color: var(--white);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn--primary:hover::before { transform: translateY(0); }
.btn--primary span { position: relative; z-index: 1; }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(-10px);
}

.nav--visible {
  opacity: 1;
  transform: translateY(0);
}

.nav--scrolled {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.875rem 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 110;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--white);
  flex-shrink: 0;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav__logo-text {
  display: block;
}

.nav__logo span {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  opacity: 0.6;
  margin-top: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav__links li {
  background: none;
  padding: 0;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--white); }

.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }

/* Prenota / Book / Reservieren — CTA button */
.nav__links a[href*="prenota"],
.nav__links a[href*="/book"],
.nav__links a[href*="/reservieren"] {
  padding: 0.5rem 1.25rem;
  background: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 2px;
  color: var(--white) !important;
  letter-spacing: 0.1em;
  transition: background 0.3s, border-color 0.3s;
}
.nav__links a[href*="prenota"]:hover,
.nav__links a[href*="/book"]:hover,
.nav__links a[href*="/reservieren"]:hover {
  background: var(--secondary-light);
  border-color: var(--secondary-light);
}
.nav__links a[href*="prenota"]::after,
.nav__links a[href*="/book"]::after,
.nav__links a[href*="/reservieren"]::after { display: none; }

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-direction: row-reverse;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav__lang-item {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0.5rem 0.625rem;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: color 0.3s;
}

.nav__lang-item:hover {
  color: rgba(255,255,255,0.7);
}

.nav__lang-item--active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav__cta {
  padding: 0.625rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__cta:hover {
  background: var(--secondary);
  border-color: var(--secondary);
}

.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* WCAG 2.5.8 AA target size ≥24px — usiamo 44x44 (AAA raccomandato) */
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  position: relative;
  z-index: 110;
}

.nav__mobile-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* Hamburger → X animation */
.nav__mobile-toggle--open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__mobile-toggle--open span:nth-child(2) {
  opacity: 0;
}

.nav__mobile-toggle--open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ===== MOBILE PANEL ===== */
.nav__mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  z-index: 105;
  clip-path: circle(0% at calc(100% - 40px) 30px);
  transition: clip-path 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav__mobile-panel--open {
  clip-path: circle(150% at calc(100% - 40px) 30px);
}

.nav__mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav__mobile-links a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color 0.3s;
}

.nav__mobile-links a:hover {
  color: var(--accent);
}

.nav__mobile-lang {
  display: flex;
  gap: 0.25rem;
}

.nav__mobile-lang a {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  transition: color 0.3s;
}

.nav__mobile-lang a:hover { color: rgba(255,255,255,0.7); }

.nav__mobile-lang .nav__lang-item--active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav__mobile-cta {
  margin-top: 0.5rem;
}

body.mobile-menu-open {
  overflow: hidden;
}

/* ===== MARQUEE ===== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.marquee--dark {
  border-color: rgba(255,255,255,0.08);
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.marquee--dark::before {
  background: linear-gradient(to right, var(--primary), transparent);
}

.marquee--dark::after {
  background: linear-gradient(to left, var(--primary), transparent);
}

.marquee__track {
  display: flex;
  gap: 4rem;
  animation: marqueeScroll 30s linear infinite;
  width: max-content;
}

/* WCAG 2.2.2 — pause animation on hover + keyboard focus */
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

/* Make marquee focusable from keyboard so animation can be paused */
.marquee {
  outline: none;
}
.marquee:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--text-muted);
  flex-shrink: 0;
}

/* WCAG 1.4.3 — contrast on dark bg ≥4.5:1 (rgba 0.7 = ~7.4:1 su #111) */
.marquee--dark .marquee__item {
  color: rgba(255,255,255,0.7);
}

.marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.5;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  filter: blur(6px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  filter: blur(6px);
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

/* Stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ===== CONTATTI & ORARI (shared) ===== */
.contatti__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 1rem 2rem;
  background: #25D366;
  color: var(--white);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.contatti__whatsapp::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1DA851;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contatti__whatsapp:hover::before { transform: scaleX(1); }
.contatti__whatsapp svg,
.contatti__whatsapp span { position: relative; z-index: 1; }

/* ===== FOOTER (full-width with map) ===== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.5);
}

.footer__map-wrap {
  width: 100%;
  height: clamp(300px, 35vw, 450px);
  position: relative;
}

.footer__map {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.1) brightness(0.85);
  transition: filter 0.5s;
}

.footer__map:hover {
  filter: grayscale(0.3) contrast(1) brightness(1);
}

.footer__content {
  padding: clamp(3rem, 6vw, 5rem) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  color: var(--white);
}

.footer__logo span {
  display: block;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.footer__social {
  display: flex;
  gap: 0.75rem;
}

.footer__social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 2px;
  color: rgba(255,255,255,0.6);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer__social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.25rem;
}

.footer__orari-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__orari-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__orari-row:last-child { border: none; }

.footer__closed {
  font-style: italic;
  color: rgba(255,255,255,0.5);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  /* WCAG 1.4.3 — contrast ≥4.5:1 su --bg-dark #111 */
  color: rgba(255,255,255,0.78);
  transition: color 0.3s;
  /* WCAG 2.5.8 AA — target size ≥24x24px */
  min-height: 44px;
  padding: 0.5rem 0;
}

.footer__contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
}

.footer__contact-item:hover {
  color: var(--white);
}

.footer__bar {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.5rem 0;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.8125rem;
  /* WCAG 1.4.3 — contrast OK su sfondo scuro */
  color: rgba(255,255,255,0.78);
  transition: color 0.3s;
  /* WCAG 2.5.8 AA — target size ≥24x24px */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0;
}

.footer__links a:hover,
.footer__links a:focus-visible { color: var(--white); }

.footer__credits {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  width: 100%;
  text-align: center;
  margin-top: 0.5rem;
}

.footer__credits a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  transition: color 0.3s;
}

.footer__credits a:hover,
.footer__credits a:focus-visible { color: var(--white); }

/* ===== THEME FORMS ===== */
.lr-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.lr-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.lr-form__row--three {
  grid-template-columns: 1fr 1fr 1fr;
}

.lr-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.lr-form__field label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text, #2C2418);
}

.lr-form__field input,
.lr-form__field select,
.lr-form__field textarea {
  font-family: var(--font-body, 'Karla', sans-serif);
  font-size: 16px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  background: var(--white, #fff);
  color: var(--text, #2C2418);
  transition: border-color 0.3s;
  width: 100%;
}

.lr-form__field input:focus,
.lr-form__field select:focus,
.lr-form__field textarea:focus {
  border-color: var(--secondary, #9A3412);
  outline: 2px solid var(--secondary, #9A3412);
  outline-offset: -2px;
}

.lr-form__field input:focus:not(:focus-visible),
.lr-form__field select:focus:not(:focus-visible),
.lr-form__field textarea:focus:not(:focus-visible) {
  outline: none;
}

.lr-form__field textarea {
  resize: vertical;
  min-height: 80px;
}

.lr-form__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C2418' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.lr-form__privacy {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted, #6B5E50);
}

.lr-form__privacy-text {
  margin-bottom: 0.75rem;
}

.lr-form__privacy-text a,
.lr-form__checkbox a {
  color: var(--secondary, #9A3412);
  text-decoration: underline;
}

.lr-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.lr-form__checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--secondary, #9A3412);
}

.lr-form__submit {
  align-self: flex-start;
  min-width: 200px;
}

.lr-form__success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  color: #166534;
  font-weight: 500;
}

.lr-form__error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  padding: 1rem;
  color: #8b0f0f; /* WCAG AA: ≥4.5:1 su sfondo bianco */
  font-size: 0.875rem;
}
.lr-form__error:focus-visible {
  outline: 2px solid #8b0f0f;
  outline-offset: 2px;
}

/* Field-level error message (WCAG 3.3.1, 3.3.3) */
.lr-form__field-error {
  display: block;
  margin-top: 0.375rem;
  color: #8b0f0f; /* WCAG AA: ≥4.5:1 */
  font-size: 0.8125rem;
  font-weight: 500;
}
.lr-form__field input[aria-invalid="true"],
.lr-form__field select[aria-invalid="true"],
.lr-form__field textarea[aria-invalid="true"] {
  border-color: #8b0f0f;
  box-shadow: 0 0 0 1px #8b0f0f;
}

.lr-form__submit:disabled,
.lr-form__submit[aria-disabled="true"] {
  opacity: 0.6;
  cursor: wait;
  pointer-events: none;
}

/* Inline variant (newsletter) */
.lr-form--inline {
  gap: 1rem;
}

@media (max-width: 768px) {
  .lr-form__row,
  .lr-form__row--three {
    grid-template-columns: 1fr;
  }
}

/* ===== RESPONSIVE (common) ===== */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__mobile-toggle { display: flex; }
  .nav__lang { display: none; }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__brand { align-items: center; }
  .footer__social { justify-content: center; }
  .footer__orari-row { justify-content: center; gap: 1.5rem; }
  .footer__contact-list { align-items: center; }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  /* i link restano target da 44px (WCAG 2.5.8): si stringe solo lo spazio fra le righe */
  .footer__links {
    justify-content: center;
    row-gap: 0;
  }
}

/* ===== FOOTER NEWSLETTER ===== */
.footer__newsletter {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.footer__newsletter-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(1.5rem, 3vw, 2rem);
  max-width: 600px;
  margin: 0 auto;
}

.footer__newsletter-text {
  flex-shrink: 0;
}

.footer__newsletter-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__newsletter-subtitle {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(255,255,255,0.6);
}

.footer__newsletter-form {
  width: 100%;
}

.footer__newsletter-row {
  display: flex;
  gap: 0.625rem;
}

.footer__newsletter-row .lr-form__field {
  flex: 1;
}

.footer__newsletter-row .lr-form__field input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
}

.footer__newsletter-row .lr-form__field input::placeholder {
  color: var(--text-muted);
}

.footer__newsletter-row .lr-form__field input:focus {
  border-color: var(--accent);
  outline-color: var(--accent);
}

.footer__newsletter-form .lr-form__privacy {
  margin-top: 0.5rem;
}

.footer__newsletter-form .lr-form__checkbox span {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.35);
}

.footer__newsletter-form .lr-form__checkbox a {
  color: var(--accent);
}

.footer__newsletter-form .lr-form__checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
}

.btn--small {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.footer__newsletter-form .lr-form__success {
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  padding: 0.75rem;
  font-size: 0.875rem;
}

.footer__newsletter-form .lr-form__error {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .footer__newsletter-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .footer__newsletter-row {
    flex-direction: column;
  }
  .footer__newsletter-row .lr-form__submit {
    width: 100%;
  }
  .footer__newsletter-form .lr-form__checkbox {
    justify-content: center;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
  /* WCAG 2.3.3 — stop animation entirely for users who requested reduced motion */
  .marquee__track {
    animation: none;
  }
  /* Disable all CSS animations globally except those needed for functionality */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
