/* ==========================================================================
   Ligurian Alps Outdoor - Custom Stylesheet
   Mobile-first, Bootstrap 5.3 companion
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
  --color-primary: #072A3F;        /* Blu scuro — navbar, footer, bg scuri */
  --color-primary-light: #0B3D5C;
  --color-primary-dark: #041a28;
  --color-secondary: #1cab11;      /* Verde brand — WhatsApp, elementi nature */
  --color-secondary-light: #22d414;
  --color-accent: #cc6c05;         /* Arancione brand — CTA, link attivi, bottoni */
  --color-accent-hover: #a85604;
  --color-celeste: #03a8e2;        /* Celeste brand — titoli h2 su sfondo chiaro */
  --color-light: #F8F9FA;
  --color-dark: #1A1A2E;
  --color-white: #FFFFFF;
  --color-body-text: #2D3436;
  --color-muted: #6C757D;
  --color-whatsapp: #1cab11;       /* Verde brand al posto del verde WhatsApp */

  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Jost', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  --transition: 0.3s ease;
}

/* ---------- Base / Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

html {
  overscroll-behavior: none;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-body-text);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--color-white);
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}

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

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

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.625rem; }
}

@media (min-width: 992px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.8;
}

@media (min-width: 768px) {
  .lead { font-size: 1.25rem; }
}

/* ---------- Section Spacing ---------- */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

@media (min-width: 992px) {
  .section { padding: 6rem 0; }
}

.section-light {
  background-color: var(--color-light);
}

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

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-primary h2,
.section-primary h3 {
  color: var(--color-white);
}

/* Section title decoration */
.section-title {
  margin-bottom: 1rem;
  position: relative;
}

.section-subtitle {
  color: var(--color-muted);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

/* Celeste brand (#03a8e2) per h2 su sfondo chiaro (bianco e light) */
.section h2,
.section-light h2 {
  color: var(--color-celeste);
}

.accent-line {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* ---------- Navbar ---------- */
.navbar {
  padding: 0;
  transition: all var(--transition);
  z-index: 1050;
  flex-direction: column;
  align-items: stretch;
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white) !important;
  letter-spacing: 0.5px;
}

.navbar-brand img {
  height: 32px;
  width: auto;
}

.navbar-transparent {
  background: transparent !important;
}

.navbar-scrolled {
  background: rgba(7, 42, 63, 0.97) !important;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.navbar-dark .nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem !important;
  transition: color var(--transition);
}

/* Desktop: gap between nav items */
@media (min-width: 992px) {
  .navbar-nav {
    gap: 0.75rem;
  }
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
  color: var(--color-accent) !important;
}

.navbar-dark .dropdown-menu {
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  margin-top: 0.5rem;
}

.navbar-dark .dropdown-item {
  color: rgba(255, 255, 255, 0.85);
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-accent);
}

/* Offcanvas for mobile */
.offcanvas {
  background: var(--color-primary-dark);
  top: 0 !important;
  height: 100vh !important;
}

.offcanvas .offcanvas-body {
  overflow-y: auto;
}

.offcanvas .nav-link {
  font-size: 1.1rem;
  padding: 0.75rem 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.offcanvas .btn-close {
  filter: invert(1);
}

/* Social icons in navbar */
.navbar-social a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-left: 0.75rem;
  transition: color var(--transition);
}

.navbar-social a:hover {
  color: var(--color-accent);
}

/* ---------- Navbar two-row layout ---------- */

/* Top bar: social + lang (solo desktop via d-none d-lg-block in HTML) */
.navbar-topbar {
  width: 100%;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition);
}

/* Main row: logo + nav */
.navbar-mainrow {
  padding: 0.7rem 0;
  transition: padding var(--transition);
}

.navbar-mainrow .container {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.navbar-mainrow .navbar-toggler {
  margin-left: auto;
}

/* Scrolled: top bar scompare, main row si compatta */
.navbar-scrolled .navbar-topbar {
  display: none !important;
}
.navbar-scrolled .navbar-mainrow {
  padding: 0.5rem 0;
}

/* Social icons nella top bar */
.navbar-topbar .navbar-social a {
  font-size: 1rem;
  margin-left: 0.6rem;
}

/* Bottone Prenota nella top bar — stile coerente con lang-switcher */
.btn-topbar-prenota {
  background: var(--color-accent);
  border: 1px solid var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-topbar-prenota:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg picture,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(7, 42, 63, 0.6) 0%,
    rgba(26, 26, 46, 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  padding: 0 1rem;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-content .hero-tagline {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .hero-content h1 {
    font-size: 3.5rem;
    letter-spacing: 3px;
  }
  .hero-content .hero-tagline {
    font-size: 1.5rem;
  }
}

@media (min-width: 992px) {
  .hero-content h1 {
    font-size: 4.5rem;
    letter-spacing: 5px;
  }
  .hero-content .hero-tagline {
    font-size: 1.75rem;
  }
}

/* Hero for sub-pages (smaller) */
.hero-sub {
  min-height: 50vh;
}

@media (min-width: 768px) {
  .hero-sub { min-height: 55vh; }
}

.hero-sub .hero-content h1 {
  font-size: 2rem;
}

@media (min-width: 768px) {
  .hero-sub .hero-content h1 { font-size: 3rem; }
}

@media (min-width: 992px) {
  .hero-sub .hero-content h1 { font-size: 3.5rem; }
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--color-white);
  font-size: 1.5rem;
  animation: bounce 2s ease infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-transform: uppercase;
}

.btn-accent {
  background: var(--color-accent);
  color: var(--color-white);
  border: 2px solid var(--color-accent);
}

.btn-accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.4);
}

.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--color-white);
}

.btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  border: none;
}

.btn-whatsapp:hover {
  background: #1FAF55;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* ---------- Cards ---------- */
.canyon-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
}

.canyon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.canyon-card .card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.canyon-card:hover .card-img-top {
  transform: scale(1.05);
}

.canyon-card .card-img-wrapper {
  overflow: hidden;
  position: relative;
}

.canyon-card .card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.canyon-card .card-body {
  padding: 1.5rem;
}

.canyon-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.canyon-card .card-text {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Feature Cards (selling points) ---------- */
.feature-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-card .feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--color-white);
  font-size: 1.75rem;
}

.feature-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Info Badges / Chips ---------- */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-light);
  color: var(--color-primary);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.25rem;
}

.info-badge i {
  color: var(--color-accent);
}

.info-badge-price {
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.6rem 1.25rem;
}

.info-badge-price i {
  color: var(--color-white);
}

/* ---------- Canyon Detail Info Grid ---------- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 576px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.info-item i {
  font-size: 1.5rem;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.info-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.info-item span {
  font-weight: 500;
  color: var(--color-dark);
}

/* ---------- Gallery (GLightbox) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

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

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item::after {
  content: '\F52A'; /* bi-zoom-in */
  font-family: 'bootstrap-icons';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 42, 63, 0.4);
  color: var(--color-white);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ---------- Video Embed ---------- */
.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Partner Logos ---------- */
.partner-logo {
  max-height: 50px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all var(--transition);
}

.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (min-width: 768px) {
  .partner-logo { max-height: 60px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer h5 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

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

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links li a {
  font-size: 0.9rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.footer-contact li i {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 1.1rem;
  margin-right: 0.5rem;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.85rem;
  text-align: center;
}

.footer-credits {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-credits a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-credits a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Floating WhatsApp Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1040;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1FAF55;
  color: var(--color-white);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@media (min-width: 992px) {
  .whatsapp-float {
    width: auto;
    border-radius: 50px;
    padding: 0 1.5rem;
    gap: 0.5rem;
    font-size: 1rem;
  }
}

/* ---------- Map Embed ---------- */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 300px;
}

@media (min-width: 768px) {
  .map-wrapper { height: 400px; }
}

.map-wrapper iframe,
.map-wrapper > div {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Back to Top — rimosso ---------- */
.back-to-top {
  display: none !important;
}

/* ---------- AOS overrides ---------- */
[data-aos] {
  pointer-events: auto !important;
}

/* ---------- GLightbox overrides ---------- */
.glightbox-clean .gclose,
.glightbox-clean .gnext,
.glightbox-clean .gprev {
  background: rgba(7, 42, 63, 0.8);
}

/* ---------- Parallax Section ---------- */
.parallax-section {
  position: relative;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 5rem 0;
}

.parallax-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(7, 42, 63, 0.7) 0%,
    rgba(26, 26, 46, 0.8) 100%
  );
}

.parallax-section > * {
  position: relative;
  z-index: 1;
}

/* Fix parallax on mobile (iOS doesn't support fixed bg) */
@supports (-webkit-touch-callout: none) {
  .parallax-section {
    background-attachment: scroll;
  }
}

@media (max-width: 991.98px) {
  .parallax-section {
    background-attachment: scroll;
  }
}

/* ---------- Climbing levels ---------- */
.level-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition);
  height: 100%;
}

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

.level-card h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.level-card p {
  color: var(--color-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Contact Page ---------- */
.contact-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.contact-card i {
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.contact-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-card a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ---------- Utilities ---------- */
.text-accent { color: var(--color-accent) !important; }
.text-primary-custom { color: var(--color-primary) !important; }
.bg-accent { background-color: var(--color-accent) !important; }

.fw-800 { font-weight: 800; }

.img-rounded { border-radius: var(--radius-md); }
.img-shadow { box-shadow: var(--shadow-lg); }

/* Spacer divider */
.divider {
  width: 80px;
  height: 3px;
  background: var(--color-accent);
  margin: 1.5rem auto;
  border-radius: 2px;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- Language Switcher ---------- */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
}

.lang-switcher button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  line-height: 1;
}

.lang-switcher button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.lang-switcher button.active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Mobile: lang switcher in offcanvas */
.offcanvas .lang-switcher {
  margin: 1rem 0 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  justify-content: flex-start;
}

.offcanvas .lang-switcher button {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
}

/* ==========================================================================
   Cookie banner (generato da js/cookie-consent.js)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2000;
  max-width: 780px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner-text {
  flex: 1 1 320px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner-actions .btn {
  line-height: 1;
  white-space: nowrap;
}

.footer-credits .cookie-manage {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .cookie-banner {
    padding: 1rem;
  }
  .cookie-banner-actions {
    width: 100%;
  }
  .cookie-banner-actions .btn {
    flex: 1;
  }
}
