/* =========================================================
   Gold Apartment Sharm — brand stylesheet (mobile-first)
   Riutilizzabile su tutto il portfolio: cambia solo le
   variabili --brand-* per un nuovo brand/immobile.
   ========================================================= */
:root{
  --gold:#c9a24b;
  --gold-dark:#a8852f;
  --sand:#f6f1e7;
  --ink:#1f2421;
  --green:#1f4d3f;       /* richiama i divani in velluto */
  --green-soft:#2c6a55;
  --grey:#6b6f6c;
  --white:#ffffff;
  --wa:#25d366;          /* WhatsApp */
  --shadow:0 8px 30px rgba(31,36,33,.10);
  --radius:16px;
  --maxw:1140px;
  --font:'Poppins',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --serif:'Cormorant Garamond',Georgia,'Times New Roman',serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);color:var(--ink);background:var(--white);line-height:1.6;font-size:16px;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.15;letter-spacing:.2px}
h1{font-size:2.1rem}
h2{font-size:1.7rem}
h3{font-size:1.3rem}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
section{padding:54px 0}
.muted{color:var(--grey)}
.center{text-align:center}
.eyebrow{font-size:.78rem;letter-spacing:2.5px;text-transform:uppercase;color:var(--gold-dark);font-weight:600;font-family:var(--font)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.5em;font-weight:600;padding:14px 24px;border-radius:50px;font-size:.98rem;transition:transform .15s ease,box-shadow .15s ease;cursor:pointer;border:none;line-height:1}
.btn:hover{transform:translateY(-2px)}
.btn-wa{background:var(--wa);color:#fff;box-shadow:0 6px 18px rgba(37,211,102,.35)}
.btn-gold{background:var(--gold);color:#fff;box-shadow:0 6px 18px rgba(201,162,75,.35)}
.btn-ghost{background:transparent;border:1.5px solid var(--gold);color:var(--gold-dark)}
.btn-lg{padding:17px 32px;font-size:1.05rem}
.wa-ico{width:1.15em;height:1.15em;fill:currentColor;flex:0 0 auto}

/* ---------- Header ---------- */
header.site{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid #efe7d6}
.nav{display:flex;align-items:center;justify-content:space-between;height:64px}
.logo{font-family:var(--serif);font-size:1.35rem;font-weight:700;color:var(--green);display:flex;align-items:center;gap:.4em}
.logo b{color:var(--gold-dark)}
.nav-right{display:flex;align-items:center;gap:12px}
.langs{display:flex;gap:2px;background:var(--sand);border-radius:50px;padding:3px}
.langs button{border:none;background:transparent;font-family:var(--font);font-weight:600;font-size:.78rem;padding:5px 10px;border-radius:50px;cursor:pointer;color:var(--grey)}
.langs button.active{background:var(--gold);color:#fff}
.nav .btn-wa{padding:9px 16px;font-size:.85rem}
.nav-links{display:none}

/* ---------- Hero ---------- */
.hero{position:relative;min-height:78vh;display:flex;align-items:flex-end;color:#fff;background-size:cover;background-position:center}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(15,20,17,.82) 0%,rgba(15,20,17,.25) 55%,rgba(15,20,17,.35) 100%)}
.hero .inner{position:relative;z-index:2;padding-bottom:42px;width:100%}
.hero h1{color:#fff;font-size:2.5rem;max-width:14ch;text-shadow:0 2px 20px rgba(0,0,0,.4)}
.hero p.lead{font-size:1.1rem;max-width:42ch;margin:14px 0 22px;color:#f4efe4}
.hero .cta-row{display:flex;flex-wrap:wrap;gap:12px}
.badge-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.badge{background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3);padding:6px 13px;border-radius:50px;font-size:.8rem;font-weight:500;backdrop-filter:blur(4px)}

/* ---------- Units cards ---------- */
.grid{display:grid;gap:24px}
.unit-card{background:var(--white);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid #f0e9da;display:flex;flex-direction:column}
.unit-card img{height:230px;object-fit:cover;width:100%}
.unit-card .body{padding:22px;display:flex;flex-direction:column;gap:12px;flex:1}
.unit-card .tag{font-size:.75rem;font-weight:600;color:var(--gold-dark);letter-spacing:1px;text-transform:uppercase}
.unit-card ul{list-style:none;display:flex;flex-wrap:wrap;gap:8px}
.unit-card ul li{font-size:.82rem;background:var(--sand);padding:5px 11px;border-radius:50px;color:var(--ink)}
.unit-card .body .btn{margin-top:auto;justify-content:center}

/* ---------- Feature / why-direct ---------- */
.feature-grid{display:grid;gap:20px}
.feature{background:var(--sand);border-radius:var(--radius);padding:26px;text-align:center}
.feature .ic{font-size:1.9rem;margin-bottom:8px}
.feature h3{font-size:1.12rem;margin-bottom:4px}
.feature p{font-size:.9rem;color:var(--grey)}

.direct{background:var(--green);color:#fff;border-radius:var(--radius);padding:34px 26px;text-align:center}
.direct h2{color:#fff}
.direct .save{font-family:var(--serif);font-size:3rem;color:var(--gold);font-weight:700;line-height:1}
.direct p{max-width:46ch;margin:10px auto 20px;color:#e7efe9}

/* ---------- Amenities strip ---------- */
.amen{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.amen .a{display:flex;gap:10px;align-items:center;font-size:.92rem}
.amen .a span.d{width:8px;height:8px;border-radius:50%;background:var(--gold);flex:0 0 auto}

/* ---------- Gallery ---------- */
.gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.gallery img{border-radius:12px;height:160px;width:100%;object-fit:cover}
.gallery img.tall{grid-row:span 2;height:330px}

/* ---------- Experiences ---------- */
.exp-card{background:#fff;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);border:1px solid #f0e9da}
.exp-card img{height:200px;width:100%;object-fit:cover}
.exp-card .body{padding:20px;display:flex;flex-direction:column;gap:10px}
.exp-card .price-tag{font-size:.8rem;font-weight:700;color:var(--green-soft);text-transform:uppercase;letter-spacing:1px}
.exp-card .price-tag.free{color:var(--gold-dark)}

/* ---------- Booking engine placeholder ---------- */
.engine-ph{border:2px dashed var(--gold);border-radius:var(--radius);padding:30px;text-align:center;background:var(--sand);color:var(--grey)}

/* ---------- Sticky mobile WhatsApp ---------- */
.wa-float{position:fixed;right:16px;bottom:16px;z-index:60;background:var(--wa);color:#fff;width:58px;height:58px;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(37,211,102,.45)}
.wa-float svg{width:30px;height:30px;fill:#fff}

/* ---------- Footer ---------- */
footer.site{background:var(--ink);color:#cdd2ce;padding:40px 0 90px}
footer.site .cols{display:grid;gap:24px}
footer .logo{color:#fff}
footer a:hover{color:var(--gold)}
footer .small{font-size:.82rem;color:#8b918c;margin-top:18px}

/* ---------- Sections helpers ---------- */
.sec-head{max-width:640px;margin-bottom:30px}
.alt{background:var(--sand)}

/* =========================================================
   Tablet / desktop
   ========================================================= */
@media(min-width:720px){
  h1{font-size:2.6rem}
  h2{font-size:2.1rem}
  section{padding:72px 0}
  .hero h1{font-size:3.4rem}
  .nav-links{display:flex;gap:24px;font-weight:500;font-size:.92rem}
  .nav-links a:hover{color:var(--gold-dark)}
  .grid.cols-2{grid-template-columns:repeat(2,1fr)}
  .grid.cols-3{grid-template-columns:repeat(3,1fr)}
  .feature-grid{grid-template-columns:repeat(3,1fr)}
  .amen{grid-template-columns:repeat(4,1fr)}
  .gallery{grid-template-columns:repeat(4,1fr)}
  .gallery img{height:200px}
  .gallery img.tall{height:410px}
  .footer .cols{grid-template-columns:2fr 1fr 1fr}
  .wa-float{display:none}
  .direct .save{font-size:3.6rem}
}
@media(min-width:720px){.cols.foot{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}}

/* Placeholder media per sezioni esperienze (in attesa di foto reali) */
.exp-ph{height:200px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  background:linear-gradient(135deg,var(--green) 0%,var(--green-soft) 100%);color:#e9c97a}
.exp-ph .ic{font-size:3.2rem;line-height:1}
.exp-ph .lb{font-size:.72rem;letter-spacing:2px;text-transform:uppercase;color:rgba(255,255,255,.6)}

/* ---------- Announcement bar (Booking style) ---------- */
.annc{position:sticky;top:0;z-index:61;display:flex;align-items:center;justify-content:center;gap:8px;
  height:36px;line-height:1;background:#003580;color:#fff;font-size:.82rem;font-weight:600;
  text-align:center;white-space:nowrap;overflow:hidden;padding:0 12px}
.annc b{color:#febb02}
.annc:hover{background:#00224f}
header.site{top:36px}            /* header resta sotto il banner */
@media(max-width:520px){ .annc{font-size:.74rem} }

/* ---------- Hero carousel ---------- */
.hero-slides{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.2s ease}
.hero-slide.active{opacity:1}
.hero::after{z-index:1}           /* overlay sopra le slide, sotto al testo */

/* ---------- Home: due blocchi unità ---------- */
.unit-photo{border-radius:var(--radius);box-shadow:var(--shadow);height:300px;width:100%;object-fit:cover}
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 18px}
.chips li{font-size:.82rem;background:var(--sand);padding:6px 12px;border-radius:50px;color:var(--ink)}
.unit-cta{display:flex;flex-wrap:wrap;gap:10px}
@media(min-width:720px){ .unit-photo{height:360px} }

/* ---------- Mappa Naama Bay ---------- */
.map{width:100%;height:340px;border:0;border-radius:var(--radius);box-shadow:var(--shadow);display:block}

/* =========================================================
   v2 — premium upgrade (reviews, availability form, price,
   excursion strip, scroll-reveal, anti-CLS)
   ========================================================= */

/* anti-layout-shift: reserve aspect ratio for media */
.unit-photo,.exp-card img,.gallery img,.todo-card img{aspect-ratio:16/10}
.gallery img.tall{aspect-ratio:3/4}
.hero{aspect-ratio:auto}

/* scroll reveal */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
.reveal.vis{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* hero CTA row spacing */
.hero .cta-row .btn{box-shadow:0 10px 30px rgba(0,0,0,.25)}

/* trust strip under hero */
.trust{background:var(--white);border-bottom:1px solid #efe7d6}
.trust .row{display:flex;flex-wrap:wrap;gap:10px 26px;justify-content:center;padding:16px 0;font-size:.86rem;color:var(--ink)}
.trust .row b{color:var(--gold-dark)}
.trust .i{display:inline-flex;align-items:center;gap:7px}

/* price band on unit sections */
.price-pill{display:inline-flex;align-items:baseline;gap:6px;background:var(--sand);border:1px solid #ece2cd;color:var(--ink);padding:7px 14px;border-radius:50px;font-size:.82rem;font-weight:600;width:fit-content}
.price-pill b{font-family:var(--serif);font-size:1.15rem;color:var(--gold-dark)}
.price-pill .lbl{color:var(--grey);font-weight:500}

/* "cosa fare" strip */
.todo .todo-grid{display:grid;grid-template-columns:1fr;gap:14px}
.todo-card{position:relative;border-radius:var(--radius);overflow:hidden;min-height:180px;display:flex;align-items:flex-end;box-shadow:var(--shadow)}
.todo-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.todo-card:hover img{transform:scale(1.06)}
.todo-card::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(15,20,17,.78),rgba(15,20,17,.05))}
.todo-card span{position:relative;z-index:2;color:#fff;font-family:var(--serif);font-size:1.25rem;font-weight:600;padding:16px 18px;text-shadow:0 2px 12px rgba(0,0,0,.5)}

/* reviews */
.reviews{background:var(--sand)}
.review-grid{display:grid;grid-template-columns:1fr;gap:18px}
.review-card{background:#fff;border-radius:var(--radius);padding:24px;box-shadow:var(--shadow);border:1px solid #f0e9da;display:flex;flex-direction:column;gap:12px}
.review-card .stars{color:var(--gold);letter-spacing:2px;font-size:1rem}
.review-card p{font-style:italic;color:var(--ink);font-size:.98rem;line-height:1.55}
.review-card .who{display:flex;align-items:center;gap:10px;margin-top:auto}
.review-card .who .fl{font-size:1.5rem;line-height:1}
.review-card .who .nm{font-weight:600;font-size:.9rem}
.review-card .who .sub{font-size:.78rem;color:var(--grey)}

/* availability form */
.availbar{background:var(--green);color:#fff;border-radius:var(--radius);padding:26px 22px;box-shadow:var(--shadow)}
.availbar h3{color:#fff;font-size:1.4rem;margin-bottom:4px}
.availbar p.sub{color:#dce9e1;font-size:.9rem;margin-bottom:16px}
.availform{display:grid;grid-template-columns:1fr;gap:12px}
.availform .field{display:flex;flex-direction:column;gap:5px}
.availform label{font-size:.74rem;letter-spacing:.5px;text-transform:uppercase;color:#cfe1d8;font-weight:600}
.availform input,.availform select{border:none;border-radius:10px;padding:12px 13px;font-family:var(--font);font-size:.95rem;background:#fff;color:var(--ink);width:100%}
.availform .btn{justify-content:center;margin-top:4px}
.availform .full{grid-column:1/-1}

@media(min-width:720px){
  .review-grid{grid-template-columns:repeat(3,1fr)}
  .todo .todo-grid{grid-template-columns:repeat(3,1fr)}
  .availform{grid-template-columns:1fr 1fr 1fr;align-items:end}
  .availform .full{grid-column:auto}
  .availform .btn{grid-column:1/-1}
  .availbar{padding:32px 30px}
}

/* lightbox */
.gallery img{cursor:zoom-in}
.lb{position:fixed;inset:0;background:rgba(15,20,17,.93);display:none;align-items:center;justify-content:center;z-index:200;padding:20px;cursor:zoom-out}
.lb.open{display:flex}
.lb img{max-width:96vw;max-height:92vh;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.55)}
.lb .x{position:absolute;top:14px;right:22px;color:#fff;font-size:2.2rem;line-height:1;cursor:pointer}

/* modi di soggiorno (3 photo cards) */
.modi-grid{display:grid;grid-template-columns:1fr;gap:18px}
.modi-card{position:relative;border-radius:24px;overflow:hidden;min-height:420px;box-shadow:var(--shadow);display:block}
.modi-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.modi-card:hover img{transform:scale(1.05)}
.modi-card .ov{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.9),rgba(255,255,255,.5) 42%,rgba(255,255,255,.04) 72%)}
.modi-card .c{position:relative;z-index:2;padding:28px 26px}
.modi-card h3{font-family:var(--serif);font-size:1.9rem;color:var(--ink);letter-spacing:-.02em;margin-bottom:8px}
.modi-card p{color:rgba(31,36,33,.78);font-size:.95rem;line-height:1.55;max-width:24rem;margin-bottom:18px}
.modi-cta{display:inline-flex;align-items:center;gap:10px;color:var(--ink);font-weight:600;font-size:.92rem}
.modi-cta .circ{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.88);display:flex;align-items:center;justify-content:center;border:1px solid rgba(31,36,33,.08);transition:background .2s}
.modi-card:hover .modi-cta .circ{background:#fff}
.modi-cta svg{width:16px;height:16px;fill:none;stroke:var(--ink);stroke-width:2}
@media(min-width:860px){.modi-grid{grid-template-columns:repeat(3,1fr)}.modi-card{min-height:470px}}

/* =========================================================
   v3 — graphic polish (depth, gold accents, video bands)
   ========================================================= */
:root{--shadow-lg:0 24px 50px rgba(31,36,33,.16);--shadow-md:0 14px 34px rgba(31,36,33,.12)}
.unit-card,.exp-card,.review-card{box-shadow:var(--shadow-md);transition:transform .25s ease,box-shadow .25s ease}
.unit-card:hover,.exp-card:hover,.review-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg)}
.feature{background:#fff;border:1px solid #efe7d6;box-shadow:var(--shadow-md);transition:transform .25s ease,box-shadow .25s ease}
.feature:hover{transform:translateY(-5px);box-shadow:var(--shadow-lg)}
.feature .ic{color:var(--gold-dark)}
.eyebrow{display:inline-block;padding-bottom:7px;border-bottom:2px solid var(--gold)}
.sec-head.center .eyebrow{border:none;padding-bottom:0}
.sec-head.center .eyebrow::after{content:"";display:block;width:46px;height:2px;background:var(--gold);margin:9px auto 0}
.btn-gold{box-shadow:0 10px 26px rgba(201,162,75,.38)}
.btn-wa{box-shadow:0 10px 26px rgba(37,211,102,.36)}
.amen .a span.d{width:20px;height:20px;border-radius:50%;background:rgba(201,162,75,.16);display:inline-flex;align-items:center;justify-content:center}
.amen .a span.d::after{content:"\2713";color:var(--gold-dark);font-size:12px;font-weight:700;line-height:1}
header.site{transition:box-shadow .25s ease,background .25s ease}
header.site.scrolled{box-shadow:0 6px 24px rgba(31,36,33,.10);background:rgba(255,255,255,.97)}
.logo::before{content:"G";display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--gold);color:#fff;font-family:var(--serif);font-weight:700;font-size:1rem;flex:0 0 auto}
/* hero video layer */
.hero .hero-vid{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
/* full-width media band (reef / video) */
.media-band{position:relative;min-height:440px;display:flex;align-items:center;justify-content:center;text-align:center;overflow:hidden}
.media-band video,.media-band img.bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.media-band::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,20,17,.42),rgba(15,20,17,.58))}
.media-band .inner{position:relative;z-index:2;color:#fff;padding:46px 22px;max-width:700px}
.media-band .eyebrow{color:#e9c97a;border-color:#c9a24b}
.media-band h2{color:#fff;font-size:2.5rem;text-shadow:0 2px 22px rgba(0,0,0,.45)}
.media-band p{color:#f2efe6;margin:12px auto 22px;max-width:48ch}

/* =========================================================
   v4 — animated sections (unit carousels, video boxes, services marquee)
   ========================================================= */
.mini-carousel{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);aspect-ratio:16/11}
.mini-carousel img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1s ease}
.mini-carousel img.on{opacity:1}
.why-grid{display:grid;grid-template-columns:1fr;gap:18px}
.why-vid{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-md);min-height:240px}
.why-vid video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.why-vid .cap{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:flex-end;min-height:240px;padding:22px;background:linear-gradient(180deg,rgba(15,20,17,.04) 38%,rgba(15,20,17,.82));color:#fff}
.why-vid h3{color:#fff;font-size:1.45rem;margin-bottom:4px}
.why-vid p{color:#f0ece2;font-size:.92rem}
@media(min-width:760px){.why-grid{grid-template-columns:repeat(3,1fr)}}
.srv-wrap{overflow:hidden}
.srv-track{display:flex;gap:14px;width:max-content;animation:srvscroll 32s linear infinite}
.srv-wrap:hover .srv-track{animation-play-state:paused}
@keyframes srvscroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.srv-card{width:260px;border-radius:14px;overflow:hidden;position:relative;box-shadow:var(--shadow-md)}
.srv-card img{width:260px;height:170px;object-fit:cover;display:block}
.srv-card span{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 12px;background:linear-gradient(180deg,transparent,rgba(15,20,17,.82));color:#fff;font-weight:600;font-size:.95rem}
@keyframes wapulse{0%,100%{transform:translateY(0);box-shadow:0 8px 22px rgba(37,211,102,.36)}50%{transform:translateY(-3px);box-shadow:0 14px 30px rgba(37,211,102,.5)}}
.btn-pulse{animation:wapulse 2.2s ease-in-out infinite}

/* book steps carousel (auto-advance) */
.book-carousel{position:relative;max-width:600px;margin:0 auto;min-height:180px}
.book-slide{position:absolute;inset:0;opacity:0;transition:opacity .6s ease;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;background:#fff;border:1px solid #efe7d6;border-radius:16px;padding:32px 28px;box-shadow:var(--shadow-md)}
.book-slide.on{opacity:1}
.book-slide h3{font-family:var(--serif);font-size:1.5rem;color:var(--gold-dark);margin-bottom:8px}
.book-slide p{color:var(--grey);max-width:42ch;font-size:.96rem}
.book-dots{display:flex;gap:9px;justify-content:center;margin-top:16px}
.book-dots span{width:9px;height:9px;border-radius:50%;background:#d9cdb4;transition:background .3s,transform .3s}
.book-dots span.on{background:var(--gold);transform:scale(1.25)}

/* animated "book direct" green block */
.direct{position:relative;overflow:hidden}
.direct .direct-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;opacity:1}
.direct::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(18,42,34,.52),rgba(18,42,34,.72));z-index:1}
.direct>*{position:relative;z-index:2}
.direct .save{animation:saveGlow 2.6s ease-in-out infinite}
@keyframes saveGlow{0%,100%{text-shadow:0 0 0 rgba(233,201,122,0);transform:scale(1)}50%{text-shadow:0 0 28px rgba(233,201,122,.6);transform:scale(1.06)}}
