/* preferiti e confronto (caricato su tutte le pagine, dopo stitch.css) */
.card { position: relative; }
.fav-btn { position: absolute; z-index: 3; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.94); color: #00519E; box-shadow: 0 2px 8px rgba(0, 37, 71, 0.25); cursor: pointer; transition: transform 0.15s, background-color 0.2s; }
.ix-main { position: relative; }
.ix-main .fav-btn { top: 10px; left: 10px; right: auto; }
.fav-btn:hover { transform: scale(1.08); }
.fav-btn .i { width: 22px; height: 22px; }
.fav-btn[aria-pressed="true"] { background: #00519E; color: #fff; }
.fav-btn[aria-pressed="true"] .i { fill: currentColor; }
.fav-btn:focus-visible, .cmp-btn:focus-visible { outline: 3px solid #00519E; outline-offset: 2px; }
.cmp-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1.5px solid #00519E; border-radius: 999px; background: transparent; color: #00519E; font: 600 0.9rem var(--ff-sans, sans-serif); cursor: pointer; margin-right: auto; }
.cmp-btn .i { width: 18px; height: 18px; opacity: 0.45; }
.cmp-btn[aria-pressed="true"] { background: #00519E; color: #fff; }
.cmp-btn[aria-pressed="true"] .i { opacity: 1; }
.cmp-bar { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 22px; border-radius: 999px; background: #002547; color: #fff; box-shadow: 0 12px 32px rgba(0, 37, 71, 0.4); max-width: calc(100vw - 24px); }
.cmp-bar[hidden] { display: none; }
.cmp-n { font-weight: 600; font-size: 0.95rem; }
.cmp-go { background: #fff; color: #00519E; min-height: 44px; }
.cmp-go:disabled { opacity: 0.45; cursor: not-allowed; }
.cmp-clear { background: none; border: 0; color: #DFEDFE; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 0 8px; }
.cmp-dlg { width: min(960px, 96vw); max-height: 92vh; padding: 0; border: 0; border-radius: 24px; background: #fff; color: #3A3D42; overflow: hidden; }
.cmp-dlg::backdrop { background: rgba(0, 37, 71, 0.72); }
.cmp-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #DEE3EB; }
.cmp-head h2 { margin: 0; font-family: var(--ff-serif, serif); font-size: 1.5rem; color: #002547; }
.cmp-x { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #F0F1F5; color: #002547; cursor: pointer; }
.cmp-scroll { overflow: auto; max-height: calc(92vh - 82px); }
.cmp-t { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp-t th, .cmp-t td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid #DEE3EB; }
.cmp-t tbody th { width: 150px; font-weight: 600; color: #002547; background: #F0F1F5; }
.cmp-t thead th { font-family: var(--ff-serif, serif); font-size: 1.1rem; font-weight: 600; }
.cmp-t thead img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 10px; }
.cmp-t thead a { color: #00519E; }
.cmp-t ul { margin: 0; padding-left: 18px; }
.cmp-t strong { color: #00519E; font-size: 1.15rem; }
@media (max-width: 700px) { .cmp-bar { flex-wrap: wrap; justify-content: center; border-radius: 24px; padding: 12px 16px; } }
.cmp-t { table-layout: fixed; min-width: 640px; }
.cmp-t thead th img { height: 150px; aspect-ratio: auto; }
.cmp-t tbody th, .cmp-t thead td { width: 140px; }

/* video nella scheda */
.vid-dlg { width: min(1000px, 96vw); padding: 0; border: 0; border-radius: 20px; background: #000; overflow: visible; }
.vid-dlg::backdrop { background: rgba(0, 37, 71, 0.85); }
.vid-box { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.vid-box iframe, .vid-box video { width: 100%; height: 100%; border: 0; display: block; }
.vid-x { position: absolute; z-index: 2; top: -56px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #002547; cursor: pointer; }

/* contatti flottanti mentre si scorre */
.fab { position: fixed; z-index: 55; right: 16px; bottom: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fab-i, .fab-t { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: #00519E; box-shadow: 0 6px 18px rgba(0, 37, 71, 0.28); cursor: pointer; transition: transform 0.2s, background-color 0.2s; }
.fab-i:hover, .fab-t:hover { transform: scale(1.08); }
.fab-i .i, .fab-t .i { width: 26px; height: 26px; }
.fab-wa { background: #3BDC8D; color: #002547; }
.fab-t { background: #00519E; color: #fff; }
.fab-t .fab-x { display: none; }
.fab.is-open .fab-t .fab-x { display: block; } .fab.is-open .fab-t .fab-o { display: none; }
.fab:not(.is-open) .fab-list { display: none; }
.fab-i:focus-visible, .fab-t:focus-visible { outline: 3px solid #002547; outline-offset: 2px; }
@media (max-width: 1000px) { .page-listing .fab { bottom: 92px; } .fab-i, .fab-t { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .fab-i, .fab-t { transition: none; } }

/* recensioni */
.sx-rev { background: transparent; }
.rv-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 28px; }
.rv-stat { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: #fff; border: 1px solid #DEE3EB; color: #002547; text-decoration: none; font-size: 0.95rem; box-shadow: 0 4px 14px rgba(0, 37, 71, 0.06); }
a.rv-stat:hover { border-color: #00519E; }
.rv-stat .i { width: 24px; height: 24px; }
.rv-grid, .rv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rv { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 22px; border-radius: 22px; background: #fff; border: 1px solid #DEE3EB; box-shadow: 0 6px 18px rgba(0, 37, 71, 0.06); }
.rv-q { margin: 0; color: #3A3D42; line-height: 1.55; font-size: 0.98rem; }
.rv-by { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: 0.875rem; color: #5F6B7C; }
.rv-by .i { flex: none; width: 20px; height: 20px; }
.rv-by b { color: #002547; }
.rv-st { margin-left: auto; color: #E8A317; letter-spacing: 1px; }
.rv-note { margin: 22px 0 0; text-align: center; font-size: 0.85rem; color: #5F6B7C; }
.rv-score { margin: 0 0 12px; color: #002547; } .rv-score b { font-size: 1.6rem; color: #00519E; }
.rv-list { grid-template-columns: minmax(0, 1fr); }
.rv-list .rv { box-shadow: none; background: #F0F1F5; border: 0; padding: 16px 18px; }
@media (max-width: 1000px) { .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rv-grid { grid-template-columns: minmax(0, 1fr); } }
.sx-rev .sx-h2 { color: #002547; } .sx-rev .sx-sub { color: #3A3D42; }

.rv-flag { display: inline-block; width: 20px; height: 14px; margin-right: 2px; border-radius: 2px; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0, 37, 71, 0.15); }

/* ---------- Telefono (fino a 640 px): pagine più corte e pulsanti più comodi ---------- */
@media (max-width: 640px) {
  /* Home: "Scegli un alloggio" e recensioni diventano strisce da scorrere col dito (una scheda e un pezzo della successiva) */
  .sx-feature .sx-grid2, .rv-grid {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; --gut: clamp(16px, 4vw, 48px); scroll-padding-inline: var(--gut);
    margin-inline: calc(-1 * var(--gut)); padding: 6px var(--gut) 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .sx-feature .sx-grid2::-webkit-scrollbar, .rv-grid::-webkit-scrollbar { display: none; }
  .sx-feature .sx-grid2 > *, .rv-grid > .rv { scroll-snap-align: start; min-width: 0; }
  .sx-feature .sx-grid2 .card:hover { transform: none; }
  .rv-grid { align-items: start; }
  .rv-grid .rv { padding: 18px; gap: 12px; }
  .rv-stat { font-size: 0.875rem; padding: 8px 14px; }

  /* Servizi: due per riga, schede più compatte */
  .sx-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sx-svc li { padding: 18px 12px; border-radius: 18px; }
  .sx-svc-i { width: 48px; height: 48px; margin-bottom: 10px; }
  .sx-svc-i .i { width: 24px; height: 24px; }
  .sx-svc h3 { font-size: 1.05rem; }
  .sx-svc p { font-size: 0.875rem; line-height: 1.4; }

  /* Elenco alloggi: Booking.com e Airbnb affiancati sotto "Vedi alloggio" */
  .ix-actions .ix-info { flex: 1 1 100%; }
  .ix-actions .ix-ota { flex: 1 1 calc(50% - 4px); min-width: 0; padding-inline: 10px; gap: 6px; font-size: 0.95rem; }

  /* Piè di pagina: contatti a tutta larghezza, poi i gruppi di link due per riga */
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 32px 0; }
  .foot-cols > :first-child { grid-column: 1 / -1; }
  .foot-cols .foot-list a { overflow-wrap: anywhere; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) { .sx-feature .sx-grid2, .rv-grid { scroll-behavior: smooth; } }

/* ---------- Telefono (fino a 767 px): il carosello in cima alla home diventa una scheda foto leggibile ----------
   Sul telefono la foto era tutta coperta da testi, zone e comandi. Qui: titolo, poi la foto intera senza velo,
   sotto la didascalia con nome e prezzo dell'alloggio e i comandi, poi testo, pulsanti e zone. */
@media (max-width: 767px) {
  .sx-hero { --gut: clamp(16px, 4vw, 48px); display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 28px 0 96px; }
  .sx-hero .sx-hero-grid, .sx-hero .sx-hero-copy { display: contents; }
  .sx-hero .sx-h1, .sx-hero .sx-lead, .sx-hero .sx-cta, .sx-hero .sx-zones, .sx-hero-bg, .sx-hero-bar { margin-inline: var(--gut); width: auto; }
  .sx-hero .sx-h1 { order: 1; margin-top: 0; margin-bottom: 18px; }
  .sx-hero-bg { order: 2; position: relative; inset: auto; z-index: 0; aspect-ratio: 4 / 3; border-radius: 20px 20px 0 0; overflow: hidden; background: #002547; }
  .sx-hero-bg::after { display: none; }
  .sx-hero-bg img.sx-slide { object-position: center; }
  .sx-hero-bar { order: 3; padding-inline: 0; display: flex; flex-direction: column; align-items: stretch; gap: 14px; margin-top: 0; }
  .sx-hero-chips { width: 100%; flex: none; }
  .sx-hero .sx-hero-chips .sx-chip { display: flex; width: 100%; max-width: none; padding: 14px 16px; border: 0; border-radius: 0 0 20px 20px; box-shadow: 0 8px 24px rgba(0, 37, 71, 0.3); line-height: 1.4; }
  .sx-hero-ctl { align-self: center; margin: 0; background: rgba(255, 255, 255, 0.12); backdrop-filter: none; }
  .sx-hero .sx-lead { order: 4; margin-top: 22px; }
  .sx-hero .sx-cta { order: 5; }
  .sx-hero .sx-zones { order: 6; margin-top: 20px; }
}

/* indicatore delle strisce da scorrere (creato da hero.js): barra, contatore, "Scorri" con freccia */
.swipe-ui { display: none; }
@media (max-width: 640px) {
  .swipe-ui { display: flex; align-items: center; gap: 12px; margin-top: 2px; color: #00376B; font-size: 0.875rem; font-weight: 600; }
  .swipe-ui[hidden] { display: none; }
  .swipe-bar { position: relative; flex: 1 1 auto; height: 4px; border-radius: 999px; background: #DEE3EB; overflow: hidden; }
  .swipe-thumb { position: absolute; left: 0; top: 0; height: 100%; border-radius: 999px; background: #00519E; transition: transform 0.15s linear; }
  .swipe-n { flex: none; font-variant-numeric: tabular-nums lining-nums; color: #5F6B7C; font-weight: 500; }
  .swipe-hint { order: -1; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #DFEDFE; color: #00519E; }
  .swipe-hint .i { width: 16px; height: 16px; animation: swipe-nudge 1.4s ease-in-out infinite; }
  .swipe-ui.used .swipe-hint .i { animation: none; }
  .swipe-ui.at-end .swipe-hint { opacity: 0.45; }
  .swipe-ui.at-end .swipe-hint .i { transform: scaleX(-1); animation: none; }
}
@keyframes swipe-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@media (prefers-reduced-motion: reduce) { .swipe-hint .i { animation: none; } .swipe-thumb { transition: none; } }

/* ---------- Hero: titolo composto come il logo e pulsanti con icona ----------
   Logo: parola in corsivo a pennello ("Myhome") con un tratto che la sottolinea, sotto "SORRENTO" in maiuscole
   molto spaziate allineato a destra. Qui: la parola "casa" in Fraunces corsivo morbido con un tratto di pennello,
   sotto "in SORRENTO" spaziato e allineato a destra della prima riga. Solo i font del sito (Fraunces, Figtree). */
.sx-h1-logo { display: inline-flex; flex-direction: column; align-items: flex-start; text-wrap: nowrap; }
.sx-h1-logo .h1-l1 { display: block; }
.sx-h1-logo em { position: relative; display: inline-block; font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; padding-right: 0.08em; }
.sx-h1-logo em::after {
  content: ""; position: absolute; left: -0.06em; right: -0.18em; bottom: -0.1em; height: 0.26em; background: currentColor; opacity: 0.9; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M2 22C28 20 54 17 84 15 126 12 170 9 202 6 216 5 228 3 238 1 230 6 214 10 196 13 160 17 120 20 84 22 56 24 28 25 4 25 0 25 0 23 2 22Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 28' preserveAspectRatio='none'%3E%3Cpath d='M2 22C28 20 54 17 84 15 126 12 170 9 202 6 216 5 228 3 238 1 230 6 214 10 196 13 160 17 120 20 84 22 56 24 28 25 4 25 0 25 0 23 2 22Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.sx-h1-logo .h1-l2 { align-self: flex-end; display: flex; align-items: baseline; gap: 0.55em; margin-top: 0.5em; margin-right: -0.34em; font-family: var(--ff-sans); font-size: max(0.95rem, 0.32em); font-weight: 600; line-height: 1; letter-spacing: 0.34em; text-transform: uppercase; color: #DFEDFE; }
.sx-h1-logo .h1-in { font-family: var(--ff-serif); font-style: italic; font-weight: 500; font-variation-settings: "SOFT" 100, "WONK" 1; font-size: 1.3em; letter-spacing: 0; text-transform: none; color: #fff; }

.sx-cta-hero { gap: 12px; }
.hero-btn { gap: 8px; min-height: 44px; padding: 6px 16px 6px 6px; text-align: left; }
.hero-btn-i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; }
.hero-btn-i .i { width: 20px; height: 20px; }
.pill-solid.hero-btn .hero-btn-i { background: #00519E; color: #fff; }
.pill-line.hero-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.8); }
.pill-line.hero-btn:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }
.pill-line.hero-btn .hero-btn-i { background: rgba(255, 255, 255, 0.2); color: #fff; }
.hero-btn-go { width: 18px; height: 18px; transition: transform 0.2s; }
.hero-btn:hover .hero-btn-go { transform: translateX(3px); }
@media (max-width: 767px) {
  .sx-hero .sx-h1-logo { align-self: flex-start; font-size: clamp(2.6rem, 11.5vw, 3.4rem); margin-bottom: 22px; }
  .sx-cta-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sx-cta-hero .hero-btn { justify-content: flex-start; gap: 8px; min-height: 44px; padding: 6px 12px 6px 6px; font-size: 0.9rem; line-height: 1.15; white-space: normal; }
  .sx-cta-hero .hero-btn-go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-btn-go { transition: none; } }

/* ---------- Sfondi delle fasce con i caroselli: maiolica del sito, stilizzata ----------
   Sulle fasce chiare (alloggi in evidenza, recensioni) la stessa maiolica in blu tenue, che sfuma in alto e in basso;
   nel carosello in cima sul telefono la maiolica bianca su un blu con luce al centro dietro la foto. */
:root { --maiolica-chiara: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 96 96'%3E%3Cg stroke='%2300519E' stroke-opacity='.075' stroke-width='1.4' fill='none' stroke-linejoin='round'%3E%3Cpath d='M48 2L94 48 48 94 2 48z'/%3E%3Cpath d='M48 13L83 48 48 83 13 48z'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(0 48 48)'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(90 48 48)'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(180 48 48)'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(270 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(45 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(135 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(225 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(315 48 48)'/%3E%3Ccircle cx='48' cy='48' r='4'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='96' cy='0' r='7'/%3E%3Ccircle cx='96' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='96' r='7'/%3E%3Ccircle cx='0' cy='96' r='2.2'/%3E%3Ccircle cx='96' cy='96' r='7'/%3E%3Ccircle cx='96' cy='96' r='2.2'/%3E%3Ccircle cx='24' cy='24' r='2.4'/%3E%3Ccircle cx='72' cy='24' r='2.4'/%3E%3Ccircle cx='24' cy='72' r='2.4'/%3E%3Ccircle cx='72' cy='72' r='2.4'/%3E%3C/g%3E%3C/svg%3E"); --maiolica-viva: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='112' viewBox='0 0 96 96'%3E%3Cg stroke='%23fff' stroke-opacity='.16' stroke-width='1.4' fill='none' stroke-linejoin='round'%3E%3Cpath d='M48 2L94 48 48 94 2 48z'/%3E%3Cpath d='M48 13L83 48 48 83 13 48z'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(0 48 48)'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(90 48 48)'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(180 48 48)'/%3E%3Cellipse cx='48' cy='33' rx='6.5' ry='12' transform='rotate(270 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(45 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(135 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(225 48 48)'/%3E%3Cellipse cx='48' cy='35' rx='4' ry='8' transform='rotate(315 48 48)'/%3E%3Ccircle cx='48' cy='48' r='4'/%3E%3Ccircle cx='0' cy='0' r='7'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='96' cy='0' r='7'/%3E%3Ccircle cx='96' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='96' r='7'/%3E%3Ccircle cx='0' cy='96' r='2.2'/%3E%3Ccircle cx='96' cy='96' r='7'/%3E%3Ccircle cx='96' cy='96' r='2.2'/%3E%3Ccircle cx='24' cy='24' r='2.4'/%3E%3Ccircle cx='72' cy='24' r='2.4'/%3E%3Ccircle cx='24' cy='72' r='2.4'/%3E%3Ccircle cx='72' cy='72' r='2.4'/%3E%3C/g%3E%3C/svg%3E"); }
.sx-feature, .sx-rev {
  background-color: #F0F1F5;
  background-image: linear-gradient(180deg, #F0F1F5 0, rgba(240, 241, 245, 0) 140px, rgba(240, 241, 245, 0) calc(100% - 140px), #F0F1F5 100%), var(--maiolica-chiara);
  background-size: auto, 112px 112px; background-position: 0 0, top center;
}
@media (max-width: 767px) {
  .sx-hero {
    background-color: #00376B;
    background-image: var(--maiolica-viva), radial-gradient(ellipse 120% 55% at 50% 34%, #00519E 0%, rgba(0, 81, 158, 0.35) 55%, rgba(0, 37, 71, 0) 100%), linear-gradient(180deg, #002547 0%, #00376B 45%, #002547 100%);
    background-size: 112px 112px, auto, auto; background-position: top center, 0 0, 0 0;
  }
  .sx-hero-bg { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 18px 40px rgba(0, 20, 40, 0.45); }
  .sx-feature .sx-grid2 .card, .rv-grid .rv { box-shadow: 0 10px 26px rgba(0, 37, 71, 0.12); }
}

/* ---------- Lingue con bandierine ---------- */
.lg-flag { display: inline-block; flex: none; width: 18px; height: 13px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 37, 71, 0.18); }
.nav .lang .lg-cur, .nav .lang .lg-oth { display: inline-flex; align-items: center; gap: 6px; }
.nv-i, .nv-go, .nv-contact, .m-lab { display: none; }

/* ---------- Menu del telefono: più caldo e più utile ----------
   Pulsante con la scritta "Menu"; pannello con icona per ogni voce, voce attuale evidenziata, lingua come
   interruttore con bandierine, "Verifica date" e in fondo WhatsApp, telefono ed email a portata di dito. */
@media (max-width: 1000px) {
  .menu-btn { width: auto; gap: 8px; padding: 0 16px 0 13px; }
  .menu-btn .m-lab { display: inline; font: 600 0.95rem/1 var(--ff-sans); color: #00376B; }
  .menu-btn .i { width: 22px; height: 22px; }
  body.nav-open .menu-btn { background: #00519E; color: #fff; }
  body.nav-open .menu-btn .m-lab { color: #fff; }

  body.nav-open .nav {
    top: calc(100% + 4px); left: 12px; right: 12px; gap: 2px; padding: 10px 10px 12px; border-radius: 26px; background: #fff;
    box-shadow: 0 24px 60px rgba(0, 37, 71, 0.28), 0 0 0 1px rgba(0, 37, 71, 0.06);
    max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; animation: nv-in 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  body.nav-open .nav > a:not(.lang):not(.nav-cta) {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 8px 10px; border: 0; border-radius: 16px;
    font-family: var(--ff-serif); font-weight: 500; font-variation-settings: var(--fv); font-size: 1.2rem; color: #002547;
    animation: nv-item 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  body.nav-open .nav > a:not(.lang):not(.nav-cta):hover { background: #F0F1F5; }
  body.nav-open .nav > a[aria-current="page"] { background: #F0F1F5; }
  body.nav-open .nav .nv-i { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #DFEDFE; color: #00519E; }
  body.nav-open .nav .nv-i .i { width: 20px; height: 20px; }
  body.nav-open .nav > a[aria-current="page"] .nv-i { background: #00519E; color: #fff; }
  body.nav-open .nav .nv-go { display: block; margin-left: auto; width: 18px; height: 18px; color: #9AA6B6; }
  body.nav-open .nav > a:nth-child(2) { animation-delay: 0.03s; } body.nav-open .nav > a:nth-child(3) { animation-delay: 0.06s; }
  body.nav-open .nav > a:nth-child(4) { animation-delay: 0.09s; } body.nav-open .nav > a:nth-child(5) { animation-delay: 0.12s; }
  body.nav-open .nav > a:nth-child(6) { animation-delay: 0.15s; }

  /* lingua: interruttore a due metà con bandierine */
  body.nav-open .nav .lang { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; min-height: 52px; margin-top: 10px; padding: 4px; border: 0; border-radius: 999px; background: #F0F1F5; color: #002547; font-size: 0.95rem; letter-spacing: 0.06em; }
  body.nav-open .nav .lang .lg-sep { display: none; }
  body.nav-open .nav .lang .lg-cur, body.nav-open .nav .lang .lg-oth { justify-content: center; gap: 8px; border-radius: 999px; min-height: 44px; }
  body.nav-open .nav .lang .lg-cur { background: #fff; box-shadow: 0 2px 8px rgba(0, 37, 71, 0.12); font-weight: 800; }
  body.nav-open .nav .lang .lg-oth { color: #00519E; font-weight: 700; opacity: 1; }
  body.nav-open .nav .lang .lg-flag { width: 22px; height: 16px; }

  body.nav-open .nav a.nav-cta { width: 100%; min-height: 52px; margin-top: 8px; }

  /* contatti in fondo al menu, sulla maiolica blu */
  body.nav-open .nav .nv-contact {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; margin-top: 10px; padding: 12px; border-radius: 20px;
    background-color: #00376B; background-image: var(--maiolica); background-size: 96px 96px;
  }
  body.nav-open .nav .nv-c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 72px; padding: 8px 4px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.1); color: #fff; font: 600 0.85rem/1.1 var(--ff-sans); text-transform: none; letter-spacing: 0; text-decoration: none; }
  body.nav-open .nav .nv-c:hover { background: rgba(255, 255, 255, 0.2); }
  body.nav-open .nav .nv-c .i { width: 24px; height: 24px; }
  body.nav-open .nav .nv-wa .i { color: #3BDC8D; }
}
@keyframes nv-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes nv-item { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Pulsante contatti: chat con WhatsApp, telefono ed email ----------
   Cerchio blu con la nuvoletta e il puntino verde "ci siamo"; apre una scheda con titolo e tre righe con dettagli. */
.fab { align-items: flex-end; }
.fab .fab-t { position: relative; width: 58px; height: 58px; background: linear-gradient(145deg, #00519E, #00376B); color: #fff; box-shadow: 0 10px 26px rgba(0, 37, 71, 0.38), inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.fab .fab-t .i { width: 27px; height: 27px; }
.fab-dot { position: absolute; top: 3px; right: 3px; width: 13px; height: 13px; border-radius: 50%; background: #3BDC8D; box-shadow: 0 0 0 2.5px #fff; }
.fab.is-open .fab-dot { display: none; }
.fab .fab-t::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(0, 81, 158, 0.5); animation: fab-ring 1.8s ease-out 4s 2; pointer-events: none; }
@keyframes fab-ring { from { box-shadow: 0 0 0 0 rgba(0, 81, 158, 0.5); } to { box-shadow: 0 0 0 18px rgba(0, 81, 158, 0); } }
.fab:not(.is-open) .fab-card { display: none; }
.fab-card { width: min(300px, calc(100vw - 32px)); padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 22px 54px rgba(0, 37, 71, 0.3), 0 0 0 1px rgba(0, 37, 71, 0.06); transform-origin: 100% 100%; animation: fab-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes fab-pop { from { opacity: 0; transform: translateY(8px) scale(0.94); } to { opacity: 1; transform: none; } }
.fab-h { margin: 0 4px; font-family: var(--ff-serif); font-weight: 600; font-variation-settings: var(--fv); font-size: 1.3rem; line-height: 1.2; color: #002547; }
.fab-p { margin: 2px 4px 12px; font-size: 0.875rem; color: #5F6B7C; }
.fab-card .fab-list { display: flex; flex-direction: column; gap: 8px; }
.fab-card .fab-i { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; height: auto; min-height: 60px; padding: 9px 12px 9px 9px; border-radius: 16px; background: #F0F1F5; color: #002547; box-shadow: none; text-decoration: none; transform: none; }
.fab-card .fab-i:hover { background: #DFEDFE; transform: none; }
.fab-ic { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #00519E; color: #fff; }
.fab-card .fab-wa { background: #F0F1F5; color: #002547; }
.fab-card .fab-wa .fab-ic { background: #3BDC8D; color: #002547; }
.fab-card .fab-i .i { width: 22px; height: 22px; }
.fab-l { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fab-l b { font-size: 1rem; }
.fab-l small { font-size: 0.8125rem; color: #5F6B7C; overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) { .fab .fab-t::before, .fab-card, body.nav-open .nav, body.nav-open .nav > a { animation: none; } }

/* ---------- Home: una copertina editoriale, con la casa in primo piano ---------- */
.sx-hero {
  --body: #393E47; --display: #002547; --pill-ink: #00519E; --line: #00519E; --ring: #00519E;
  position: relative; display: flex; align-items: center; min-height: 640px; padding: 72px 0 112px;
  overflow: hidden; color: #393E47; background: #F7F6F2; background-image: none; border-radius: 0;
}
.sx-hero-bg {
  position: absolute; z-index: 0; top: 32px; right: max(24px, calc((100vw - 1320px) / 2)); bottom: 82px; left: 51%;
  width: auto; height: auto; overflow: hidden; border-radius: 28px 28px 12px 28px; background: #D7E4EC;
  box-shadow: 0 24px 60px rgba(0, 37, 71, 0.18), 0 0 0 1px rgba(0, 37, 71, 0.08);
}
.sx-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0, 37, 71, 0.5), transparent 35%), linear-gradient(90deg, rgba(0, 37, 71, 0.08), transparent 42%);
}
.sx-hero-bg img { object-position: center 54%; }
.sx-hero-grid { width: 100%; }
.sx-hero-copy { grid-column: span 6; padding: 12px 5vw 0 0; }
.sx-hero-copy::before { display: none; }
.sx-eyebrow {
  margin: 0 0 22px; color: #00519E; font: 700 0.78rem/1.4 var(--ff-sans); letter-spacing: 0.12em;
  text-transform: uppercase; max-width: 40em;
}
.sx-h1-logo { color: #002547; }
.sx-h1-logo .h1-l2 { color: #00519E; }
.sx-h1-logo .h1-in { color: #00519E; }
.sx-h1-logo em::after { background: #3BDC8D; }
.sx-lead { max-width: 34rem; margin-bottom: 28px; color: #4D5967; font-size: clamp(1.04rem, 1.3vw, 1.2rem); line-height: 1.65; }
.sx-cta-hero { margin-bottom: 30px; }
.sx-cta-hero .pill-solid.hero-btn { background: #00519E; color: #fff; box-shadow: 0 8px 18px rgba(0, 81, 158, 0.18); }
.sx-cta-hero .pill-solid.hero-btn:hover { background: #00376B; }
.sx-cta-hero .pill-solid.hero-btn .hero-btn-i { background: rgba(255, 255, 255, 0.16); }
.sx-cta-hero .pill-line.hero-btn { color: #00376B; border-color: rgba(0, 55, 107, 0.28); background: rgba(255, 255, 255, 0.62); }
.sx-cta-hero .pill-line.hero-btn .hero-btn-i { color: #00519E; background: #E6EEF5; }
.sx-cta-hero .pill-line.hero-btn:hover { background: #fff; border-color: #00519E; }
.sx-zone { color: #002547; background: rgba(255, 255, 255, 0.72); border-color: rgba(0, 55, 107, 0.13); box-shadow: 0 2px 8px rgba(0, 37, 71, 0.05); }
.sx-zone:hover { color: #fff; background: #00376B; }
.sx-zone-p { color: #00519E; }
.sx-zone:hover .sx-zone-p { color: #DFEDFE; }
.sx-hero-bar { width: 100%; flex-wrap: nowrap; margin-top: 0; }
.sx-hero-chips { flex: 0 1 auto; min-width: 0; }
.sx-hero .sx-hero-chips .sx-chip { border: 1px solid rgba(0, 37, 71, 0.1); box-shadow: 0 8px 24px rgba(0, 37, 71, 0.18); }
.sx-hero-ctl { background: rgba(0, 37, 71, 0.68); }
.sx-search { margin-top: -44px; }
.sx-search-card { border-radius: 22px; box-shadow: 0 18px 46px rgba(0, 37, 71, 0.13); }
.sx-disclosure { margin: 12px 4px 0; color: #4D5967; font: 500 0.85rem/1.5 var(--ff-sans); text-align: center; }
.sx-feature { margin-top: 0; padding-top: 100px; }
.sx-feature .sx-head { max-width: 760px; }
.sx-feature .sx-h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
.sx-feature .sx-grid2 { gap: 22px; }
.sx-feature .card { box-shadow: 0 12px 34px rgba(0, 37, 71, 0.1); }
.sx-feature .card:hover { box-shadow: 0 20px 42px rgba(0, 37, 71, 0.16); }

@media (max-width: 1000px) and (min-width: 768px) {
  .sx-hero { min-height: 590px; padding-top: 56px; }
  .sx-hero-bg { left: 48%; right: 20px; top: 38px; bottom: 88px; }
  .sx-hero-copy { grid-column: span 6; padding-right: 26px; }
  .sx-h1-logo { font-size: clamp(2.8rem, 6vw, 4rem); }
  .sx-zones { gap: 8px; }
  .sx-zone { width: auto; padding-inline: 12px; font-size: 0.82rem; }
}
@media (max-width: 767px) {
  .sx-hero {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 0;
    padding: 30px 0 82px; color: #393E47; background: #F7F6F2; background-image: none;
  }
  .sx-hero .sx-hero-grid, .sx-hero .sx-hero-copy { display: contents; }
  .sx-hero .sx-eyebrow, .sx-hero .sx-h1, .sx-hero .sx-lead, .sx-hero .sx-cta, .sx-hero .sx-zones, .sx-hero-bg, .sx-hero-bar { margin-inline: var(--gut); width: auto; }
  .sx-hero .sx-eyebrow { order: 0; margin-top: 0; margin-bottom: 12px; font-size: 0.66rem; letter-spacing: 0.1em; }
  .sx-hero .sx-h1-logo { order: 1; align-self: flex-start; margin: 0 16px 14px var(--gut); color: #002547; font-size: clamp(2.7rem, 11vw, 3.35rem); }
  .sx-h1-logo .h1-l2 { color: #00519E; }
  .sx-h1-logo .h1-in { color: #00519E; }
  .sx-hero .sx-lead { order: 2; margin-top: 0; margin-bottom: 18px; max-width: 40rem; color: #4D5967; font-size: 1rem; }
  .sx-hero .sx-cta { order: 3; margin-bottom: 0; }
  .sx-hero .sx-zones { order: 4; margin-top: 16px; }
  .sx-hero-bg { order: 5; position: relative; inset: auto; z-index: 0; height: auto; aspect-ratio: 4 / 3; border-radius: 22px 22px 0 0; box-shadow: 0 12px 30px rgba(0, 37, 71, 0.16); }
  .sx-hero-bg::after { background: linear-gradient(0deg, rgba(0, 37, 71, 0.34), transparent 42%); }
  .sx-hero-bar { order: 6; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 0; }
  .sx-hero-chips { width: 100%; flex: none; }
  .sx-hero .sx-hero-chips .sx-chip { display: flex; width: 100%; max-width: none; padding: 13px 16px; border: 0; border-radius: 0 0 22px 22px; background: #fff; box-shadow: 0 12px 26px rgba(0, 37, 71, 0.12); color: #002547; line-height: 1.4; }
  .sx-hero-ctl { align-self: center; margin: 0; background: #00376B; }
  .sx-cta-hero .hero-btn { min-height: 54px; }
  .sx-zone { background: #fff; }
  .sx-search { margin-top: -34px; }
  .sx-search-card { border-radius: 20px; }
  .sx-feature { padding-top: 74px; }
}
@media (prefers-reduced-motion: reduce) { .sx-hero-bg img.sx-slide { transition: none; } }

/* Effetti fotografici discreti: movimento sulla copertina e feedback al passaggio/focus. */
@keyframes sx-photo-drift { from { transform: scale(1.015); } to { transform: scale(1.075); } }
.sx-hero-bg img.sx-slide.is-active { animation: sx-photo-drift 6.8s cubic-bezier(0.2, 0.65, 0.3, 1) both; transform-origin: center; }
.card-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 42%, rgba(0,37,71,0.12)); transition: opacity 0.45s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card-photo img, .g-btn img, .ix-photo img { transition: transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1), filter 0.45s ease; }
  .card:hover .card-photo img, .card:focus-within .card-photo img { transform: scale(1.065); filter: saturate(1.08) contrast(1.02); }
  .card:hover .card-photo::after, .card:focus-within .card-photo::after { opacity: 1; }
  .g-btn:hover img, .g-btn:focus-visible img, .ix-photo:hover img, .ix-photo:focus-visible img { transform: scale(1.045); filter: saturate(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .sx-hero-bg img.sx-slide.is-active { animation: none; }
  .card-photo::after { transition: none; }
}

/* Home: sezioni come capitoli distinti, con una cadenza coerente */
.page-home main > .sx-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: clamp(22px, 3vw, 40px) var(--panel) 0;
  padding-block: clamp(52px, 6.5vw, 84px);
  border-radius: var(--rad);
  box-shadow: 0 12px 34px rgba(0, 37, 71, 0.07);
}
.page-home main > .sx-feature,
.page-home main > .sx-rev { --band: #F7F6F2; background: #F7F6F2; }
.page-home main > .sx-services { background: #fff; }
.page-home main > .sx-destinations { background: #fff; }
.page-home .sx-destinations .sx-h2 { color: #002547; }
.page-home .sx-destinations .sx-sub { color: #3A3D42; }
.page-home main > .sx-how { background-color: #00376B; }
.page-home main > .sx-about { background: #F0F1F5; }
.page-home main > .sx-blog { --band: #00519E; background: #00519E; color: #fff; }
.page-home .sx-band .sx-head::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 18px;
  border-radius: 99px;
  background: #3BDC8D;
}
.page-home .sx-band .sx-head-center::after { margin-inline: auto; }
.page-home .sx-blog .sx-h2 { color: #fff; }
.page-home .sx-blog .sx-sub { color: #DFEDFE; }
.page-home .sx-blog .sx-post { background: #00376B; }
.page-home .sx-about { box-shadow: none; }
.page-home main > .sx-services,
.page-home main > .sx-how { margin-top: clamp(22px, 3vw, 40px); }
@media (max-width: 767px) {
  .page-home main > .sx-band { padding-block: 48px; }
  .page-home .sx-band .sx-head::after { margin-top: 14px; }
}

/* Link alle piattaforme più compatti nella CTA della home */
.page-home .sx-how-cta a[data-ota] {
  min-height: 44px;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.95rem;
}
.page-home .sx-how-cta a[data-ota] > .i { width: 19px; height: 19px; }

/* ==========================================================================
   Ventata di freschezza moderna: testata vetro, ricerca tattile, card
   editoriali con micro-interazioni e superfici stratificate (palette invariata).
   ========================================================================== */

/* ---------- Testata appiccicosa effetto vetro ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 37, 71, 0.08);
  transition: background-color 0.35s ease, border-color 0.35s ease;
}
body[data-ground="blue"] .site-header {
  background: rgba(0, 81, 158, 0.86);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
body[data-ground="navy"] .site-header {
  background: rgba(0, 55, 107, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
body[data-ground="steel"] .site-header {
  background: rgba(146, 159, 176, 0.9);
  border-bottom-color: rgba(0, 37, 71, 0.14);
}
body[data-ground="deep"] .site-header {
  background: rgba(0, 37, 71, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}
.nav a:not(.pill):not(.lang) {
  position: relative;
  border-bottom: 0;
  transition: color 0.2s ease;
}
.nav a:not(.pill):not(.lang)::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 6px;
  height: 2.5px;
  border-radius: 999px;
  background: #3BDC8D;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav a:not(.pill):not(.lang):hover::after,
.nav a:not(.pill):not(.lang)[aria-current="page"]::after {
  transform: scaleX(1);
}
@media (max-width: 1000px) {
  .nav a:not(.pill):not(.lang)::after { display: none; }
}
.header-cta {
  box-shadow: 0 6px 16px rgba(0, 81, 158, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 81, 158, 0.24);
}

/* ---------- Hero: luce mediterranea, eyebrow a pillola e zone tattili ---------- */
.sx-hero {
  background:
    radial-gradient(ellipse 68% 60% at 8% 12%, rgba(223, 237, 254, 0.85) 0%, transparent 65%),
    radial-gradient(ellipse 52% 48% at 92% 88%, rgba(59, 220, 141, 0.11) 0%, transparent 62%),
    #F7F6F2;
}
.sx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 81, 158, 0.14);
  box-shadow: 0 4px 14px rgba(0, 37, 71, 0.05);
}
.sx-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3BDC8D;
  box-shadow: 0 0 0 3px rgba(59, 220, 141, 0.24);
  flex: none;
}
.sx-zone {
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}
.sx-zone:hover {
  transform: translateY(-2px);
  border-color: #00376B;
  box-shadow: 0 8px 20px rgba(0, 37, 71, 0.16);
}
.sx-hero-ctl {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ---------- Barra di ricerca galleggiante ---------- */
.sx-search-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 37, 71, 0.09);
  box-shadow: 0 24px 56px rgba(0, 37, 71, 0.13), 0 2px 8px rgba(0, 37, 71, 0.05);
}
.sx-search .search-form label input,
.sx-search .search-form label select {
  background: #F4F6FA;
  border: 1.5px solid #E2E7F0;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sx-search .search-form label input:hover,
.sx-search .search-form label select:hover {
  background: #FFFFFF;
  border-color: #B8C5D6;
}
.sx-search .search-form label input:focus,
.sx-search .search-form label select:focus {
  background: #FFFFFF;
  border-color: #00519E;
  box-shadow: 0 0 0 4px rgba(0, 81, 158, 0.12);
}
.sx-search .pill-solid {
  box-shadow: 0 8px 20px rgba(0, 81, 158, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.sx-search .pill-solid:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0, 81, 158, 0.28);
}

/* ---------- Schede alloggio e righe elenco ---------- */
.card {
  border-color: rgba(0, 37, 71, 0.08);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 81, 158, 0.22);
}
.card-facts {
  gap: 8px;
}
.card-facts li {
  padding: 6px 10px;
  border-radius: 10px;
  background: #F4F6FA;
  font-weight: 500;
}
.card .card-cta .i {
  transition: transform 0.22s ease;
}
.card:hover .card-cta .i {
  transform: translateX(3px);
}
.ix-row {
  border: 1px solid rgba(0, 37, 71, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ix-row:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 81, 158, 0.2);
  box-shadow: 0 16px 36px rgba(0, 37, 71, 0.12);
}

/* ---------- Fascia servizi: card editoriali ---------- */
.sx-svc li {
  align-items: flex-start;
  text-align: left;
  padding: 28px 24px;
  border-color: rgba(0, 37, 71, 0.08);
  box-shadow: 0 10px 28px rgba(0, 37, 71, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.sx-svc li:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 81, 158, 0.22);
  box-shadow: 0 18px 38px rgba(0, 37, 71, 0.11);
}
.sx-svc-i {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #DFEDFE 0%, #F0F6FF 100%);
  border: 1px solid rgba(0, 81, 158, 0.12);
}
@media (max-width: 640px) {
  .sx-svc li { padding: 18px 14px; }
  .sx-svc-i { width: 44px; height: 44px; border-radius: 12px; }
}

/* ---------- Fascia "Come prenotare": vetro scuro su maiolica ---------- */
.sx-steps li {
  background: rgba(0, 37, 71, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 36px rgba(0, 15, 35, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.sx-steps li:hover {
  transform: translateY(-4px);
  background: rgba(0, 37, 71, 0.74);
  border-color: rgba(59, 220, 141, 0.45);
}
.sx-n-a {
  box-shadow: 0 0 0 6px rgba(59, 220, 141, 0.2);
}

/* ---------- Recensioni ---------- */
.rv-stat {
  border-color: rgba(0, 37, 71, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.rv-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 37, 71, 0.11);
}
.rv {
  border-color: rgba(0, 37, 71, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.rv:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 81, 158, 0.18);
  box-shadow: 0 14px 30px rgba(0, 37, 71, 0.1);
}

/* ---------- Chi siamo & Blog ---------- */
.sx-about-photo {
  box-shadow: 14px 14px 0 rgba(0, 81, 158, 0.08), 0 20px 44px rgba(0, 37, 71, 0.14);
}
.sx-cap {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.page-home .sx-blog .sx-post {
  background: rgba(0, 37, 71, 0.64);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(150, 193, 247, 0.3);
  transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.page-home .sx-blog .sx-post:hover {
  transform: translateY(-4px);
  background: rgba(0, 37, 71, 0.82);
  border-color: #96C1F7;
}
.sx-more .i {
  transition: transform 0.2s ease;
}
.sx-more:hover .i {
  transform: translateX(4px);
}

/* ---------- Piè di pagina ---------- */
.site-footer {
  background: linear-gradient(180deg, #3A3D42 0%, #2D3035 100%);
}

@media (prefers-reduced-motion: reduce) {
  .site-header, .nav a:not(.pill):not(.lang)::after, .header-cta, .sx-zone, .sx-search .pill-solid,
  .card, .card .card-cta .i, .ix-row, .sx-svc li, .sx-steps li, .rv-stat, .rv,
  .page-home .sx-blog .sx-post, .sx-more .i {
    transition: none;
  }
  .card:hover, .ix-row:hover, .sx-svc li:hover, .sx-steps li:hover, .rv:hover,
  .page-home .sx-blog .sx-post:hover, .sx-zone:hover, .header-cta:hover, .sx-search .pill-solid:hover {
    transform: none;
  }
}

/* ---------- Carosello orizzontale per tutte le recensioni (desktop + mobile) ---------- */
.rv-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  align-items: stretch;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rv-grid::-webkit-scrollbar { display: none; }
.rv-grid > .rv { scroll-snap-align: start; min-width: 0; }
@media (max-width: 1000px) {
  .rv-grid { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .rv-grid { grid-auto-columns: 84%; align-items: start; padding: 6px var(--gut) 18px; }
}
.rv-ctl {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.rv-ctl[hidden] { display: none; }
.rv-ctl .swipe-bar {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  border-radius: 999px;
  background: #DEE3EB;
  overflow: hidden;
}
.rv-ctl .swipe-thumb {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 999px;
  background: #00519E;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.rv-ctl .swipe-n {
  flex: none;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  color: #5F6B7C;
}
.rv-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.rv-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(0, 37, 71, 0.14);
  border-radius: 50%;
  background: #fff;
  color: #00519E;
  box-shadow: 0 4px 12px rgba(0, 37, 71, 0.08);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.rv-btn:hover {
  background: #00519E;
  color: #fff;
  border-color: #00519E;
  transform: translateY(-1px);
}
.rv-btn:focus-visible { outline: 3px solid #00519E; outline-offset: 2px; }
.rv-btn .i { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .rv-ctl .rv-btn[data-act="prev"],
  .rv-ctl .rv-btn[data-act="next"] { display: none; }
}

/* ---------- Animazioni di ingresso (Hero + Scroll Reveal) ---------- */
@keyframes fx-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fx-photo-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: none; }
}
.page-home .sx-eyebrow { animation: fx-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both; }
.page-home .sx-h1-logo { animation: fx-up 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.page-home .sx-lead    { animation: fx-up 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
.page-home .sx-cta-hero{ animation: fx-up 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both; }
.page-home .sx-zones   { animation: fx-up 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.36s both; }
.page-home .sx-hero-bg { animation: fx-photo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both; }
.page-home .sx-search-card { animation: fx-up 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both; }

html.js-fx [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}
html.js-fx [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rv-grid { scroll-behavior: auto; }
  .rv-ctl .swipe-thumb, .rv-btn { transition: none; }
  .page-home .sx-eyebrow, .page-home .sx-h1-logo, .page-home .sx-lead,
  .page-home .sx-cta-hero, .page-home .sx-zones, .page-home .sx-hero-bg,
  .page-home .sx-search-card { animation: none; }
  html.js-fx [data-reveal] { opacity: 1; transform: none; transition: none; }
}
