/* CASUNSEI 2026 — mobile-first UX */

@font-face {
  font-family: Lato-Regular;
  src: url("../fonts/Lato/Lato-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Lato-Light;
  src: url("../fonts/Lato/Lato-Light.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Lato-Bold;
  src: url("../fonts/Lato/Lato-Bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Lato-Black;
  src: url("../fonts/Lato/Lato-Black.woff2") format("woff2");
  font-display: swap;
}

:root {
  --brand: #243879;
  --brand-dark: #1a2a5c;
  --brand-soft: rgba(36, 56, 121, 0.78);
  --ink: #333;
  --muted: #666;
  --soft: #999;
  --paper: #f7f6f2;
  --white: #fff;
  --title: #363636;
  --header-h: 88px;
  --header-h-m: 64px;
  --sticky-h: 0px;
  --ease: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --radius-pill: 9999px;
  --tap: 48px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-section: 56px;
  --gutter: 18px;
  --shadow-btn: 0 8px 20px rgba(36, 56, 121, 0.22);
  --shadow-btn-soft: 0 4px 14px rgba(36, 56, 121, 0.14);
}

@media (min-width: 768px) {
  :root {
    --space-section: 80px;
    --gutter: 24px;
  }
}

@media (min-width: 992px) {
  :root {
    --space-section: 100px;
    --sticky-h: 0px;
  }
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-m) + 12px);
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 992px) {
  html {
    scroll-padding-top: calc(var(--header-h) + 16px);
  }
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  -webkit-tap-highlight-color: transparent;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.txt-center { text-align: center; }
.txt-right { text-align: right; }

.cl0 { color: var(--white); }
.cl3 { color: var(--ink); }
.cl6 { color: var(--muted); }
.cl7 { color: var(--muted); }
.cl9 { color: var(--soft); }
.cl10 { color: var(--brand); }
.cl15 { color: var(--title); }

.bg0 { background: var(--white); }
.bg10 { background: var(--brand); }
.bg12 { background: var(--paper); }
.bg16 { background: var(--brand-soft); }

.rotont { border-radius: var(--radius-pill); }
.borderciccio { border: solid 3px var(--brand); }
.trans-04 { transition: all var(--ease); }

/* ——— Unified buttons ——— */
.btn,
.btn-ordina,
.btn-slide,
.cky-banner-element,
.book-cta,
.sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 2px solid transparent;
  touch-action: manipulation;
  user-select: none;
}

.btn,
.btn-ordina,
.btn-slide,
.cky-banner-element,
.book-cta {
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform 0.18s ease;
}

.btn:focus-visible,
.btn-ordina:focus-visible,
.btn-slide:focus-visible,
.cky-banner-element:focus-visible,
.book-cta:focus-visible,
.sticky-cta a:focus-visible,
.hamburger:focus-visible,
.btn-top:focus-visible,
.hero-dots button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.btn:active,
.btn-ordina:active,
.btn-slide:active,
.book-cta:active,
.sticky-cta a:active {
  transform: scale(0.97);
}

.btn-ordina {
  min-width: 112px;
  color: var(--white) !important;
  background: var(--brand);
  box-shadow: var(--shadow-btn-soft);
}

.btn-ordina:hover {
  background: var(--brand-dark);
  color: var(--white) !important;
  box-shadow: var(--shadow-btn);
}

.btn-slide {
  min-width: min(100%, 220px);
  height: 52px;
  padding: 0 28px;
  color: var(--white) !important;
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: var(--shadow-btn);
}

.btn-slide:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white) !important;
}

.btn-slide .chev {
  display: inline-flex;
  margin-left: 2px;
  transition: transform var(--ease);
}

.btn-slide:hover .chev,
.btn-slide:active .chev {
  transform: translateX(3px);
}

.price-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 44px;
  padding: 6px 22px;
  color: var(--white);
  background: var(--brand);
  border: 3px solid var(--brand-dark);
  border-radius: var(--radius-pill);
  font-family: Lato-Black, Arial, sans-serif;
  font-size: 20px;
  letter-spacing: 0.02em;
  margin: 4px 0;
  line-height: 1;
  box-shadow: var(--shadow-btn-soft);
  pointer-events: none;
}

.cky-banner-element {
  margin: 10px 0 18px;
  padding: 14px 26px;
  background: var(--brand);
  color: var(--white) !important;
  box-shadow: var(--shadow-btn-soft);
}

.cky-banner-element:hover {
  background: var(--brand-dark);
}

/* Typography */
.txt-eyebrow {
  font-family: "Norican", cursive;
  font-size: 20px;
  line-height: 1.3;
  color: var(--brand);
  position: relative;
  z-index: 1;
  display: inline-block;
}

.txt-eyebrow .symbol {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.9;
}

.txt-display {
  font-family: Lato-Black, Arial, sans-serif;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1.15;
  margin: 0;
}

.txt-script-title {
  font-family: "Norican", cursive;
  font-size: clamp(30px, 8vw, 42px);
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

.txt-body {
  font-family: Lato-Light, Arial, sans-serif;
  font-size: clamp(15px, 3.8vw, 17px);
  line-height: 1.55;
  margin: 0 0 14px;
}

.txt-card-title {
  font-family: Lato-Bold, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.3;
}

.txt-card-desc {
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--brand);
  max-width: 28ch;
}

.txt-s-105 {
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.txt-ingredient-title {
  font-family: Lato-Bold, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  display: block;
  margin-bottom: 6px;
}

.txt-ingredient-desc {
  font-family: Lato-Light, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

hr {
  border: 0;
  border-top: 1px solid #e8e6e0;
  margin: 14px auto;
  width: 48px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--ease);
  padding-top: env(safe-area-inset-top, 0px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.nav-desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo img {
  max-height: 56px;
  width: auto;
}

.logo-mobile img {
  max-height: 40px;
  width: auto;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-menu a {
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: 14px;
  text-transform: lowercase;
  color: var(--ink);
  transition: color var(--ease);
  padding: 8px 0;
}

.main-menu a:hover {
  color: var(--brand);
}

.nav-mobile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h-m);
  padding: 0 4px 0 2px;
  gap: 10px;
}

.nav-mobile .btn-ordina {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 40px;
  padding: 0 16px;
  font-size: 12px;
}

.hamburger {
  width: var(--tap);
  height: var(--tap);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 12px;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  position: relative;
  display: inline-block;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  position: absolute;
  width: 22px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease, opacity 0.2s ease;
  left: 0;
}

.hamburger-inner { top: 7px; }
.hamburger-inner::before {
  content: "";
  top: -7px;
}
.hamburger-inner::after {
  content: "";
  top: 7px;
}

.hamburger.is-active .hamburger-inner {
  background: transparent;
}
.hamburger.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}
.hamburger.is-active .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

.menu-mobile {
  display: none;
  background: var(--brand);
  padding: 4px 0 calc(12px + env(safe-area-inset-bottom, 0px));
}

.menu-mobile.is-open {
  display: block;
}

.menu-mobile a {
  display: block;
  padding: 16px var(--gutter);
  color: var(--white);
  font-size: 16px;
  text-transform: lowercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  min-height: var(--tap);
}

.menu-mobile a:active {
  background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 992px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .menu-mobile { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  margin-top: calc(var(--header-h-m) + env(safe-area-inset-top, 0px));
  min-height: calc(100svh - var(--header-h-m) - env(safe-area-inset-top, 0px));
  overflow: hidden;
  background: #dfe6f5;
  touch-action: pan-y;
}

@media (min-width: 992px) {
  .hero {
    margin-top: var(--header-h);
    min-height: calc(100svh - var(--header-h));
  }
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* Hero mobile: varianti leggere; desktop: full */
.hero-slide[data-bg="0"] {
  background-image: image-set(
    url("../images/bg0-sm.webp") type("image/webp"),
    url("../images/bg0-sm.jpg") type("image/jpeg")
  );
}
.hero-slide[data-bg="1"] {
  background-image: image-set(
    url("../images/bg1-sm.webp") type("image/webp"),
    url("../images/bg1-sm.jpg") type("image/jpeg")
  );
}
.hero-slide[data-bg="2"] {
  background-image: image-set(
    url("../images/bg2-sm.webp") type("image/webp"),
    url("../images/bg2-sm.jpg") type("image/jpeg")
  );
}

@media (min-width: 768px) {
  .hero-slide[data-bg="0"] {
    background-image: image-set(
      url("../images/bg0.webp") type("image/webp"),
      url("../images/bg0.jpg") type("image/jpeg")
    );
  }
  .hero-slide[data-bg="1"] {
    background-image: image-set(
      url("../images/bg1.webp") type("image/webp"),
      url("../images/bg1.jpg") type("image/jpeg")
    );
  }
  .hero-slide[data-bg="2"] {
    background-image: image-set(
      url("../images/bg2.webp") type("image/webp"),
      url("../images/bg2.jpg") type("image/jpeg")
    );
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px var(--gutter) 84px;
  color: var(--brand);
}

.hero-inner {
  max-width: 920px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-panel {
  width: 100%;
}

.hero-kicker {
  font-family: "Norican", cursive;
  font-size: clamp(20px, 5.5vw, 35px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.hero-title {
  font-family: Lato-Black, Arial, sans-serif;
  font-size: clamp(38px, 11vw, 110px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}

.hero-text {
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.5;
  max-width: 34em;
  margin: 0 auto 24px;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  padding: 8px;
}

.hero-dots button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: 0;
  position: relative;
  padding: 0;
}

.hero-dots button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(36, 56, 121, 0.35);
  transition: width var(--ease), background var(--ease);
}

.hero-dots button.is-active::after {
  width: 22px;
  border-radius: 999px;
  background: var(--brand);
}

/* Sections */
.section {
  padding: var(--space-section) 0;
}

.section-tight {
  padding: calc(var(--space-section) * 0.65) 0;
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-head .txt-eyebrow {
  margin-bottom: 8px;
}

.section-head hr {
  margin-top: 18px;
  margin-bottom: 18px;
}

#tradizione,
#ingredienti,
#pausapranzo,
#sughi,
#prenota,
#stats {
  scroll-margin-top: calc(var(--header-h-m) + 12px);
}

@media (min-width: 992px) {
  #tradizione,
  #ingredienti,
  #pausapranzo,
  #sughi,
  #prenota,
  #stats {
    scroll-margin-top: calc(var(--header-h) + 16px);
  }
}

/* Story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}

@media (min-width: 992px) {
  .story-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-xl);
    align-items: center;
  }
}

.media-frame {
  border: 10px solid var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .media-frame {
    border-width: 14px;
  }
}

.trk-video {
  position: relative;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.trk-video iframe,
.trk-video .media-facade,
.trk-video .media-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 0;
}

.sign {
  margin: 18px auto 0;
  max-width: 160px;
}

/* Stats */
.stats {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  background-repeat: no-repeat;
  color: var(--white);
}

.stats[data-bg="1"] {
  background-image: image-set(
    url("../images/bg1-sm.webp") type("image/webp"),
    url("../images/bg1-sm.jpg") type("image/jpeg")
  );
}

@media (min-width: 768px) {
  .stats[data-bg="1"] {
    background-image: image-set(
      url("../images/bg1.webp") type("image/webp"),
      url("../images/bg1.jpg") type("image/jpeg")
    );
  }
}

@media (min-width: 992px) {
  .stats {
    background-attachment: fixed;
  }
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(36, 56, 121, 0.72);
}

.stats-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: var(--space-lg) 0;
}

@media (min-width: 992px) {
  .stats-inner {
    grid-template-columns: repeat(4, 1fr);
    padding: var(--space-xl) 0;
    gap: 8px;
  }
}

.stat {
  text-align: center;
  padding: var(--space-md) var(--space-xs);
}

.stat-num {
  display: block;
  font-family: Lato-Black, Arial, sans-serif;
  font-size: clamp(34px, 9vw, 56px);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-ico {
  margin: 0 auto 12px;
  width: 48px;
  transition: transform var(--ease);
}

.stat:hover .stat-ico {
  transform: translateY(-3px);
}

.stat-label {
  font-family: Lato-Regular, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  display: block;
  padding: 0 4px;
}

@media (min-width: 768px) {
  .stat-label { font-size: 15px; }
  .stat-ico { width: 54px; }
}

/* Ingredients */
.ingredients {
  background-size: cover;
  background-position: center;
}

.ingredients[data-bg="02"] {
  background-image: image-set(
    url("../images/bg-02.webp") type("image/webp"),
    url("../images/bg-02.jpg") type("image/jpeg")
  );
  background-image: url("../images/bg-02.jpg");
}

.ingredients-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.ingredients-plate {
  order: -1;
  max-width: 360px;
  margin: 0 auto;
  width: 100%;
}

.ingredient-list {
  display: grid;
  gap: var(--space-md);
}

.ingredient-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
}

.ingredient-item .ingredient-ico {
  order: -1;
}

.ingredient-item .ingredient-copy,
.ingredient-item.is-right .ingredient-copy {
  text-align: left;
}

.ingredient-ico {
  width: 52px;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .ingredients-layout {
    grid-template-columns: 1fr minmax(260px, 360px) 1fr;
    gap: var(--space-md);
  }

  .ingredients-plate {
    order: 0;
    max-width: none;
  }

  .ingredient-item {
    background: transparent;
    padding: 8px 0;
    border-radius: 0;
  }

  .ingredient-item:not(.is-right) {
    grid-template-columns: 1fr 64px;
  }

  .ingredient-item:not(.is-right) .ingredient-ico {
    order: 0;
  }

  .ingredient-item:not(.is-right) .ingredient-copy {
    text-align: right;
  }

  .ingredient-item.is-right {
    grid-template-columns: 64px 1fr;
  }

  .ingredient-ico {
    width: 64px;
  }
}

/* Lunch */
.lunch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  align-items: center;
}

.lunch-copy {
  padding: var(--space-sm) 0 var(--space-md);
}

@media (min-width: 768px) {
  .lunch-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

  .lunch-copy {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* Sauces */
.sauces-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .sauces-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  .sauces-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}

.sauce-card {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform var(--ease), box-shadow var(--ease);
}

.sauce-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.1);
}

.sauce-card > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sauce-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 26px;
  gap: 8px;
}

.sauce-body.sauce-body--solo {
  padding-top: 36px;
}

.sauce-icons {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(2px, 1.2vw, 8px);
  width: 90%;
  margin-top: 12px;
  margin-inline: auto;
}

.sauce-icons a {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1 / 1;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.sauce-icons img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  aspect-ratio: auto;
}

.sauce-icons .ico-on {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
  margin: auto;
  opacity: 0;
  transition: opacity var(--ease);
}

.sauce-icons a:hover .ico-on,
.sauce-icons a:active .ico-on {
  opacity: 1;
}

/* Booking */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .book-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

.book-cta {
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 22px 18px;
  text-transform: none;
  letter-spacing: 0;
  font-size: inherit;
  font-weight: normal;
  color: var(--ink) !important;
  background: var(--paper);
  border: 2px solid transparent;
  box-shadow: none;
  text-align: center;
}

.book-cta:hover {
  border-color: var(--brand);
  background: var(--white);
  box-shadow: var(--shadow-btn-soft);
  color: var(--ink) !important;
}

.book-cta img {
  max-width: 72px;
  margin: 0 auto;
}

.book-cta .txt-card-title {
  margin: 4px 0 0;
  letter-spacing: 0;
  text-transform: none;
}

.book-cta p {
  margin: 0;
  font-size: 18px;
  color: var(--brand);
}

.book-cta--wa:hover {
  border-color: #25d366;
}

.book-cta--tel:hover {
  border-color: var(--brand);
}

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

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

/* Facade media (YouTube / Maps) — evita iframe pesanti al first paint */
.media-facade {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 280px;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  background: #111 center / cover no-repeat;
  color: #fff;
}

.media-facade--map {
  min-height: 320px;
  background-color: #e8e4dc;
  background-image: none;
  color: var(--ink);
}

.media-facade__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-size: 0;
}

.media-facade__play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}

.media-facade__label {
  position: relative;
  z-index: 1;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-family: "Lato", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.media-embed {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
}

.media-embed--map,
.map-embed {
  min-height: 320px;
}

@media (min-width: 768px) {
  .media-facade,
  .media-embed {
    min-height: 420px;
  }

  .media-facade--map,
  .media-embed--map,
  .map-embed {
    min-height: 420px;
  }
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 980;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.1);
  transform: translateY(110%);
  transition: transform var(--ease);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta a {
  width: 100%;
  min-height: 48px;
  font-size: 12px;
  letter-spacing: 0.06em;
  /* Solo proprietà composite: evita animazioni non-composited (box-shadow) */
  transition: transform 0.18s ease, background-color var(--ease), color var(--ease), border-color var(--ease);
}

.sticky-cta .sticky-wa {
  background: #25d366;
  color: var(--white) !important;
  border-color: #25d366;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
}

.sticky-cta .sticky-wa:hover {
  background: #1ebe57;
  color: var(--white) !important;
}

.sticky-cta .sticky-call {
  background: var(--brand);
  color: var(--white) !important;
  box-shadow: var(--shadow-btn-soft);
}

.sticky-cta .sticky-call:hover {
  background: var(--brand-dark);
  color: var(--white) !important;
}

@media (min-width: 992px) {
  .sticky-cta {
    display: none;
  }
}

body.has-sticky-cta {
  --sticky-h: 68px;
}

/* Legal */
.legal {
  margin-top: calc(var(--header-h-m) + env(safe-area-inset-top, 0px));
  padding: var(--space-lg) 0 var(--space-xl);
  background: var(--paper);
}

@media (min-width: 992px) {
  .legal {
    margin-top: var(--header-h);
    padding: var(--space-xl) 0;
  }
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: var(--space-lg) var(--gutter);
  line-height: 1.7;
  color: var(--muted);
  border-radius: 12px;
}

.legal-content h1 {
  font-family: "Norican", cursive;
  color: var(--brand);
  font-size: clamp(30px, 7vw, 42px);
  margin: 0 0 20px;
}

.legal-content h5 {
  font-family: Lato-Bold, Arial, sans-serif;
  color: var(--ink);
  font-size: 17px;
  margin: 24px 0 10px;
}

.legal-content a {
  color: var(--brand);
  text-decoration: underline;
  word-break: break-word;
}

/* Footer — compact, flush bottom: 0 */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  background: var(--paper);
  background-image: url("../images/icons/symbol-36.png");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 120px auto;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom, 0px));
}

.footer-inner {
  padding-top: 28px;
  padding-bottom: 20px;
  display: grid;
  gap: 14px 24px;
  align-items: center;
}

.footer-brand img {
  max-width: 120px;
}

.footer-copy {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.55;
}

.footer-copy a {
  color: var(--brand);
  text-decoration: underline;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.footer-social img {
  width: auto;
  height: 22px;
  max-width: 22px;
  object-fit: contain;
}

.trk-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
  transition: opacity var(--ease);
}

.trk-credit:hover,
.trk-credit:focus-visible {
  opacity: 0.85;
}

.trk-credit img {
  width: 64px;
  height: 16px;
  max-width: none;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: auto 1fr auto;
    padding-top: 36px;
    padding-bottom: 28px;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
}

/* Back to top */
.btn-top {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(18px + var(--sticky-h) + env(safe-area-inset-bottom, 0px));
  z-index: 990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  transition: transform var(--ease), background var(--ease), bottom var(--ease);
}

.btn-top.is-visible {
  display: inline-flex;
}

.btn-top:hover {
  background: var(--brand-dark);
}

.btn-top:active {
  transform: scale(0.95);
}

.icon-svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.p-b-15 { margin-bottom: 15px; }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
