/* =====================================================
   STYLE.CSS (BASE)
   Yoshia - base styles, layout, components (NO header, NO menu)
   - Header:  css/header.css
   - Menu:    css/menu.css
   - Theme:   css/theme-yoshia.css
   ===================================================== */


/* =====================================================
   TOKENS / ROOT
   ===================================================== */
:root {
  --c-bg: #fffdfa;
  --c-primary: #2c9eaf;
  --c-text: #333333;

  /* Toni neutri caldi e leggerissimi (soffusi e delicati) */
  --c-bg-warm: #FBF9F5;
  --c-bg-warm-light: #FDFBF8;
  --c-border-warm: #fffdfa;

  --ff-body: "Lato", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ff-display: "Kalnia", Georgia, "Times New Roman", serif;

  --radius-lg: 1.25rem;
  --radius-md: 0.875rem;

  --shadow-soft: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.05);

  /* Altezza header fisso (usata anche in header.css) */
  --nav-h: 4.5rem;
}


/* =====================================================
   GLOBAL BASE
   ===================================================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  color: var(--c-text);
  background: var(--c-bg);
}

/* =====================================================
   BACKGROUND DECORATIVE SHAPES (Responsive Clipping & Mobile Repositioning)
   ===================================================== */
.shape-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 991.98px) {

  html,
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  main#contenuto {
    overflow-x: clip;
  }

  .media-shape-container {
    padding-top: 2.2rem !important;
    padding-bottom: 2.2rem !important;
  }

  .shape-bg-wrapper {
    overflow: visible;
  }

  /* Riposiziona le forme su mobile sopra e sotto la foto, rimanendo nei margini dello schermo */
  .shape-bg-wrapper .shape-top-left {
    top: -25px !important;
    left: 10px !important;
    right: auto !important;
  }

  .shape-bg-wrapper .shape-top-right {
    top: -25px !important;
    right: 10px !important;
    left: auto !important;
  }

  .shape-bg-wrapper .shape-top-center {
    top: -35px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .shape-bg-wrapper .shape-bottom-left {
    bottom: -25px !important;
    left: 10px !important;
    right: auto !important;
  }

  .shape-bg-wrapper .shape-bottom-right {
    bottom: -25px !important;
    right: 10px !important;
    left: auto !important;
  }

  .shape-bg-wrapper .shape-bottom-center {
    bottom: -35px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}

@media (min-width: 992px) {
  .shape-bg-wrapper {
    overflow: visible !important;
  }

  .sticky-lg-top-offset {
    position: sticky !important;
    top: calc(var(--nav-h) + 1.25rem) !important;
  }
}

h1,
h2,
h3,
.display-font {
  font-family: var(--ff-display);
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--c-primary);
}

.text-accent {
  color: var(--c-primary);
}


/* =====================================================
   BUTTONS (custom)
   ===================================================== */
.btn-minimal {
  border-radius: 999rem;
  padding: 0.85rem 1.6rem;
  font-weight: 500;
  border: 0.0625rem solid rgba(44, 158, 175, 0.35);
  background: transparent;
  color: var(--c-text);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.btn-minimal:hover {
  background: rgba(44, 158, 175, 0.08);
  border-color: rgba(44, 158, 175, 0.6);
  transform: translateY(-0.125rem);
}

.btn-accent {
  border-radius: 999rem;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  background: var(--c-primary);
  color: #fff;
  border: none;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn-accent:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.5rem 1.25rem rgba(44, 158, 175, 0.3) !important;
}


/* =====================================================
   INTRO / HERO
   ===================================================== */
.intro-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + 1.25rem);
  padding-bottom: 2rem;
  overflow: hidden;
}

.intro-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 253, 250, 0.85) 0%, rgba(255, 253, 250, 0.45) 50%, rgba(255, 253, 250, 0.0) 75%),
    url("../img/intro-img.webp") right bottom/cover no-repeat;
  transform: scale(1.02);
}

.intro-section>* {
  position: relative;
  z-index: 1;
}

.intro-block {
  gap: 1.25rem;
  align-items: center;
  justify-content: flex-start;
}

.intro-logo {
  width: 13rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-logo img {
  width: 100%;
  height: auto;
  max-width: 13rem;
  max-height: 13rem;
}

.intro-logo span {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  opacity: 0.9;
}

.intro-text h1 {
  color: var(--c-primary);
  font-weight: 400;
}

.intro-text p {
  margin: 0.25rem 0 0;
  opacity: 0.92;
  color: var(--c-text);
}

@media (max-width: 767px) {
  .intro-section {
    min-height: 100dvh;
    padding-top: calc(var(--nav-h) + 1.25rem);
    padding-bottom: 2rem;
  }

  .intro-section::before {
    background:
      linear-gradient(
        180deg,
        rgba(255, 253, 250, 0.78) 0%,
        rgba(255, 253, 250, 0.68) 32%,
        rgba(255, 253, 250, 0.42) 58%,
        rgba(255, 253, 250, 0.10) 82%,
        rgba(255, 253, 250, 0.00) 100%
      ),
      url("../img/intro-img.webp") right bottom/cover no-repeat;
  }

  .intro-block {
    gap: 0.85rem;
  }

  .intro-logo {
    width: 7.5rem;
  }

  .intro-logo img {
    max-width: 7.5rem;
    max-height: 7.5rem;
  }

  .intro-text {
    text-align: center;
  }

  .intro-text h1 {
    font-size: clamp(1.65rem, 5.2vw, 2.15rem);
    line-height: 1.25;
    text-shadow: 0 0 12px rgba(255, 253, 250, 0.95), 0 0 24px rgba(255, 253, 250, 0.9);
  }

  .intro-text p {
    font-size: 1.05rem;
    text-shadow: 0 0 10px rgba(255, 253, 250, 0.95), 0 0 18px rgba(255, 253, 250, 0.85);
  }

  .btn-minimal {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }
}

@media (min-width: 768px) {
  .intro-section {
    padding-top: var(--nav-h);
    padding-bottom: 3rem;
  }

  .intro-text {
    border-left: 0.0625rem solid #ccc;
    padding-left: 1.875rem;
  }
}


/* =====================================================
   SECTIONS / TYPO
   ===================================================== */
.section {
  padding: 4.5rem 0;
}

.section-title {
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 42rem;
  color: rgba(51, 51, 51, 0.8);
}


/* =====================================================
   CARDS / MEDIA
   ===================================================== */
.card-min {
  border: 0.0625rem solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

/* Yoga home media */
.yoga-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.0625rem solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
}

/* Shiatsu media */
.shiatsu-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.0625rem solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-soft);
}


/* =====================================================
   LISTS (Yoshia)
   Sempre usare <ul class="yoshia-list">
   ===================================================== */
.yoshia-list {
  list-style: none;
}

.yoshia-list li {
  position: relative;
  padding-left: 1.35rem;
  padding-bottom: 0.3125rem;
  margin-top: 0.3125rem;
  line-height: 1.55;
  color: rgba(51, 51, 51, 0.86);
  border-bottom: 0.0625rem solid #eee;
}

.yoshia-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999rem;
  background: rgba(44, 158, 175, 0.35);
  border: 0.0625rem solid rgba(44, 158, 175, 0.55);
}


/* =====================================================
   BENEFITS (grid)
   ===================================================== */
.benefit-wrap {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 62rem) {
  .benefit-wrap {
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
  }
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.875rem;
}

.benefit-item {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  padding: 0.75rem 0.875rem;
  border-radius: var(--radius-md);
  background: rgba(44, 158, 175, 0.06);
  border: 0.0625rem solid rgba(44, 158, 175, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: default;
}

.benefit-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(44, 158, 175, 0.15);
  background: rgba(44, 158, 175, 0.1);
}

.benefit-item .material-symbols-outlined {
  font-size: 1.375rem;
  color: var(--c-primary);
  line-height: 1;
  margin-top: 0.0625rem;
  transition: transform 0.2s ease;
}

.benefit-item:hover .material-symbols-outlined {
  transform: scale(1.1);
}

.benefit-item span:last-child {
  line-height: 1.4;
}

.benefit-center {
  border-radius: var(--radius-lg);
  /* Bordi rimossi per un look più pulito e coerente con lo sfondo chiaro */
}

.benefit-center img {
  width: 100%;
  height: auto;
  display: block;
}


/* =====================================================
   CTA
   ===================================================== */
.cta {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(44, 158, 175, 0.14), rgba(44, 158, 175, 0.04));
  border: 0.0625rem solid rgba(44, 158, 175, 0.18);
  padding: 2rem;
}


/* =====================================================
   FORMS
   ===================================================== */
.form-control,
.form-select {
  border-radius: 0.875rem;
  padding: 0.75rem 0.875rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(44, 158, 175, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(44, 158, 175, 0.15);
}

/* Validation tweaks */
.invalid-feedback {
  font-size: 0.9rem;
}

.form-control.is-invalid,
.form-check-input.is-invalid {
  box-shadow: none;
}


/* =====================================================
   UTILITIES
   ===================================================== */
.muted {
  color: rgba(51, 51, 51, 0.75);
}


/* =====================================================
   COURSES (cards)
   ===================================================== */
.course-card {
  border-radius: var(--radius-lg);
  border: 0.0625rem solid rgba(0, 0, 0, 0.06);
  background: #fff;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.course-card:hover {
  transform: translateY(-0.1875rem);
  box-shadow: var(--shadow-soft);
  border-color: rgba(44, 158, 175, 0.25);
}

.course-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: rgba(44, 158, 175, 0.06);
  overflow: hidden;
}

/* Micro-gradient overlay */
.course-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.06) 38%,
      rgba(0, 0, 0, 0.00) 62%);
  pointer-events: none;
}

.course-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform .35s ease;
}

.course-card:hover .course-media img {
  transform: scale(1.03);
}

.course-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* allinea le card */
}

.course-title {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  margin: 0;
}

.course-text {
  color: rgba(51, 51, 51, 0.78);
  line-height: 1.5;
  margin-top: 0.25rem;
}

/* CTA sempre in fondo */
.course-cta {
  margin-top: auto;
  padding-top: 1rem;
  font-weight: 700;
  color: var(--c-primary);
}


/* =====================================================
   SHIATSU (benefits chakra list)
   ===================================================== */
.shiatsu-benefits-chakra {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  position: relative;
}

@media (min-width: 62rem) {
  .shiatsu-benefits-chakra {
    grid-template-columns: 1fr 1fr;
  }
}

.shiatsu-benefits-chakra li {
  position: relative;
  padding-left: 1.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(51, 51, 51, 0.86);

  opacity: 0;
  transform: translateY(0.35rem);
  animation: shiatsuFadeUp 0.55s ease forwards;
  animation-delay: calc(var(--i) * 90ms);
}

/* Chakra dot */
.shiatsu-benefits-chakra li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999rem;

  background: var(--chakra, rgba(44, 158, 175, 0.28));
  box-shadow:
    0 0 0 0.2rem rgba(44, 158, 175, 0.08),
    0 0.35rem 1rem rgba(0, 0, 0, 0.06);
}

/* Chakra colors */
.shiatsu-benefits-chakra li:nth-child(1) {
  --chakra: rgba(220, 53, 69, 0.26);
}

.shiatsu-benefits-chakra li:nth-child(2) {
  --chakra: rgba(253, 126, 20, 0.26);
}

.shiatsu-benefits-chakra li:nth-child(3) {
  --chakra: rgba(255, 193, 7, 0.24);
}

.shiatsu-benefits-chakra li:nth-child(4) {
  --chakra: rgba(25, 135, 84, 0.22);
}

.shiatsu-benefits-chakra li:nth-child(5) {
  --chakra: rgba(13, 110, 253, 0.20);
}

.shiatsu-benefits-chakra li:nth-child(6) {
  --chakra: rgba(111, 66, 193, 0.22);
}

.shiatsu-benefits-chakra li:nth-child(7) {
  --chakra: rgba(108, 117, 125, 0.20);
}

.shiatsu-benefits-chakra li:nth-child(8) {
  --chakra: rgba(44, 158, 175, 0.22);
}

@keyframes shiatsuFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shiatsu-benefits-chakra li {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* =====================================================
   FOOTER (modern columns)
   ===================================================== */
.site-footer {
  padding: 3rem 0 1.5rem;
  border-top: 0.0625rem solid rgba(0, 0, 0, 0.06);
  background-color: rgba(250, 249, 246, 0.7); /* Tono molto leggero e caldo */
  font-size: 0.85rem;
}

.footer-logo {
  height: 2.4rem;
  width: auto;
  opacity: 0.95;
}

.footer-identity {
  margin-bottom: 0.5rem;
}

.footer-name {
  font-family: var(--ff-body);
  font-size: 1rem;
}

.footer-affiliation {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999rem;
  border: 0.0625rem solid rgba(44, 158, 175, 0.28);
  background: rgba(44, 158, 175, 0.07);
  color: var(--c-primary);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.footer-heading {
  color: var(--c-text);
  font-family: var(--ff-body);
}

.footer-link-hover {
  transition: color 0.2s ease;
}

.footer-link-hover:hover {
  color: var(--c-primary) !important;
}




/* =====================================================
   COOKIE BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  max-width: 48rem;
  margin: auto;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.12);
  padding: 1rem 1.25rem;
  z-index: 9998;
  font-size: 0.8125rem;
}

.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Invito ad accettare: leggibile ma senza sovrastare l'informativa, che resta
   il contenuto principale del banner. */
.cookie-invite {
  margin: -0.25rem 0 0;
  font-size: 0.8125rem;
  opacity: 0.9;
}

.cookie-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Sul telefono i tre pulsanti andavano a capo lasciando "Accetta tutti" da
   solo in fondo, cioè con più risalto degli altri: rifiutare deve costare
   quanto accettare. Qui "Personalizza" prende la prima riga e gli altri due
   restano affiancati, della stessa larghezza. */
@media (max-width: 30rem) {
  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-actions .btn {
    flex: 1 1 calc(50% - 0.25rem);
  }

  .cookie-actions [data-cookie-customize] {
    flex-basis: 100%;
  }
}


/* =====================================================
   PANNELLO PREFERENZE COOKIE
   Si apre dal banner ("Personalizza") o dal link nel
   footer, che deve restare raggiungibile sempre.
   ===================================================== */
.cookie-prefs {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cookie-prefs.d-none {
  display: none;
}

.cookie-prefs-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.cookie-prefs-dialog {
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 34rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

.cookie-prefs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cookie-prefs-title {
  font-size: 1.0625rem;
  margin: 0;
}

.cookie-prefs-x {
  background: none;
  border: 0;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
  color: inherit;
}

/* La parte che scorre, se le descrizioni non ci stanno in altezza. */
.cookie-prefs-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  font-size: 0.875rem;
}

.cookie-prefs-intro {
  font-size: 0.8125rem;
  margin-bottom: 1rem;
}

.cookie-group {
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cookie-group:first-of-type {
  border-top: 0;
}

.cookie-group-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.25rem;
  cursor: pointer;
}

.cookie-group-head input[disabled] {
  cursor: default;
}

.cookie-group-name {
  font-weight: 600;
}

.cookie-group-always {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.65;
}

.cookie-group-desc {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.85;
}

.cookie-prefs-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Con il pannello aperto la pagina sotto non deve scorrere. */
body.cookie-prefs-open {
  overflow: hidden;
}

@media (max-width: 30rem) {
  .cookie-prefs-actions .btn {
    flex: 1 1 100%;
  }
}


/* =====================================================
   SOCIAL ICONS (footer)
   ===================================================== */
.social-icon {
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s;
  display: inline-block;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

/* Brand Colors */
.bi-facebook {
  color: #1877F2;
}

.bi-instagram {
  color: #E1306C;
}

.bi-tiktok {
  color: #000000;
}

.bi-youtube {
  color: #FF0000;
}

.bi-whatsapp {
  color: #25D366;
}


/* =====================================================
   BACK TO TOP
   ===================================================== */
#backToTop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 9990;
  /* sotto al cookie banner (9998), sopra al resto */
  width: 2.75rem;
  height: 2.75rem;
  border: none;
  border-radius: 50%;
  background: rgba(44, 157, 175, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.2s ease;
}

#backToTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #24818f;
}

#backToTop .material-symbols-outlined {
  font-size: 1.5rem;
}

/* Quando il banner cookie è visibile, il bottone sale sopra di lui
   invece di finirci sotto (su mobile il banner è a tutta larghezza).
   Nota: #backToTop è fuori da <footer> (in footer.php dopo </footer>),
   quindi è fratello di #cookieBanner e il selettore ~ funziona. */
#cookieBanner:not(.d-none)~#backToTop {
  bottom: 6.5rem;
  z-index: 9999;
  /* sale sopra il banner (z-index: 9998) */
}

@media (prefers-reduced-motion: reduce) {
  #backToTop {
    transition: opacity 0.01ms linear;
  }
}

/* =====================================================
   ZOOM AL PASSAGGIO DEL MOUSE (immagini della home)
   =====================================================
   Sostituisce gli onmouseover/onmouseout inline che erano su tre immagini
   di index.php. In CSS l'effetto è anche più corretto: con (hover: hover)
   non parte sui dispositivi touch, dove il tap lasciava l'immagine
   ingrandita in modo permanente, e rispetta prefers-reduced-motion. */
.img-zoom-hover {
  transition: transform 0.5s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .img-zoom-hover:hover {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .img-zoom-hover {
    transition: none;
  }
}

/* =====================================================
   SALTA AL CONTENUTO (skip-link)
   =====================================================
   Non usa display:none né visibility:hidden, che lo toglierebbero anche
   dall'ordine di tabulazione rendendolo inservibile: resta nel flusso e viene
   spostato fuori vista con transform, così il Tab lo raggiunge e al fuoco
   rientra. z-index sopra il banner cookie (9998) e il torna-in-cima (9999). */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-sm, 0.5rem);
  background: #fff;
  color: var(--c-primary, #2c9eaf);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.18);
  transform: translateY(-200%);
  transition: transform 0.15s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 0.1875rem solid var(--c-primary, #2c9eaf);
  outline-offset: 0.125rem;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link {
    transition: none;
  }
}

/* Comparsa progressiva durante lo scroll (js/main.js).
   Nasconde solo quando il JS ha aggiunto .js-reveal all'elemento radice:
   senza JavaScript, o con prefers-reduced-motion, il contenuto resta visibile.
   Movimento volutamente corto e lento: il registro del sito e' calmo, e una
   salita ampia o rapida comunicherebbe il contrario.
   Tre varianti: senza valore = leggera salita, "fade" = sola dissolvenza per i
   blocchi di testo lungo (un paragrafo che si muove mentre lo leggi da' noia),
   "card" = dissolvenza piu' un soffio di scala per le griglie di schede. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-reveal [data-reveal="fade"] {
  transform: none;
}

.js-reveal [data-reveal="card"] {
  transform: scale(0.98);
}

.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Bootstrap .opacity-75 usa !important: senza queste due regole i giorni
   chiusi dell'orario restano visibili prima del reveal. Conservano comunque
   la loro opacita' semantica una volta comparsi. */
.js-reveal [data-reveal].opacity-75 {
  opacity: 0 !important;
}

.js-reveal [data-reveal].opacity-75.is-revealed {
  opacity: 0.75 !important;
}

/* "Oggi" resta deliberatamente pieno anche quando non ha lezioni. */
.js-reveal .day-card.is-today.is-closed {
  opacity: 0 !important;
}

.js-reveal .day-card.is-today.is-closed.is-revealed {
  opacity: 1 !important;
}

/* In stampa non esiste scroll: senza questa regola chi salva in PDF una pagina
   che non ha percorso tutta si porta via meta' fogli bianchi. */
@media print {
  .js-reveal [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Occhiello sopra l'H1 (badge a pillola con icona). Vive qui e non in
   corsi.css perche' lo usano anche galleria-foto.php e 404.php, che quel
   foglio non lo caricano: li' il badge non compariva affatto e restavano
   icona e testo disallineati di 5,5px, allineati sulla linea di base. */
.course-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999rem;
  border: 0.0625rem solid rgba(44, 158, 175, 0.25);
  background: rgba(44, 158, 175, 0.06);
  color: rgba(51, 51, 51, 0.85);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.course-kicker .material-symbols-outlined {
  font-size: 1.25rem;
  color: var(--c-primary);
  line-height: 1;
}
