/* AuthentiTravel — stile ispirato al sito originale */
:root {
  --color-primary: #ff9500;
  --color-primary-dark: #e68600;
  --color-brand: #004e77;
  --color-brand-dark: #003a5a;
  --color-brand-rgb: 0, 78, 119;
  --btn-radius: 10px;
  --color-text: var(--color-brand);
  --color-text-muted: var(--color-brand-dark);
  --color-bg: #ffffff;
  --color-bg-soft: #f0f5fa;
  --color-border: #d1d5db;
  --font-sans: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --header-h: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-muted);
  background: var(--color-bg);
}

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

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

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

h1, h2, h3, h4 {
  color: var(--color-text);
  line-height: 1.3;
  margin: 0 0 0.5em;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  min-height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: var(--color-brand-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a.active {
  color: var(--color-brand);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-primary);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: transform 0.2s;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Hero */
.hero {
  --hero-font: "Times New Roman", Times, "Liberation Serif", serif;
  --hero-shadow:
    0 1px 0 rgba(0, 0, 0, 0.45),
    0 2px 0 rgba(0, 0, 0, 0.3),
    0 4px 8px rgba(0, 0, 0, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.25),
    0 -1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-color: #1e293b;
  border-radius: 0;
}

.travel-hero {
  min-height: clamp(500px, 50vh, 600px);
  background-image: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.45) 0%,
      rgba(15, 23, 42, 0.65) 100%
    ),
    url("../img/hero.png");
  background-repeat: no-repeat;
  background-size: auto, cover;
  /* donna in basso al centro-sinistra: inquadra dal basso */
  background-position: center, 38% 88%;
}

@media (min-width: 900px) {
  .travel-hero {
    background-position: center, 36% 92%;
  }
}

.hero-content {
  width: min(100% - 2rem, 920px);
  padding: 2rem 1rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: var(--hero-font);
  font-weight: 800;
  font-size: clamp(3.25rem, 9vw, 5.25rem);
  line-height: 1.05;
  color: #fff;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  text-shadow: var(--hero-shadow);
}

.hero .tagline {
  font-family: var(--hero-font);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: #fff;
  opacity: 0.95;
  margin: 0 0 2.75rem;
  max-width: 42rem;
  text-shadow: var(--hero-shadow);
}

.hero-dest-select {
  display: block;
  width: 100%;
  max-width: 480px;
  padding: 0.85rem 2.5rem 0.85rem 1.15rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.35;
  margin-inline: auto;
  font-weight: 500;
  color: var(--color-brand);
  background-color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23334155' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  transition: box-shadow 0.2s;
}

.hero-dest-select:hover,
.hero-dest-select:focus {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* Sections */
.section {
  padding: 4rem 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.section-subtitle {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-inline: auto;
}

/* Features grid */
#perche-noi .section-title {
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(var(--color-brand-rgb), 0.16);
}

.feature-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: var(--color-bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: background-color 0.25s ease;
}

.feature-card:hover .icon {
  background: #dceaf2;
}

.feature-card h3 {
  font-size: 1.1rem;
}

/* Offers slider */
.offers-slider-wrap {
  position: relative;
  padding: 0 3rem;
}

.offers-slider {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0 1rem;
}

.offers-slider::-webkit-scrollbar {
  display: none;
}

.offer-card {
  flex: 0 0 min(360px, 88vw);
  scroll-snap-align: start;
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.offer-card:hover {
  transform: translateY(-4px);
}

.offer-card__image {
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft);
  overflow: hidden;
}

.offer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card__body {
  padding: 0.9rem 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.offer-card__body h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
}

.offer-card__meta {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
}

.offer-card__meta p {
  margin: 0.1rem 0;
}

.offer-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0.15rem 0 0.5rem;
}

.offer-card__body .btn {
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  border-radius: var(--btn-radius);
}

.offer-card__price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg);
  box-shadow: var(--shadow);
  color: var(--color-primary);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: var(--color-primary);
  color: #fff;
}

.slider-btn--prev { left: 0; }
.slider-btn--next { right: 0; }

.slider-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.text-center {
  text-align: center;
  margin-top: 2rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(
      135deg,
      rgba(var(--color-brand-rgb), 0.48),
      rgba(30, 41, 59, 0.55)
    ),
    url("../img/banner.png") center / cover no-repeat;
  background-color: var(--color-brand-dark);
  color: #fff;
  text-align: left;
  padding: 4rem 0;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.cta-band .container {
  width: min(100% - 2rem, var(--container));
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  max-width: 640px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.cta-band p {
  opacity: 0.98;
  max-width: 560px;
  margin: 0 0 1.5rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
}

.cta-band .btn {
  background: #fff;
  color: var(--color-primary);
}

.cta-band .btn:hover {
  background: var(--color-bg-soft);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-info h3 {
  margin-top: 1.5rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin: 0.5rem 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-brand);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.social-link:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-2px);
}

.social-link img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
  padding: 1px;
}

.social-link:hover img {
  filter: brightness(0) invert(1);
}

.social-link--tiktok img {
  width: 18px;
  height: 18px;
  padding: 2px;
}

.contact-form label:not(.contact-privacy) {
  display: block;
  font-weight: 500;
  color: var(--color-brand);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.contact-form input:not([type="checkbox"]),
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .contact-privacy {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.45;
}

.contact-form .contact-privacy input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--color-brand);
}

.contact-form .contact-privacy span {
  flex: 1;
}

.contact-form .contact-privacy a {
  color: var(--color-primary);
  text-decoration: underline;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  background: var(--color-bg-soft);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #cbd5e1;
  padding: 2rem 0;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer a {
  color: #93c5fd;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
}

.footer-inner > p {
  margin: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  color: #93c5fd;
  font-size: 0.88rem;
}

/* Legal pages */
.legal-hero {
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb), 0.92), rgba(30, 41, 59, 0.95));
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.legal-hero h1 {
  color: #fff;
  margin: 0;
}

.legal-content .prose {
  max-width: 52rem;
}

.prose h2 {
  margin-top: 2rem;
  font-size: 1.35rem;
}

.prose h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.prose p,
.prose li {
  color: var(--color-text-muted);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

.prose th,
.prose td {
  border: 1px solid var(--color-border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--color-bg-soft);
  color: var(--color-text);
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 1200;
  padding: 1rem;
  background: rgba(0, 58, 90, 0.97);
  color: #fff;
  box-shadow: 0 -8px 32px rgba(0, 58, 90, 0.25);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

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

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner__text h2 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  color: #fff;
}

.cookie-banner__text p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 52rem;
}

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

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.cookie-banner .btn-outline:hover {
  background: #fff;
  color: var(--color-brand);
}

.cookie-panel {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-panel.is-open {
  display: flex;
}

.cookie-panel__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 58, 90, 0.55);
}

.cookie-panel__card {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.cookie-panel__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-brand);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-panel__card h2 {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.35rem;
  color: var(--color-brand);
}

.cookie-panel__lead {
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.cookie-panel__lead a {
  color: var(--color-brand);
  text-decoration: underline;
}

.cookie-panel__toggles {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.cookie-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.cookie-toggle__text {
  display: grid;
  gap: 0.2rem;
}

.cookie-toggle__text strong {
  color: var(--color-brand);
  font-size: 0.95rem;
}

.cookie-toggle__text span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.cookie-toggle input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  accent-color: var(--color-brand);
}

.cookie-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cookie-reopen {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1100;
  padding: 0.45rem 0.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-brand);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 78, 119, 0.35);
}

.cookie-reopen:hover {
  background: var(--color-brand-dark);
}

body.cookie-panel-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__actions .btn {
    flex: 1 1 auto;
    text-align: center;
  }

  .cookie-panel__actions {
    flex-direction: column;
  }

  .cookie-panel__actions .btn {
    width: 100%;
    text-align: center;
  }

  .cookie-reopen {
    left: 0.75rem;
    bottom: 0.75rem;
  }
}

/* Offer detail page */
.offer-hero {
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb), 0.8), rgba(30, 41, 59, 0.9)),
    var(--color-bg-soft);
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.offer-hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 3.35rem);
  margin-bottom: 0.4rem;
}

.offer-hero .badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.offer-hero__meta {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  opacity: 0.95;
  margin: 0;
}

.price-block {
  text-align: center;
  padding: 2rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  margin: -2rem auto 2rem;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow);
}

.price-block .amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.detail-box {
  background: var(--color-bg-soft);
  padding: 1.25rem;
  border-radius: var(--radius);
  text-align: center;
}

.detail-box strong {
  display: block;
  color: var(--color-text);
  font-size: 1.1rem;
}

.content-block {
  max-width: 800px;
  margin: 0 auto 2.5rem;
}

.content-block h2 {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.content-block h2:first-child {
  border-top: none;
  padding-top: 0;
}

.content-block ul {
  padding-left: 1.25rem;
}

.content-block li {
  margin: 0.35rem 0;
}

.included-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.included-lists h3 {
  font-size: 1.1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* Destinazioni grid */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.dest-grid .offer-card {
  flex: unset;
  max-width: none;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .included-lists {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .offers-slider-wrap {
    padding: 0 2.5rem;
  }

  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Popup locandina offerta (homepage) */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.promo-modal[hidden] {
  display: none;
}

.promo-modal:not([hidden]) {
  display: flex;
}

.promo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 30, 50, 0.72);
  backdrop-filter: blur(4px);
}

.promo-modal__dialog {
  position: relative;
  width: min(100%, 500px);
  height: min(600px, calc(100vh - 2.5rem));
  overflow: auto;
  animation: promo-modal-in 0.35s ease;
}

@keyframes promo-modal-in {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.promo-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-brand);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.promo-modal__close:hover {
  background: #fff;
  transform: scale(1.05);
}

.promo-modal__poster {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 500px;
  height: 600px;
  max-width: 100%;
  max-height: min(600px, calc(100vh - 2.5rem));
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.promo-modal__visual {
  display: block;
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  color: #fff;
}

.promo-modal__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-modal__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 35%,
    rgba(0, 30, 50, 0.55) 100%
  );
  pointer-events: none;
}

.promo-modal__ribbon {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--color-primary);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.promo-modal__body {
  flex: 0 0 auto;
  padding: 1.25rem 1.35rem 1.5rem;
  text-align: center;
}

.promo-modal__body h2 {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.promo-modal__dates {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-brand);
  margin: 0 0 0.5rem;
}

.promo-modal__meta {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.45;
}

.promo-modal__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.promo-modal__price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.promo-modal__cta {
  width: 100%;
  font-size: 1rem;
}

body.promo-modal-open {
  overflow: hidden;
}

@media (max-width: 520px) {
  .promo-modal__poster {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    max-height: min(600px, calc(100vh - 2.5rem));
  }

  .promo-modal__dialog {
    height: auto;
  }
}
