/* ==========================================================================
   BOOMER CLASSIC — Old England Vintage Style
   Palette 60s/70s: Senape, Ruggine, Verde British, Crema, Bordeaux, Cuoio.
   ========================================================================== */

/*
   IDENTITÀ TIPOGRAFICA
   - BOOMER CLASSIC / decorativi: Riesling (con fallback Art Déco)
   - Titoli: League Gothic
   - Sottotitoli / UI: Josefin Sans Light/Regular
   - Testo: Lora
   - Numeri / date: Bebas Neue
*/
/* --------------------------------------------------------------------------
   1. DESIGN TOKENS & VARIABILI
   -------------------------------------------------------------------------- */
:root {
  --cream: #f4ead5;
  --cream-2: #ebe0c4;
  --paper: #f8f1df;
  --ink: #1c1611;
  --ink-soft: #3a2e22;
  --mustard: #c9962b;
  --mustard-dark: #9a6f18;
  --rust: #a8431e;
  --burgundy: #6b1f22;
  --british-green: #1f3a2c;
  --british-green-2: #2f5a44;
  --leather: #6d3b1f;
  --line: #7b5a2a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: 
    radial-gradient(circle at 20% 10%, rgba(107, 31, 34, 0.05), transparent 40%),
    radial-gradient(circle at 80% 90%, rgba(31, 58, 44, 0.06), transparent 40%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0.15 0 0 0 0 0.04 0 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>") 
    var(--cream);
}

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

a {
  color: var(--burgundy);
  text-decoration: none;
}

a:hover {
  color: var(--rust);
}

button, 
input, 
textarea, 
select {
  border-radius: 0;
  max-width: 100%;
}

::selection {
  background: var(--mustard);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   3. FONT & TIPOGRAFIA — BOOMER CLASSIC
   -------------------------------------------------------------------------- */

/* === FONT LOCALE: Dash Horizon (legacy) === */
@font-face {
  font-family: 'Dash Horizon';
  src: url('../font/Dash-Horizon-Demo.woff2') format('woff2'),
       url('../font/Dash-Horizon-Demo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* === CLASSI FONT RIUTILIZZABILI === */
.font-dash {
  font-family: 'Riesling', 'Poiret One', 'Josefin Sans', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.font-dash-alt {
  font-family: 'Riesling', 'Poiret One', 'Josefin Sans', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* === WORDMARK ART DÉCO === */
.brand-wordmark,
.logo-boomer-classic {
  font-family: 'Riesling', 'Poiret One', 'Josefin Sans', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.055em;
  line-height: 0.9;
  color: var(--cream);
  -webkit-text-stroke: 1px var(--cream);
  text-shadow:
    2px 0 0 var(--ink),
    -2px 0 0 var(--ink),
    0 2px 0 var(--ink),
    0 -2px 0 var(--ink);
}

.brand-wordmark.inline,
.logo-boomer-classic.inline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--mustard);
  text-shadow:
    0 0 0 var(--mustard),
    3px 3px 0 var(--ink);
}

/* === TIPOGRAFIA BASE === */
h1, h2, h3, h4 {
  font-family: 'League Gothic', sans-serif;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: 0.04em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.45rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 600; }

.display-serif {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
}

.old-english {
  font-family: 'Riesling', 'Poiret One', 'Josefin Sans', sans-serif;
  letter-spacing: 0.08em;
  color: var(--mustard);
}

.eyebrow {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.50rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--mustard-dark);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--mustard);
  margin-bottom: 18px;
}

.divider-ornament {
  text-align: center;
  margin: 18px auto;
  color: var(--mustard);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
}

time,
.date,
.data,
.meta-date,
.card-meta .date {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
}

.breadcrumb {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--mustard);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--cream-2);
}

.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;
}

/* --------------------------------------------------------------------------
   4. LAYOUT GENERALE & SEZIONI
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 40px;
}

.detail-img {
  width: 100%;
  height: auto;
  border-radius: 2px;
  border: 1px solid rgba(123, 90, 42, 0.35);
  box-shadow: 0 8px 24px rgba(28, 22, 17, 0.12);
}

.section {
  padding: 45px 0;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid rgba(123, 90, 42, 0.2);
  border-bottom: 1px solid rgba(123, 90, 42, 0.2);
}

.section-dark {
  background: var(--ink);
  color: var(--cream);
}

.section-dark h1, 
.section-dark h2, 
.section-dark h3 {
  color: var(--cream);
}

.section-dark .eyebrow {
  color: var(--mustard);
  border-color: var(--mustard);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-header p {
  color: var(--ink-soft);
  margin-top: 14px;
}

/* --------------------------------------------------------------------------
   5. HEADER & NAVIGAZIONE
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--cream);
  border-bottom: 3px double var(--mustard);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.nav-hidden {
  transform: translateY(-100%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
  min-height: 160px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--cream);
  text-decoration: none;
}

.brand-logo {
  height: 130px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.brand-banner {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cream);
  padding: 10px 14px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--mustard);
  border-color: var(--mustard);
}

.header-stripe {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--mustard) 0 40px,
    var(--burgundy) 40px 80px,
    var(--british-green) 80px 120px,
    var(--cream) 120px 160px
  );
  opacity: 0.85;
}

/* --------------------------------------------------------------------------
   5.1 BURGER MENU PER DISPOSITIVI MOBILE
   -------------------------------------------------------------------------- */
.burger-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 42px;
  height: 38px;
  padding: 8px 6px;
  background: transparent;
  border: 1px solid var(--mustard);
  border-radius: 2px;
  cursor: pointer;
  z-index: 60;
  transition: all 0.3s ease;
}

.burger-toggle:hover {
  background: rgba(201, 150, 43, 0.15);
}

.burger-bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--mustard);
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.burger-toggle.is-active .burger-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger-toggle.is-active .burger-bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.burger-toggle.is-active .burger-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media screen and (max-width: 900px) {
  .header-inner {
    min-height: auto;
    padding: 12px 18px;
    position: relative;
  }

  .brand-logo {
    height: 60px !important;
  }

  .brand-banner {
    height: 45px;
  }

  .burger-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: var(--ink);
    border-top: 2px solid var(--mustard);
    border-bottom: 3px double var(--mustard);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 55;
  }

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

  .site-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    border: none;
    border-left: 4px solid transparent;
    border-bottom: 1px solid rgba(123, 90, 42, 0.15);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: var(--mustard);
    background: rgba(201, 150, 43, 0.08);
    border-left-color: var(--mustard);
    border-top: none;
    border-right: none;
  }
}

@media screen and (max-width: 480px) {
  .brand-banner {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   5.2 SELETTORE LINGUA (IT / EN)
   Desktop: dentro il menu, a destra dell'ultima voce.
   Mobile : a sinistra del burger menu (fuori dal menu a tendina).
   -------------------------------------------------------------------------- */
.header-tools {
  display: none;
  align-items: center;
  gap: 12px;
}

.site-nav {
  align-items: center;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch--mobile {
  display: none;
}

.site-nav .lang-switch__item,
.lang-switch__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.6;
  text-transform: none;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.site-nav .lang-switch--desktop {
  margin-left: 8px;
}

.site-nav a.lang-switch__item:hover,
a.lang-switch__item:hover,
a.lang-switch__item:focus-visible {
  opacity: 1;
  color: var(--cream);
  border-color: var(--mustard);
  background: transparent;
}

.site-nav .lang-switch__item.is-current,
.lang-switch__item.is-current {
  opacity: 1;
  border-color: var(--mustard);
}

.lang-switch__flag {
  display: block;
  height: 20px;
  width: auto;
}

.lang-switch__code {
  display: block;
  min-width: 22px;
  padding: 2px;
  text-align: center;
}

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

@media screen and (max-width: 900px) {
  .header-tools {
    display: flex;
  }

  .lang-switch--mobile {
    display: inline-flex;
  }

  .lang-switch--desktop {
    display: none;
  }

  /* l'ultima voce di menu non è più :last-child (c'è il selettore desktop, nascosto) */
  .site-nav > a:last-of-type {
    border-bottom: none;
  }
}

/* --------------------------------------------------------------------------
   6. HERO SECTIONS
   -------------------------------------------------------------------------- */
.hero,
.hero-contact {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
  border-bottom: 4px solid var(--mustard);
  padding-top: 180px; 
  padding-bottom: 60px;
}

.hero-contact {
  background:
    linear-gradient(rgba(28, 22, 17, 0.60), rgba(28, 22, 17, 0.85)),
    url('../assets/img/postino.jpeg') center/cover no-repeat;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(28, 22, 17, 0.60), rgba(28, 22, 17, 0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-inner {
  padding: 120px 0;
  max-width: 820px;
}

.hero h1 {
  color: var(--cream);
}

.hero h1 .old-english {
  display: block;
  font-family: 'Riesling', 'Poiret One', 'Josefin Sans', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem); 
  color: var(--mustard);
  margin: 12px 0;
}

.hero p.lede {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--cream-2);
  max-width: 620px;
  margin: 24px 0 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.page-hero,
.page-hero-tours,
.page-hero-tour,
.page-hero-contact,
.page-hero-blog,
.page-hero-marca,
.page-hero-moto {
  position: relative;
  padding: 180px 0 240px;
  color: var(--cream);
  text-align: center;
  border-bottom: 4px solid var(--mustard);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-hero.has-bg-img,
.page-hero-tours.has-bg-img,
.page-hero-tour.has-bg-img,
.page-hero-contact.has-bg-img,
.page-hero-blog.has-bg-img,
.page-hero-marca.has-bg-img,
.page-hero-moto.has-bg-img {
  background-image: 
    linear-gradient(rgba(28, 22, 17, 0.7), rgba(28, 22, 17, 0.85)),
    var(--hero-background);
}

.page-hero .container,
.page-hero-tour .container,
.page-hero-moto .container {
  position: relative;
  z-index: 3;
}

.page-hero {
  background-image: 
    linear-gradient(rgba(28, 22, 17, 0.7), rgba(28, 22, 17, 0.85)),
    url('../img/vintage-motorcycle-poster.webp');
}

.page-hero-tours {
  background-image: 
    linear-gradient(rgba(28, 22, 17, 0.7), rgba(28, 22, 17, 0.85)),
    url('../img/tours.jpeg');
}

.page-hero-tour {
  background-image: 
    linear-gradient(rgba(28, 22, 17, 0.7), rgba(28, 22, 17, 0.85)),
    url('../img/tours.jpeg'); /* [v2] prima puntava a un .mp4, non valido come immagine di sfondo */
}

.page-hero-contact {
  background-image: 
    linear-gradient(rgba(28, 22, 17, 0.7), rgba(28, 22, 17, 0.85)),
    url('../img/postino.jpeg');
}

.page-hero-blog {
  background-image: 
    linear-gradient(rgba(28, 22, 17, 0.7), rgba(28, 22, 17, 0.85)),
    url('../img/sidecar.png');
}

.page-hero-marca,
.page-hero-moto {
  padding: 180px 0 240px;
  background-image: 
    linear-gradient(rgba(28, 22, 17, 0.7), rgba(28, 22, 17, 0.85)),
    var(--hero-background);
}

.page-hero h1 { color: var(--cream); }
.page-hero h1 .old-english { color: var(--mustard); }
.page-hero p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--cream-2);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   7. BOTTONI & INTERATTIVITÀ
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 14px 28px;
  border: 2px solid var(--mustard);
  background: var(--mustard);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto;
}

.btn:hover {
  background: var(--mustard-dark);
  border-color: var(--mustard-dark);
  color: var(--cream);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

.btn-ghost:hover {
  background: var(--cream);
  color: var(--ink);
}

.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--mustard);
}

.btn-dark:hover {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}

.btn-racing {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Bebas Neue', 'League Gothic', sans-serif;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  background-color: #E31A1A;
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 4px 0 #9B1010;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-racing:hover {
  background-color: #1A1A1A;
  color: #E31A1A;
  transform: skewX(-10deg) translateY(2px);
  box-shadow: 0 0 15px rgba(227, 26, 26, 0.6);
}

/* --------------------------------------------------------------------------
   8. COMPONENTI (CARD, GRID, FEATURES)
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 28px;
  width: 100%;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  min-width: 0;
  background: var(--paper);
  border: 1px solid rgba(123, 90, 42, 0.35);
  border-radius: 2px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 0 var(--cream-2), 0 8px 22px rgba(28, 22, 17, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(28, 22, 17, 0.18);
}

.card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--ink);
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-cat {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--burgundy);
  margin-bottom: 8px;
}

.card-nome,
.card-title {
  margin-bottom: 10px;
  overflow-wrap: break-word;
}

.card-excerpt {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 16px;
  flex: 1;
}

.card-meta {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(123, 90, 42, 0.25);
  padding-top: 12px;
}

.card-link {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--burgundy);
  border-bottom: 1px solid var(--mustard);
  padding-bottom: 2px;
  align-self: flex-start;
  margin-top: 4px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature {
  padding: 24px;
  border: 1px solid rgba(123, 90, 42, 0.35);
  border-radius: 2px;
  background: var(--paper);
  text-align: center;
}

.feature .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.4rem;
  color: var(--mustard-dark);
  line-height: 1;
}

.feature h4 {
  margin: 12px 0 8px;
}

.feature p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   9. FORM ED ELEMENTI DI INPUT
   -------------------------------------------------------------------------- */
.form {
  background: var(--paper);
  border: 1px solid rgba(123, 90, 42, 0.35);
  border-radius: 2px;
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.field label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 6px;
  color: var(--ink-soft);
}

.field input,
.field textarea,
.field select {
  font-family: 'Lora', serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid rgba(123, 90, 42, 0.5);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--mustard);
  box-shadow: 0 0 0 3px rgba(201, 150, 43, 0.2);
}

.alert {
  padding: 16px 20px;
  background: var(--british-green);
  color: var(--cream);
  border-left: 4px solid var(--mustard);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   10. FOOTER & NEWSLETTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: var(--cream-2);
  border-top: 6px double var(--mustard);
  margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding: 60px 24px;
    align-items: start;
}

.footer-title {
  font-family: 'Riesling', 'Poiret One', 'Josefin Sans', sans-serif;
  color: var(--mustard);
  font-size: 1.4rem;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}

.site-footer p {
  line-height: 1.7;
  margin-bottom: 15px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  padding: 4px 0;
}

.site-footer a {
  color: var(--cream-2);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--mustard);
}

.newsletter {
  display: flex;
  margin-top: 10px;
}

.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}

.newsletter button {
  padding: 10px 16px;
  border: 1px solid var(--mustard);
  background: var(--mustard);
  color: var(--ink);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter button:hover {
  background: transparent;
  color: var(--mustard);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(244, 234, 213, 0.6);
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   11. CONTENUTI ARTICOLI & TOUR (.POST)
   -------------------------------------------------------------------------- */
.post {
  background: var(--paper);
  border: 3px double rgba(123, 90, 42, 0.6);
  border-radius: 2px;
  padding: 40px 48px;
  box-shadow: 0 2px 0 var(--cream-2), 0 8px 24px rgba(28, 22, 17, 0.08);
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.post::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(123, 90, 42, 0.25);
  pointer-events: none;
}

.post .eyebrow {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--burgundy);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 12px;
}

.post h2 {
  font-family: 'League Gothic', sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin: 32px 0 16px;
}

.post h3 {
  font-family: 'League Gothic', sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink);
  line-height: 1.2;
  margin: 36px 0 14px;
}

.post p {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.post > div > .img-tooltip .detail-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(123, 90, 42, 0.35);
  box-shadow: 0 8px 24px rgba(28, 22, 17, 0.12);
}

.post ul.tappe {
  list-style: none;
  margin: 20px 0 32px 0;
  padding: 16px 24px;
  background: var(--paper);
  border: 1px solid rgba(123, 90, 42, 0.3);
  border-left: 4px solid var(--mustard);
  border-radius: 2px;
}

.post ul.tappe li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed rgba(123, 90, 42, 0.25);
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--ink);
}

.post ul.tappe li:last-child {
  border-bottom: none;
}

.post ul.tappe li::before {
  content: "◆";
  position: absolute;
  left: 4px;
  top: 10px;
  color: var(--mustard-dark);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   12. SCHEDA TECNICA VINTAGE
   -------------------------------------------------------------------------- */
.tech-spec-vintage {
  background: var(--paper);
  border: 3px double var(--mustard);
  padding: 24px;
  box-shadow: 0 2px 0 var(--cream-2), 0 8px 24px rgba(28, 22, 17, 0.08);
  position: relative;
  width: 100%;
}

.tech-spec-vintage h3 {
  font-family: 'League Gothic', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--mustard);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table tr {
  border-bottom: 1px dashed rgba(123, 90, 42, 0.35);
  transition: background-color 0.2s ease;
}

.tech-table tr:last-child {
  border-bottom: none;
}

.tech-table tr:hover {
  background-color: rgba(201, 150, 43, 0.06);
}

.tech-table th.tech-lbl {
  width: 35%;
  text-align: left;
  padding: 12px 14px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--burgundy);
  vertical-align: middle;
}

.tech-table td.tech-val {
  width: 65%;
  text-align: left;
  padding: 12px 14px;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: var(--ink);
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   13. SEZIONI SPLIT ADATTIVE
   -------------------------------------------------------------------------- */
.post .split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px double rgba(123, 90, 42, 0.3);
}

.post .split > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.post .split figure.img-tooltip {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
}

.post .split img.detail-img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 0;
  border-radius: 2px;
  border: 1px solid rgba(123, 90, 42, 0.35);
  box-shadow: 0 8px 24px rgba(28, 22, 17, 0.12);
}

/* --------------------------------------------------------------------------
   14. TOOLTIP PERSONALIZZATO VINTAGE (.img-tooltip) — COMPATIBILE CHROME & SAFARI
   -------------------------------------------------------------------------- */
.img-tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
}

.img-tooltip::after {
  content: attr(data-caption);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--ink);
  color: var(--cream);
  border: 1px solid var(--mustard);
  padding: 14px 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.55;
  text-transform: none;
  letter-spacing: 0.03em;
  text-align: left;
  white-space: normal;
  display: block;
  width: 320px;
  max-width: 88vw;
  box-sizing: border-box;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 99999;
}

.img-tooltip::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  border-width: 8px 7px 0 7px;
  border-style: solid;
  border-color: var(--mustard) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 100000;
}

.img-tooltip:hover::after,
.img-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Fix universale per dispositivi mobili su Chrome e Safari */
@media screen and (max-width: 768px) {
  .img-tooltip::after {
    width: 290px;
    max-width: 88vw;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
  }
  .img-tooltip:hover::after {
    transform: translateX(-50%) translateY(0);
  }
  .img-tooltip::before {
    left: 50%;
    transform: translateX(-50%) translateY(8px);
  }
  .img-tooltip:hover::before {
    transform: translateX(-50%) translateY(0);
  }
}



/* --------------------------------------------------------------------------
   15. MEDIA QUERIES & RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 900px) {
  .container {
    padding: 0 18px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero,
  .hero-contact {
    padding-top: 140px; 
  }

  .page-hero,
  .page-hero-tours,
  .page-hero-tour,
  .page-hero-contact,
  .page-hero-blog,
  .page-hero-marca,
  .page-hero-moto {
    padding: 140px 0 160px;
  }

  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .post .split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .post .split > div:not(.split-img-first) {
    order: 1;
  }

  .post .split figure.img-tooltip,
  .post .split .split-img-first {
    order: 2;
  }
  
  .post .split img.detail-img {
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media screen and (max-width: 600px) {
  .grid-4, .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }

  .form {
    padding: 22px 18px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .btn {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-footer ul li a, .footer-bottom a {
    padding: 8px 0;
    display: inline-block;
    width: 100%;
  }

  .grid .card {
    margin-bottom: 24px;
  }

  .post {
    padding: 24px 18px;
  }

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

  .newsletter {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter button {
    width: 100%;
  }

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

  .img-tooltip::after {
    white-space: normal;
    width: 90%;
    max-width: 280px;
  }

  .tech-spec-vintage {
    padding: 16px 12px;
  }

  .tech-table, 
  .tech-table tbody, 
  .tech-table tr, 
  .tech-table th.tech-lbl, 
  .tech-table td.tech-val {
    display: block;
    width: 100%;
  }

  .tech-table tr {
    padding: 10px 0;
  }

  .tech-table th.tech-lbl {
    padding: 2px 8px;
    font-size: 0.8rem;
    color: var(--mustard-dark);
  }

  .tech-table td.tech-val {
    padding: 2px 8px 6px 8px;
    font-size: 0.98rem;
  }
}

/* --------------------------------------------------------------------------
   16. SEZIONI SCHEDA MOTO: PREGI E DIFETTI / ACCESSORI
   -------------------------------------------------------------------------- */
.moto-content-block { margin-top: 32px; }

.moto-content-title {
  margin: 12px 0 18px;
}

.moto-content-text {
  font-size: 1.08rem;
  line-height: 1.6;
  white-space: pre-line;
  color: var(--ink-soft);
}

.moto-extra-section {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px double rgba(123, 90, 42, 0.35);
}

.moto-extra-title {
  margin: 10px 0 24px;
  color: var(--ink);
}

.moto-pd-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.moto-pd-card {
  position: relative;
  padding: 24px 26px;
  background: var(--paper);
  border: 3px double rgba(123, 90, 42, 0.6);
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--cream-2), 0 8px 24px rgba(28, 22, 17, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.moto-pd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(28, 22, 17, 0.16);
}

.moto-pd-card::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(123, 90, 42, 0.25);
  pointer-events: none;
}

.moto-pd-card.is-positive { border-left: 4px solid var(--british-green-2); }
.moto-pd-card.is-negative { border-left: 4px solid var(--rust); }
.moto-pd-card.is-neutral  { border-left: 4px solid var(--mustard); }

.moto-pd-label {
  display: block;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(123, 90, 42, 0.3);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--burgundy);
}

.moto-pd-content {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.moto-pd-content ul,
.moto-pd-content ol {
  margin-left: 20px;
}

.moto-pd-content > :first-child,
.moto-accessory-description > :first-child { margin-top: 0; }

.moto-pd-content > :last-child,
.moto-accessory-description > :last-child { margin-bottom: 0; }

.moto-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.moto-rating-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 34px;
  padding: 0 12px;
  border-radius: 2px;
  background: var(--mustard);
  color: var(--ink);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 0 var(--mustard-dark);
}

.moto-extra-list {
  display: grid;
  gap: 28px;
}

.moto-accessory {
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 32px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid rgba(123, 90, 42, 0.35);
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--cream-2), 0 8px 22px rgba(28, 22, 17, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.moto-accessory:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(28, 22, 17, 0.18);
}

.moto-accessory-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  border: 1px solid rgba(123, 90, 42, 0.35);
  box-shadow: 0 8px 24px rgba(28, 22, 17, 0.12);
}

.moto-accessory-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px dashed rgba(123, 90, 42, 0.5);
  background: var(--cream);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px;
}

.moto-accessory-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(123, 90, 42, 0.3);
}

.moto-accessory-name {
  margin: 0;
  font-family: 'League Gothic', sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  overflow-wrap: break-word;
}

.moto-accessory-category {
  margin: 4px 0 0;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--burgundy);
}

.moto-accessory-price {
  flex: 0 0 auto;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--mustard-dark);
  white-space: nowrap;
  line-height: 1;
}

.moto-accessory-description {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.moto-accessory-recommended {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  background: var(--british-green);
  color: var(--cream);
  border-radius: 2px;
  border-left: 3px solid var(--mustard);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.moto-accessory-buy {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 22px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--burgundy);
  border: 2px solid var(--burgundy);
  border-radius: 2px;
  background: transparent;
  text-decoration: none;
  transition: all 0.2s ease;
}

.moto-accessory-buy:hover {
  background: var(--burgundy);
  color: var(--cream);
}

/* --- Disclaimer / Avvisi Informativi (Aggiunta) --- */
.moto-disclaimer-box {
  background: var(--paper);
  border: 1px dashed rgba(123, 90, 42, 0.45);
  border-left: 3px solid var(--mustard);
  padding: 14px 18px;
  margin-bottom: 24px;
  border-radius: 2px;
}

.moto-disclaimer-box p {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.moto-disclaimer-box strong {
  font-family: 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--burgundy);
}

@media screen and (max-width: 800px) {
  .moto-pd-grid { grid-template-columns: 1fr; }
  .moto-accessory { grid-template-columns: 1fr; gap: 20px; }
  .moto-accessory-image, .moto-accessory-placeholder { max-width: 520px; }
}

@media screen and (max-width: 520px) {
  .moto-extra-section { margin-top: 40px; padding-top: 32px; }
  .moto-pd-card { padding: 18px 16px; }
  .moto-accessory { padding: 18px 16px; }
  .moto-accessory-head { display: block; }
  .moto-accessory-price { display: block; margin-top: 8px; }
  .moto-accessory-buy { width: 100%; text-align: center; }
}


/* --------------------------------------------------------------------------
   [v2 - 13/10/2026] Hero con <img> (fetchpriority) al posto del background CSS
   -------------------------------------------------------------------------- */
.page-hero-moto.has-hero-img,
.page-hero-tour.has-hero-img,
.page-hero-tour.has-video {
  background-image: none;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  border: 0;
  margin: 0;
}

.page-hero-moto .hero-video,
.page-hero-tour .hero-video { z-index: 1; }
.page-hero-moto .hero-overlay,
.page-hero-tour .hero-overlay { z-index: 2; }
.page-hero-tour .hero-content { position: relative; z-index: 3; }

/* Video non riproducibile: resta l'immagine di fallback con l'overlay */
.has-video.video-failed .hero-video { display: none; }

/* [v2] Immagini senza dimensioni note: spazio riservato per evitare spostamenti (CLS) */
.detail-img { height: auto; }
.detail-img:not([width]) { aspect-ratio: 4 / 3; object-fit: cover; }
.card-img img:not([width]) { aspect-ratio: 4 / 3; }

/* ===== [seo-onpage] H1 home breve + slogan come sottotitolo ===== */
.hero-index h1 .hero-kicker { font-size: clamp(1rem, 2.6vw, 1.6rem); letter-spacing: .08em; text-transform: uppercase; margin-top: .4em; }
.hero-index .hero-slogan { font-size: clamp(1.05rem, 2.2vw, 1.4rem); font-style: italic; color: var(--cream); max-width: 760px; margin: 14px auto 0; }

/* Elenchi puntati/numerati nei testi: rientro interno coerente su PC, tablet e mobile */
.site-main ul:not([class]),
.site-main ol:not([class]),
.moto-pd-content ul,
.moto-pd-content ol,
.moto-content-text ul,
.moto-content-text ol {
  margin: 12px 0 12px 0;
  padding-left: 2em;
  list-style-position: outside;
}
.site-main ul:not([class]) { list-style-type: disc; }
.site-main ol:not([class]) { list-style-type: decimal; }
.site-main ul:not([class]) li,
.site-main ol:not([class]) li,
.moto-pd-content li,
.moto-content-text li {
  padding-left: 0.25em;
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .site-main ul:not([class]),
  .site-main ol:not([class]),
  .moto-pd-content ul,
  .moto-pd-content ol,
  .moto-content-text ul,
  .moto-content-text ol { padding-left: 1.75em; }
}

/* Scheda moto (moto.php): su schermi oltre 900 px la foto accanto alla scheda tecnica
   prende la stessa altezza della tabella; la foto viene ritagliata al centro (28/10/2026) */
@media screen and (min-width: 901px) {
  .detail-grid { align-items: stretch; }
  .detail-grid > div:first-child { position: relative; min-height: 280px; }
  .detail-grid > div:first-child .detail-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

/* ==========================================================================
   MODALI INFORMATIVE (scheda moto: pregi e difetti, accessori)
   Il reset globale azzera i margini: margin:auto serve a centrare il dialog.
   ========================================================================== */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 0 6px;
  padding: 0;
  vertical-align: middle;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.info-btn-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--mustard);
  border-radius: 50%;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  color: var(--mustard-dark);
  background: var(--paper);
  transition: background-color .15s ease, color .15s ease;
}
.info-btn:hover .info-btn-i { background: var(--mustard); color: var(--ink); }
.info-btn:focus-visible { outline: 2px solid var(--burgundy); outline-offset: 2px; border-radius: 50%; }

.info-modal {
  width: calc(100% - 32px);
  max-width: 460px;
  max-height: 82vh;
  max-height: 82dvh;
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 3px double var(--mustard);
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px rgba(123, 90, 42, .45), 0 24px 60px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.info-modal[open] {
  display: flex;
  flex-direction: column;
  animation: info-modal-in .18s ease-out;
}
.info-modal::backdrop {
  background: rgba(28, 22, 17, .72);
}
@keyframes info-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .info-modal[open] { animation: none; }
}
html:has(dialog.info-modal[open]) { overflow: hidden; }

.info-modal-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 8px 14px 22px;
  background: var(--british-green);
  border-bottom: 3px solid var(--mustard);
}
.info-modal-kicker {
  margin: 0 0 4px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--mustard);
}
.info-modal-title {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--cream);
}
.info-modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-top: -6px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--cream);
  cursor: pointer;
}
.info-modal-close:hover,
.info-modal-close:focus-visible {
  color: var(--mustard);
  border-color: var(--mustard);
  outline: none;
}

/* Il testo scorre dentro la modale: non viene mai tagliato */
.info-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 22px 22px 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.info-modal-body p {
  margin: 0;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  overflow-wrap: break-word;
}
.info-modal-foot {
  flex: 0 0 auto;
  padding: 14px 22px 20px;
  text-align: center;
}
.info-modal-foot::before {
  content: "\2726";
  display: block;
  margin-bottom: 12px;
  font-size: .9rem;
  letter-spacing: .6em;
  color: var(--mustard);
}
.info-modal-ok {
  min-width: 160px;
  min-height: 44px;
  padding: 10px 26px 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--cream);
  background: var(--burgundy);
  border: 2px solid var(--burgundy);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.info-modal-ok:hover { background: var(--paper); color: var(--burgundy); }
.info-modal-ok:focus-visible { outline: 2px solid var(--mustard); outline-offset: 3px; }

@media (max-width: 520px) {
  .info-modal-head { padding-left: 18px; }
  .info-modal-title { font-size: 1.65rem; }
  .info-modal-body { padding: 18px 18px 4px; }
  .info-modal-foot { padding: 12px 18px 18px; }
  .info-modal-ok { width: 100%; }
}
/* --------------------------------------------------------------------------
   Fascia EICMA 2026 in home (2/11/2026). Solo testo e colore: nessuna immagine
   obbligatoria, quindi nessun peso in più sul caricamento. Spenta da index.php.
   -------------------------------------------------------------------------- */
.eicma-band {
  background: var(--british-green);
  color: var(--cream);
  border-top: 4px solid var(--mustard);
  border-bottom: 4px solid var(--mustard);
}
.eicma-band__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.eicma-band__img {
  flex: 0 0 auto;
  width: 180px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.eicma-band__testo { flex: 1 1 auto; min-width: 0; }
.eicma-band__eyebrow {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--mustard);
  margin-bottom: 6px;
}
.eicma-band__titolo {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  line-height: 1.15;
  color: var(--cream);
}
.eicma-band p { margin: 0; color: var(--cream); max-width: 60ch; }
.eicma-band__azioni { flex: 0 0 auto; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.eicma-band__btn,
.eicma-band__ig { box-sizing: border-box; }
.eicma-band__btn { white-space: nowrap; text-align: center; text-decoration: none; }
/* Secondo pulsante: bordo crema e icona Instagram (stessa icona del footer) */
.eicma-band__ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 12px 24px;
  border: 2px solid var(--cream);
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.eicma-band__ig svg { flex: 0 0 auto; }
.eicma-band__ig:hover { background: var(--cream); color: var(--british-green); }
.eicma-band__ig:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }
.eicma-band__btn:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

@media screen and (max-width: 768px) {
  .eicma-band__inner { flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .eicma-band__img { width: 100%; max-width: 360px; }
  .eicma-band__azioni { width: 100%; }
  .eicma-band__btn,
  .eicma-band__ig { white-space: normal; width: 100%; }
}

/* ===== Slideshow nelle schede moto (moto.php v5, 04/11/2026) =====
   Riquadro fisso 3:2 (1:1 sul telefono); le foto verticali restano intere con bande scure ai lati. */
.moto-slideshow { position: relative; max-width: 900px; margin: 28px auto; background: var(--ink); border: 1px solid rgba(123, 90, 42, 0.35); border-radius: 2px; box-shadow: 0 8px 24px rgba(28, 22, 17, 0.12); overflow: hidden; white-space: normal; }
.moto-slideshow-track { position: relative; aspect-ratio: 3 / 2; }
.moto-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.moto-slide.is-active { opacity: 1; z-index: 1; }
.moto-slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.moto-slideshow-btn { position: absolute; top: calc(50% - 20px); transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(28, 22, 17, 0.6); color: var(--cream); font-size: 2rem; line-height: 1; cursor: pointer; }
.moto-slideshow-btn:hover, .moto-slideshow-btn:focus-visible { background: var(--mustard-dark); }
.moto-slideshow-btn.prev { left: 10px; }
.moto-slideshow-btn.next { right: 10px; }
.moto-slideshow-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--ink); color: var(--cream); font-family: 'Josefin Sans', sans-serif; font-size: .9rem; }
.moto-slideshow-dots { display: flex; gap: 6px; }
.moto-slideshow-dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 1px solid var(--cream); background: transparent; cursor: pointer; }
.moto-slideshow-dot.is-active { background: var(--mustard); border-color: var(--mustard); }
@media (max-width: 600px) {
  .moto-slideshow-track { aspect-ratio: 1 / 1; }
  .moto-slideshow-btn { width: 38px; height: 38px; font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { .moto-slide { transition: none; } }
