/* ============================================================
   Conero Sea — Global Stylesheet
   style.css
   ============================================================ */

/* --- RESET --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--deep);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-x: none;
  position: relative;
  width: 100%;
}

@media (hover: none) {
  body { cursor: auto; }
}

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

a { text-decoration: none; }

/* --- DESIGN TOKENS --- */
:root {
  --ink: #02020f;
  --deep: #05051f;
  --navy: #0a0a3c;
  --ind: #1a1a72;
  --mid: #3030a0;
  --vi: #5050ca;
  --per: #8888e0;
  --mist: #d0d0f8;
  --gold: #c89828;
  --gold2: #ebbe42;
  --gold3: #f8d96a;
  --sand: #f5f0e4;
  --white: #ffffff;
  --txt-h: rgba(255,255,255,.96);
  --txt-body: rgba(255,255,255,.78);
  --txt-muted: rgba(255,255,255,.52);
  --txt-dim: rgba(255,255,255,.32);
  --gb: rgba(255,255,255,.07);
  --gbr: rgba(255,255,255,.14);
  --r: 2px;
  --sp-xs: .5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: clamp(3rem,8vw,8rem);
}

/* --- CUSTOM CURSOR --- */
#cu,
#curing {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

#cu {
  width: 9px;
  height: 9px;
  background: var(--gold);
}

#curing {
  width: 34px;
  height: 34px;
  z-index: 9998;
  border: 1.5px solid rgba(229,179,64,.5);
  transition: width .25s, height .25s;
}

@media (hover: none) {
  #cu, #curing { display: none; }
}

/* --- TOP BAR --- */
.topbar {
  background: var(--ind);
  border-bottom: 1px solid rgba(255,255,255,.07);
  height: 36px;
  padding: 0 clamp(1rem,5vw,4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.topbar-left span { white-space: nowrap; }

.topbar a {
  color: rgba(255,255,255,.5);
  transition: color .2s;
}

.topbar a:hover { color: var(--gold2); }

.topbar-right {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.tb-phone {
  color: var(--gold2) !important;
  font-weight: 500;
}

/* selettore lingua (topbar) */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch a {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em;
  padding: 3px 7px; border-radius: 5px; line-height: 1;
  color: rgba(255,255,255,.45) !important; border: 1px solid transparent;
}
.lang-switch a.on {
  color: var(--ink) !important;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
}
.lang-switch a:not(.on):hover { color: var(--gold2) !important; border-color: rgba(229,179,64,.4); }

/* selettore lingua (menu mobile) */
.mob-lang { display: flex; gap: .6rem; margin-top: 1.4rem; }
.mob-lang a {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.6) !important;
  font-size: .8rem; letter-spacing: .05em;
}
.mob-lang a.on { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: var(--ink) !important; border-color: transparent; font-weight: 700; }

@media (max-width: 860px) {
  .topbar { display: none; }
}

/* --- NAV --- */
nav {
  position: sticky;
  top: 0;
  z-index: 600;
  height: 64px;
  padding: 0 clamp(1rem,5vw,4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,6,38,.92);
  backdrop-filter: blur(28px) saturate(1.5);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 50px;
  width: 50px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(82,82,204,.25), 0 2px 12px rgba(0,0,30,.5);
  transition: box-shadow .35s, transform .35s;
}

.brand:hover .brand-logo {
  box-shadow: 0 0 0 2px rgba(120,120,216,.7), 0 4px 22px rgba(82,82,204,.5);
  transform: scale(1.06) rotate(-4deg);
}

.brand-txt .b1 {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: .04em;
  line-height: 1;
}

.brand-txt .b2 {
  display: block;
  font-size: .5rem;
  letter-spacing: .3em;
  color: var(--per);
  text-transform: uppercase;
  margin-top: 3px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
}

.navlinks a {
  color: rgba(255,255,255,.58);
  font-size: .67rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 300;
  position: relative;
  transition: color .3s;
  white-space: nowrap;
  display: inline-block;
  padding: 8px 0;
  -webkit-tap-highlight-color: transparent;
}

.navlinks a::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s cubic-bezier(.77,0,.175,1);
}

.navlinks a:hover,
.navlinks a.active { color: var(--gold2); }

.navlinks a:hover::after,
.navlinks a.active::after { transform: scaleX(1); }

.nav-btn {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--ink) !important;
  padding: 10px 24px;
  border-radius: var(--r);
  font-weight: 600 !important;
  letter-spacing: .13em !important;
  box-shadow: 0 2px 20px rgba(229,179,64,.28);
  overflow: hidden;
  position: relative;
  transition: box-shadow .3s, transform .2s !important;
}

.nav-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%);
  transition: transform .5s;
}

.nav-btn:hover::before { transform: translateX(100%); }
.nav-btn::after { display: none !important; }

.nav-btn:hover {
  box-shadow: 0 4px 32px rgba(229,179,64,.5);
  transform: translateY(-2px) !important;
}

/* Hamburger */
.hbg {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  -webkit-tap-highlight-color: transparent;
}

.hbg span {
  width: 24px;
  height: 1.5px;
  background: var(--mist);
  display: block;
  transition: transform .35s cubic-bezier(.77,0,.175,1), opacity .3s;
}

.hbg.on span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hbg.on span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hbg.on span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .navlinks { display: none; }
  .hbg { display: flex; }
}

/* --- MOBILE OVERLAY MENU --- */
.mob {
  position: fixed;
  inset: 0;
  background: rgba(3,3,22,.97);
  backdrop-filter: blur(24px);
  z-index: 590;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(100%);
  transition: transform .5s cubic-bezier(.77,0,.175,1);
  padding: 2rem;
}

.mob.on { transform: translateX(0); }

.mob-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem,8vw,2.6rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,.58);
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  width: 100%;
  text-align: center;
  transition: color .3s, padding-left .25s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  display: block;
}

.mob-link:hover,
.mob-link:active { color: var(--gold2); padding-left: .5rem; }

.mob-link-active { color: var(--gold2); }

.mob-cta {
  margin-top: 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--ink) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-style: normal !important;
  font-size: .82rem !important;
  font-weight: 600 !important;
  letter-spacing: .18em !important;
  padding: 16px 48px !important;
  border-radius: var(--r) !important;
}

.mob-phone {
  margin-top: 1.2rem;
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--per);
}

/* --- SECTION UTILITIES --- */
.sec {
  padding: clamp(3.5rem,8vw,9rem) clamp(1.2rem,5vw,4rem);
}

.sec-lbl {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .56rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 1rem;
  opacity: .85;
}

.sec-lbl::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--gold2);
  opacity: .6;
}

.sec-ttl {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem,5vw,4rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin-bottom: 1.5rem;
  color: var(--txt-h);
}

.sec-ttl em {
  font-style: italic;
  color: var(--gold2);
}

.mxw {
  max-width: 1200px;
  margin: 0 auto;
}

/* Reveal animations */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s ease, transform .85s ease;
}

.rv.in {
  opacity: 1;
  transform: translateY(0);
}

.d1 { transition-delay: .08s; }
.d2 { transition-delay: .18s; }
.d3 { transition-delay: .28s; }
.d4 { transition-delay: .38s; }

@keyframes fU {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- BADGE GUIDA IN INGLESE (rosso corallo) con pulsante "Chiama" --- */
.h-lang {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 1.8rem;
  padding: 5px 5px 5px 18px; border-radius: 100px;
  background: linear-gradient(135deg, #ff7d68, #ec5640);
  box-shadow: 0 7px 18px rgba(236,86,64,.36);
  animation: fU .7s ease .8s both;
}
/* parte informativa (guida) */
.h-lang-info { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.h-lang-flag { font-size: 1rem; line-height: 1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.h-lang-txt { display: inline-flex; flex-direction: column; line-height: 1.12; text-align: left; }
.h-lang-lead {
  font-size: .44rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.8); font-weight: 500;
}
.h-lang-main {
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
/* pulsante chiama */
.h-lang-call {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 6px; border-radius: 100px;
  background: #fff; color: #d94a34; text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.h-lang-call:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.h-lang-call:active { transform: translateY(0); }
.h-lang-call-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 27px; height: 27px; border-radius: 50%; flex: 0 0 auto;
  background: linear-gradient(135deg, #ff7d68, #ec5640); color: #fff;
}
.h-lang-call-ic svg { width: 13px; height: 13px; }
.h-lang-call-tx { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  .h-lang { flex-wrap: wrap; justify-content: center; gap: 10px; padding: 10px; }
  .h-lang-info { padding-left: 4px; }
}

/* --- BUTTONS --- */
.btn-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--ink);
  padding: 15px 36px;
  border-radius: var(--r);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 4px 28px rgba(229,179,64,.32);
  transition: transform .25s, box-shadow .3s;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  position: relative;
  overflow: hidden;
}

/* riflesso luminoso che attraversa il bottone all'hover */
.btn-p::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.38), transparent 80%);
  transform: translateX(-120%);
  transition: transform .65s cubic-bezier(.77,0,.175,1);
  pointer-events: none;
}

.btn-p:hover::before { transform: translateX(120%); }

.btn-p:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 46px rgba(229,179,64,.55);
}

.btn-p:active { transform: translateY(-1px); }

.btn-g {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.82);
  padding: 15px 32px;
  border-radius: var(--r);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(12px);
  transition: border-color .3s, color .3s, transform .25s, background .3s, box-shadow .3s;
}

.btn-g:hover {
  border-color: rgba(229,179,64,.5);
  color: var(--gold2);
  transform: translateY(-3px);
  background: rgba(229,179,64,.08);
  box-shadow: 0 10px 34px rgba(229,179,64,.18);
}

.btn-g:active { transform: translateY(-1px); }

/* --- PAGE HERO (internal pages) --- */
.page-hero {
  position: relative;
  padding: clamp(5rem,12vw,10rem) clamp(1.2rem,5vw,4rem) clamp(3rem,6vw,5rem);
  text-align: center;
  overflow: clip;
  background:
    radial-gradient(ellipse at 30% 70%, rgba(26,26,114,.6) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(20,19,94,.5) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(10,10,60,.8) 0%, transparent 45%),
    var(--deep);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--gbr), transparent);
}

/* sfondo foto + Ken-Burns + overlay (pagine interne) */
.page-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
  animation: kenburns 26s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.09) translate(-1.2%, -1%); }
}
/* su mobile: niente zoom (la foto si vede intera, non ingrandita) */
@media (max-width: 600px) {
  .page-hero-bg { animation: none; transform: none; }
}
.page-hero-ov {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 100% at 50% 38%, rgba(2,2,15,.40) 0%, rgba(2,2,15,.72) 100%),
    linear-gradient(0deg, var(--deep) 0%, rgba(2,2,15,.55) 28%, rgba(2,2,15,.40) 58%, rgba(2,2,15,.60) 100%);
}
.page-hero .sec-lbl,
.page-hero .sec-ttl,
.page-hero-sub { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .page-hero-bg { animation: none; } }

.page-hero .sec-lbl {
  display: flex;
  justify-content: center;
  animation: fU .7s ease .1s both;
}

.page-hero .sec-ttl {
  font-size: clamp(2.4rem,6vw,5rem);
  animation: fU .8s ease .2s both;
  margin-bottom: .8rem;
  text-align: center;
}

.page-hero-sub {
  font-size: clamp(.72rem,1.2vw,.82rem);
  color: rgba(255,255,255,.5);
  letter-spacing: .16em;
  text-transform: uppercase;
  max-width: 560px;
  margin: 0 auto;
  line-height: 2;
  animation: fU .7s ease .35s both;
}

/* --- CTA BAND (shared across pages) --- */
.cta-band {
  text-align: center;
  padding: clamp(3rem,6vw,5rem) clamp(1.2rem,5vw,4rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(31,31,128,.2) 0%, transparent 60%),
    var(--ink);
  border-top: 1px solid var(--gbr);
}

.cta-band .sec-lbl { justify-content: center; }
.cta-band .sec-ttl { margin-bottom: .6rem; }

.cta-sub {
  font-size: .82rem;
  line-height: 1.9;
  color: rgba(255,255,255,.52);
  font-weight: 300;
  max-width: 480px;
  margin: 0 auto 2rem;
}

.cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- FOOTER --- */
footer {
  background: var(--ink);
  border-top: 1px solid var(--gbr);
  padding: 3.5rem clamp(1.2rem,5vw,4rem) 2rem;
}

.ft-g {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gbr);
}

@media (max-width: 900px) {
  .ft-g { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 500px) {
  .ft-g { grid-template-columns: 1fr; gap: 1.8rem; }
}

.ft-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 1rem;
}

.ft-logo {
  height: 48px;
  width: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 0 1px rgba(82,82,204,.2), 0 2px 10px rgba(0,0,30,.4);
}

.ft-bname {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--mist);
  font-weight: 300;
}

.ft-tagline {
  font-size: .74rem;
  line-height: 1.9;
  color: rgba(255,255,255,.58);
  max-width: 270px;
}

.ft-col h5 {
  font-size: .54rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 1rem;
}

.ft-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.ft-col a {
  color: rgba(255,255,255,.68);
  font-size: .73rem;
  transition: color .3s;
}

.ft-col a:hover { color: var(--gold2); }

/* social icons row */
.ft-social {
  display: flex;
  gap: .9rem;
  margin-top: 1.2rem;
}
.ft-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(229,179,64,.28);
  transition: transform .25s, box-shadow .3s, filter .3s;
}
.ft-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(229,179,64,.45);
  filter: brightness(1.06);
}
.ft-social svg { width: 24px; height: 24px; fill: currentColor; }

.ft-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}

.ft-copy,
.ft-loc {
  font-size: .58rem;
  color: rgba(255,255,255,.42);
  letter-spacing: .07em;
}

/* --- MOBILE CTA BAR --- */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 580;
  background: rgba(3,3,20,.96);
  backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: .85rem 1.2rem;
  padding-bottom: calc(.85rem + env(safe-area-inset-bottom));
  gap: .6rem;
  align-items: center;
}

.mcb-phone,
.mcb-wa,
.mcb-book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--r);
  padding: 14px 8px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: all .25s;
  -webkit-tap-highlight-color: transparent;
}

.mcb-phone {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 2px 14px rgba(255,255,255,.18);
}
.mcb-phone svg { fill: var(--ink); flex: none; }

.mcb-phone:hover,
.mcb-phone:active {
  background: #eef0f6;
  color: var(--ink);
}

.mcb-wa { background: #25D366; color: white; }
.mcb-wa:hover { background: #1fba59; }

.mcb-book {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--ink);
  font-weight: 600;
}

.mcb-book:hover { box-shadow: 0 4px 18px rgba(229,179,64,.4); }

@media (max-width: 860px) {
  .mobile-cta-bar { display: flex; }
  footer { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}

/* --- WHATSAPP FLOAT --- */
.wa {
  position: fixed;
  bottom: 2rem;
  right: 1.8rem;
  z-index: 570;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
  animation: waP .5s cubic-bezier(.16,1,.3,1) 1.8s both;
  transition: transform .3s, box-shadow .3s;
}

.wa:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,.55);
}

.wa svg { width: 26px; fill: white; }

@keyframes waP {
  from { opacity: 0; transform: scale(0) rotate(-45deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}

@media (max-width: 860px) {
  .wa { display: none; }
}

/* --- PAGE WRAP --- */
#page-wrap {
  overflow-x: clip;
  width: 100%;
  position: relative;
}

/* --- MOBILE GLOBAL --- */
@media (max-width: 860px) {
  * { -webkit-tap-highlight-color: transparent; }

  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navlinks a,
  .ft-col a,
  .ft-social a { min-height: unset; }

  section { overflow-x: clip; }

  .sec,
  footer { touch-action: pan-y; max-width: 100%; }

  nav {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  .mob { overscroll-behavior: contain; touch-action: none; }
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.mt-lg { margin-top: 2.5rem; }

.sec-intro {
  font-size: .88rem;
  line-height: 2;
  color: rgba(255,255,255,.6);
  font-weight: 300;
  max-width: 680px;
}

.sec-intro-sm {
  font-size: .82rem;
  line-height: 1.9;
  color: rgba(255,255,255,.52);
  font-weight: 300;
}

.sec-lbl-center { justify-content: center; }

@media (max-width: 480px) {
  .sec-ttl { font-size: clamp(1.8rem,8vw,2.8rem); }
  .ft-g { grid-template-columns: 1fr; }
}

/* ── Utilities aggiuntive ── */
.tour-visual-bg { position: absolute; inset: 0; transition: transform 1s cubic-bezier(.25,.46,.45,.94); }
.tour-visual-bg img { width: 100%; height: 100%; object-fit: cover; }
.obj-top20 { object-position: center 20%; }
.flex-cta-wrap { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Cielo stellato globale ── */
.stars-global {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
@keyframes stw {
  0%, 100% { opacity: inherit; transform: scale(1); }
  50% { opacity: .03; transform: scale(.3); }
}
/* body ha position:relative, quindi i contenuti stanno sopra le stelle */
body { position: relative; z-index: 1; }

/* ── Cielo stellato globale ── */
.stars-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
@keyframes stw {
  0%, 100% { opacity: inherit; transform: scale(1); }
  50% { opacity: .03; transform: scale(.3); }
}

/* --- HOME: richiamo "Dove dormire" --- */
.stay-band {
  position: relative;
  margin: clamp(2rem, 6vw, 4.5rem) auto;
  max-width: 1200px;
  width: calc(100% - 3rem);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--gbr);
  min-height: 360px;
  display: flex;
  align-items: center;
}

.stay-band-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.stay-band-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(2, 2, 15, .9) 0%, rgba(5, 5, 31, .72) 45%, rgba(5, 5, 31, .35) 100%);
}

.stay-band-in {
  position: relative;
  z-index: 2;
  padding: clamp(2rem, 5vw, 3.5rem);
  max-width: 560px;
}

.stay-band-sub {
  color: var(--txt-body);
  line-height: 1.75;
  margin: .8rem 0 1.5rem;
  font-size: 1rem;
}

.stay-band-feats {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.6rem;
}

.stay-band-feats span {
  font-size: .76rem;
  padding: .4rem .8rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--gbr);
  border-radius: 100px;
  color: var(--txt-body);
}

@media (max-width: 600px) {
  .stay-band-ov { background: linear-gradient(180deg, rgba(2, 2, 15, .72) 0%, rgba(5, 5, 31, .9) 100%); }
}

/* --- UTILITY: solo screen reader --- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- MUSICA AMBIENT (controllo flottante) --- */
.amb {
  position: fixed;
  bottom: 2rem;
  left: 1.8rem;
  z-index: 570;
}

.amb-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 32, .58);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--gbr);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .38);
  color: var(--txt-muted);
  cursor: pointer;
  transition: transform .3s, box-shadow .3s, border-color .3s, background .3s, color .3s;
  animation: waP .5s cubic-bezier(.16, 1, .3, 1) 2.1s both;
}

.amb-btn:hover {
  transform: scale(1.08) translateY(-3px);
  border-color: rgba(235, 190, 66, .55);
  box-shadow: 0 8px 26px rgba(200, 152, 40, .32);
  color: var(--gold3);
}

.amb-btn:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}

/* Stato attivo */
.amb.on .amb-btn {
  background: rgba(200, 152, 40, .16);
  border-color: rgba(235, 190, 66, .5);
  color: var(--gold3);
}

/* Equalizer */
.amb-eq {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.amb-eq i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: bottom center;
  transition: height .3s, opacity .3s;
}

/* A riposo: barre basse e attenuate + slash "muto" */
.amb:not(.on) .amb-eq i { opacity: .55; }

.amb-eq::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  top: 50%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translateY(-50%) rotate(-45deg);
  opacity: 0;
  transition: opacity .3s;
}
.amb:not(.on) .amb-eq::after { opacity: .8; }

/* In riproduzione: barre animate */
.amb.on .amb-eq i { animation: ambBar 1s ease-in-out infinite; }
.amb.on .amb-eq i:nth-child(1) { animation-delay: 0s; }
.amb.on .amb-eq i:nth-child(2) { animation-delay: .25s; }
.amb.on .amb-eq i:nth-child(3) { animation-delay: .45s; }
.amb.on .amb-eq i:nth-child(4) { animation-delay: .15s; }

@keyframes ambBar {
  0%, 100% { transform: scaleY(.45); }
  50%      { transform: scaleY(1.9); }
}

/* Mobile: la WhatsApp float sparisce, c'è la barra CTA in basso → solleviamo */
@media (max-width: 860px) {
  .amb {
    bottom: calc(4.8rem + env(safe-area-inset-bottom));
    left: 1rem;
  }
  .amb-btn { width: 46px; height: 46px; }
}

/* Riduzione movimento: niente equalizer animato, resta una forma statica chiara */
@media (prefers-reduced-motion: reduce) {
  .amb.on .amb-eq i { animation: none; }
  .amb.on .amb-eq i:nth-child(1) { height: 9px; }
  .amb.on .amb-eq i:nth-child(2) { height: 16px; }
  .amb.on .amb-eq i:nth-child(3) { height: 11px; }
  .amb.on .amb-eq i:nth-child(4) { height: 18px; }
}

/* --- ACCESSIBILITÀ: riduci i movimenti per chi lo richiede --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   OPERAZIONE COFINANZIATA DALL'UNIONE EUROPEA — parti globali
   ------------------------------------------------------------
   Qui stanno solo la fascia loghi (.ue-logos*, condivisa) e la
   banda in fondo a ogni pagina (.ue-band*).
   Gli stili della scheda completa sono in
   assets/css/pages/progetto-ue.css.

   I loghi istituzionali sono PNG a fondo trasparente ricavati
   dalla fascia ufficiale: hanno tutti la stessa altezza di file
   (240px) e mantengono quindi le proporzioni reciproche
   originali. Vanno sempre posati su una targa chiara
   (.ue-plate): sul fondo scuro del sito non sarebbero leggibili.
   ============================================================ */

/* --- Targa chiara che ospita i loghi --- */
.ue-plate {
  display: inline-block;
  padding: clamp(.95rem, 2.2vw, 1.5rem) clamp(1.1rem, 3vw, 2.2rem);
  background: #fff;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .08),
    0 14px 40px rgba(0, 0, 20, .5);
}

/* --- Fascia loghi --- */
.ue-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(.9rem, 2.4vw, 1.9rem);
}

.ue-logo {
  /* max-height invece di height: su schermi molto stretti il logo
     rimpicciolisce in proporzione invece di essere schiacciato da
     max-width:100% (le proporzioni dei loghi istituzionali non si toccano) */
  height: auto;
  width: auto;
  max-height: 40px;
  flex: 0 1 auto;
}

.ue-logos-sep {
  flex: 0 0 auto;
  width: 1px;
  height: 32px;
  background: #d5d9e2;
}

.ue-logos-lg .ue-logo      { max-height: clamp(44px, 5.6vw, 62px); }
.ue-logos-lg .ue-logos-sep { height: clamp(34px, 4.4vw, 48px); }

@media (max-width: 700px) {
  .ue-logos      { gap: 1rem 1.4rem; }
  .ue-logos-sep  { display: none; }
  .ue-logo       { max-height: 34px; }
  .ue-logos-lg .ue-logo { max-height: 38px; }
}

/* Su schermo stretto i quattro loghi vanno a due a due: la fascia resta
   equilibrata invece di spezzarsi 3 + 1. */
@media (max-width: 560px) {
  .ue-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 1.2rem 1rem;
  }
  /* i quattro loghi rimpiccioliscono INSIEME: cosi' nessuno arriva a
     toccare il bordo della cella e la fascia resta nelle proporzioni
     ufficiali anche a 360 px */
  .ue-logo, .ue-logos-lg .ue-logo { max-height: clamp(24px, 7.5vw, 32px); }
}

/* --- Banda in fondo a ogni pagina --- */
.ue-band {
  position: relative;
  max-width: 1000px;
  margin: clamp(2.4rem, 5vw, 3.8rem) auto clamp(1.8rem, 4vw, 2.8rem);
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  text-align: center;
}

/* filetto dorato centrato: separa la banda dal footer senza ripetere
   la riga piena che chiude gia' la griglia dei link */
.ue-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(235, 190, 66, .45), transparent);
}

.ue-band-body {
  max-width: 720px;
  margin: clamp(1.5rem, 3.4vw, 2.2rem) auto 0;
}

.ue-band .sec-lbl {
  justify-content: center;
  margin-bottom: .85rem;
}

.ue-band-ttl {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--txt-h);
  margin-bottom: .9rem;
}

.ue-band-ttl em {
  font-style: italic;
  color: var(--gold2);
}

.ue-band-txt {
  font-size: .78rem;
  line-height: 2;
  font-weight: 300;
  color: var(--txt-muted);
}

.ue-band-txt strong {
  font-weight: 400;
  color: rgba(255, 255, 255, .74);
}

/* Importo del sostegno nella banda: nascosto per scelta editoriale
   ('importo_in_footer' => false in includes/ue-project.php). La cifra sta
   sulla scheda dell'operazione; queste regole restano pronte se un giorno
   si decide di mostrarla anche qui. */
.ue-band-amount {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem .8rem;
  margin-top: 1.4rem;
  padding: .6rem 1.1rem;
  background: rgba(235, 190, 66, .07);
  border-left: 2px solid var(--gold2);
  border-radius: 2px;
}

.ue-band-amount-lbl {
  font-size: .53rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.ue-band-amount-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--gold3);
}

.ue-band-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;            /* bersaglio touch, anche su desktop */
  margin-top: 1.1rem;
  font-size: .58rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold2);
  transition: color .3s, gap .3s;
}

/* la sottolineatura sta sullo span, non sul link: resta attaccata al testo
   anche quando il link e' alto 44px per il touch */
.ue-band-cta span {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(235, 190, 66, .28);
  transition: border-color .3s;
}

.ue-band-cta:hover {
  color: var(--gold3);
  gap: .8rem;
}

.ue-band-cta:hover span { border-bottom-color: var(--gold3); }

.ue-band-cta svg { flex: 0 0 auto; }

.ue-band-cta:focus-visible {
  outline: 1px solid var(--gold2);
  outline-offset: 5px;
}



@media (max-width: 700px) {
  /* l'informativa obbligatoria non deve diventare illeggibile sul telefono */
  .ue-band-txt { font-size: .8rem; }
}
