/* =========================================================
   Grande Albergo Miramare - stile del sito
   Base: mockup NUOVO_PROGETTO/index(14).html
   ========================================================= */
:root{
  --gold:#bfa46a;
  --gold-dark:#a68c55;
  --cream:#f6f2eb;
  --grey:#f1f1f1;
  --ink:#2b2b2b;
  --navy:#1f3452;
  --sea:#3d6aa8;
  --font-title:'Bodoni Moda', Georgia, serif;
  --font-body:'Montserrat', system-ui, sans-serif;
}
body{font-family:var(--font-body);font-weight:300;color:var(--ink);font-size:.9rem;line-height:1.75;background:#fff;}
h1,h2,h3,h4,.font-title{font-family:var(--font-title);font-weight:400;}
a{color:inherit;text-decoration:none;}
section{overflow:hidden;}
.text-gold{color:var(--gold)!important;}

/* ---------- Bottoni ---------- */
.btn-outline-ink{border:1px solid var(--ink);color:var(--ink);border-radius:0;padding:.55rem 2.6rem;font-size:.8rem;font-weight:400;}
.btn-outline-ink:hover{background:var(--ink);color:#fff;}
.btn-outline-light-sq{border:1px solid #fff;color:#fff;border-radius:0;padding:.55rem 2.4rem;font-family:var(--font-title);font-size:.85rem;}
.btn-outline-light-sq:hover{background:#fff;color:var(--ink);}
.btn-gold{background:var(--gold);color:#fff;border-radius:0;font-family:var(--font-title);padding:.55rem 2.8rem;border:0;}
.btn-gold:hover,.btn-gold:focus{background:var(--gold-dark);color:#fff;}

/* ---------- Header fisso ---------- */
.site-header{position:fixed;inset:0 0 auto 0;z-index:1030;transition:background .35s, box-shadow .35s;}
.topbar{background:rgba(31,52,82,.55);color:#fff;font-size:.78rem;max-height:60px;overflow:hidden;transition:max-height .35s;}
.topbar a:hover{color:var(--gold);}
.topbar .bi{color:var(--gold);}
.topbar .btn-book{background:var(--gold);color:#fff;text-transform:uppercase;font-size:.75rem;padding:.45rem 1.2rem;letter-spacing:.03em;}
.topbar .btn-book:hover{background:var(--gold-dark);color:#fff;}
.main-nav{padding:1rem 0;transition:padding .35s;}
.logo{color:#fff;font-family:var(--font-title);font-size:1.7rem;line-height:1;letter-spacing:.06em;text-align:center;display:inline-block;}
.logo small{display:block;font-family:var(--font-body);font-size:.5rem;letter-spacing:.35em;margin-top:3px;}
.logo img{height:58px;width:auto;display:block;transition:height .35s;}
.logo .logo-dark{display:none;}
.lang a{color:#fff;font-size:.8rem;font-weight:500;opacity:.55;transition:opacity .2s;}
.lang a:hover,.lang a.active{opacity:1;}
.lang .sep{color:rgba(255,255,255,.5);}
.burger{background:none;border:0;color:#fff;font-size:2rem;line-height:1;padding:0;}
.site-header.scrolled,.site-header.solid{background:rgba(255,255,255,.97);box-shadow:0 2px 14px rgba(0,0,0,.08);}
.site-header.scrolled .topbar{max-height:0;}
.site-header.scrolled .main-nav{padding:.55rem 0;}
.site-header.scrolled .logo img{height:44px;}
.site-header.scrolled .logo,.site-header.solid .logo,
.site-header.scrolled .lang a,.site-header.solid .lang a,
.site-header.scrolled .burger,.site-header.solid .burger{color:var(--ink);}
.site-header.scrolled .lang .sep,.site-header.solid .lang .sep{color:#aaa;}
.site-header.scrolled .logo .logo-light,.site-header.solid .logo .logo-light{display:none;}
.site-header.scrolled .logo .logo-dark,.site-header.solid .logo .logo-dark{display:block;}

/* ---------- Menu offcanvas ---------- */
.offcanvas.menu{background:var(--navy);color:#fff;width:380px;}
.menu .nav-link{color:#fff;font-family:var(--font-title);font-size:1.6rem;padding:.35rem 0;}
.menu .nav-link:hover,.menu .nav-link.active{color:var(--gold);}
.menu .btn-close{filter:invert(1);}
.menu .logo img{height:50px;}

/* ---------- Hero slider (home) ---------- */
#hero .carousel-item{height:100vh;min-height:560px;background-size:cover;background-position:center;}
#hero .carousel-item::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.25),rgba(0,0,0,0) 60%);}
#hero .hero-caption{position:absolute;z-index:2;top:50%;transform:translateY(-35%);color:#fff;max-width:640px;}
#hero .hero-caption h1,#hero .hero-caption h2{font-size:clamp(2rem,4vw,3rem);line-height:1.2;}
#hero{cursor:grab;user-select:none;-webkit-user-select:none;}
#hero.is-dragging{cursor:grabbing;}
#hero a, #hero button{cursor:pointer;}
#hero .hero-caption > *{opacity:0;transform:translateY(40px);}
#hero .carousel-item.is-animated .hero-caption > *{animation:heroUp .9s cubic-bezier(.22,.61,.36,1) forwards;}
#hero .carousel-item.is-animated .hero-caption > :nth-child(1){animation-delay:.25s;}
#hero .carousel-item.is-animated .hero-caption > :nth-child(2){animation-delay:.5s;}
#hero .carousel-item.is-animated .hero-caption > :nth-child(3){animation-delay:.75s;}
@keyframes heroUp{to{opacity:1;transform:translateY(0);}}
@media (prefers-reduced-motion:reduce){
  #hero .hero-caption > *{opacity:1;transform:none;animation:none !important;}
}
#hero .carousel-indicators [data-bs-target]{width:10px;height:10px;border-radius:50%;border:0;margin:0 5px;opacity:1;background:#fff;}
#hero .carousel-indicators .active{background:var(--gold);}

/* ---------- Hero pagine interne ---------- */
.page-hero{position:relative;height:62vh;min-height:420px;background-size:cover;background-position:center;color:#fff;display:flex;align-items:flex-end;}
.page-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.35),rgba(0,0,0,.15) 40%,rgba(0,0,0,.45));}
.page-hero .container{position:relative;padding-bottom:3.5rem;}
.page-hero h1{font-size:clamp(2.2rem,5vw,3.4rem);line-height:1.15;margin:0;}
.page-hero p{margin:.4rem 0 0;font-size:1rem;}
.page-hero.short{height:42vh;min-height:320px;}
.breadcrumb-bar{border-bottom:1px solid #eee;font-size:.78rem;}
.breadcrumb-bar .breadcrumb{margin:0;padding:.8rem 0;}
.breadcrumb-bar .breadcrumb-item+.breadcrumb-item::before{color:var(--gold);}
.breadcrumb-bar a:hover{color:var(--gold);}
.page-intro{font-size:1rem;}
.page-intro h2{font-size:2.1rem;}

/* ---------- Galleria con anteprima laterale ---------- */
.gallery{position:relative;}
.gallery-viewport{overflow:hidden;}
.gallery-track{display:flex;gap:1.4%;transition:transform .7s ease;will-change:transform;}
.gallery-track img{flex:0 0 73%;height:clamp(260px,48vw,700px);object-fit:cover;transition:opacity .5s;opacity:.85;user-select:none;}
.gallery-track img.is-active{opacity:1;}
.gallery-btn{position:absolute;top:50%;transform:translateY(-50%);background:none;border:0;color:#fff;font-size:2.4rem;z-index:2;text-shadow:0 0 8px rgba(0,0,0,.4);}
.gallery-btn.prev{left:3%;}
.gallery-btn.next{right:3%;}
.gallery-dots button{width:8px;height:8px;border-radius:50%;border:0;background:#bbb;margin:0 8px;padding:0;}
.gallery-dots button.active{background:var(--gold);}

/* ---------- Cucina / elenchi ---------- */
.feature-list li{position:relative;padding-left:2.2rem;margin-bottom:1.1rem;}
.feature-list li::before{content:"";position:absolute;left:0;top:.55rem;width:12px;height:12px;border-radius:50%;background:var(--gold);}
.feature-list h3,.feature-list h4{font-size:1.05rem;margin-bottom:.15rem;}

/* ---------- Fasce con immagine di sfondo ---------- */
.band{position:relative;background-size:cover;background-position:center;background-attachment:fixed;color:#fff;}
.band::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.42);}
.band > *{position:relative;}
@media (hover:none){.band{background-attachment:scroll;}}
.play-btn{width:74px;height:74px;border:2px solid #fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:2rem;color:#fff;background:transparent;transition:background .3s;}
.play-btn:hover{background:rgba(255,255,255,.18);}

/* ---------- Blocchi alternati ---------- */
.split{background:var(--cream);}
.split .split-img{min-height:380px;background-size:cover;background-position:center;}
.split h2{font-size:2.2rem;}
.split.white{background:#fff;}

/* ---------- Prenotazione ---------- */
.booking{background:var(--grey);}
.booking .form-control,.booking .form-select,
.form-mm .form-control,.form-mm .form-select{border-radius:0;font-size:.85rem;padding:.6rem .9rem;}
.form-mm label{font-size:.8rem;font-weight:500;margin-bottom:.25rem;}
.form-mm .form-check-input:checked{background-color:var(--gold);border-color:var(--gold);}
.form-mm .form-control:focus,.form-mm .form-select:focus,
.booking .form-control:focus,.booking .form-select:focus{border-color:var(--gold);box-shadow:0 0 0 .2rem rgba(191,164,106,.2);}
.form-card{background:#fff;padding:2rem;box-shadow:0 6px 30px rgba(0,0,0,.06);}
@media (min-width:768px){.form-card{padding:3rem;}}

/* ---------- News ---------- */
.news-card{display:flex;flex-direction:column;height:100%;background:#fff;}
.news-card .news-img{display:block;overflow:hidden;aspect-ratio:4/3;}
.news-card .news-img img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;}
.news-card:hover .news-img img{transform:scale(1.05);}
.news-card .news-body{padding:1.3rem 0 0;flex:1;display:flex;flex-direction:column;}
.news-card .news-date{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);}
.news-card h3{font-size:1.35rem;line-height:1.3;margin:.35rem 0 .6rem;}
.news-card h3 a:hover{color:var(--gold);}
.news-card p{flex:1;}
.news-card .news-more{font-size:.78rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;border-bottom:1px solid var(--gold);align-self:flex-start;padding-bottom:2px;}
.news-card .news-more:hover{color:var(--gold);}
.home-news{background:#fff;}
.article-body{font-size:.95rem;}
.article-body img{max-width:100%;height:auto;}
.article-body h2,.article-body h3{margin-top:1.6rem;}
.article-meta{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);}
.article-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;}
.share-links a{display:inline-flex;width:36px;height:36px;border:1px solid var(--gold);border-radius:50%;align-items:center;justify-content:center;color:var(--gold);margin-right:.4rem;}
.share-links a:hover{background:var(--gold);color:#fff;}

/* ---------- Contatti ---------- */
.contact-list li{display:flex;gap:.9rem;margin-bottom:1.1rem;font-size:.95rem;}
.contact-list .bi{color:var(--gold);font-size:1.2rem;line-height:1.5;}
.contact-list small{display:block;font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:#888;}
.map-wrap iframe{width:100%;height:100%;min-height:420px;border:0;display:block;filter:grayscale(.2);}

/* ---------- Testi legali ---------- */
.legal h2,.legal h4{font-size:1.25rem;margin-top:2rem;}
.legal{font-size:.9rem;}

/* ---------- Testimonianze ---------- */
#reviews .carousel-control-prev,#reviews .carousel-control-next{width:8%;opacity:1;font-size:2rem;}

/* ---------- Footer ---------- */
footer .logo{color:var(--ink);text-align:left;}
footer .logo img{height:70px;}
footer h5{font-family:var(--font-title);color:var(--gold);font-size:1rem;}
footer .bi{color:var(--gold);}
footer a:hover{color:var(--gold);}
footer hr{border-color:var(--gold);opacity:1;}
.copyright{background:var(--grey);font-size:.78rem;}
.copyright a{text-decoration:underline;}

/* ---------- Torna su ---------- */
.to-top{position:fixed;right:24px;bottom:24px;width:50px;height:50px;border-radius:50%;background:#fff;border:2px solid var(--gold);color:var(--gold);font-size:1.3rem;z-index:1020;opacity:0;pointer-events:none;transition:opacity .3s;}
.to-top.show{opacity:1;pointer-events:auto;}

@media (max-width:767.98px){
  .gallery-track img{flex-basis:86%;}
  .split .split-img{min-height:260px;}
  .offcanvas.menu{width:100%;}
  .logo img{height:46px;}
  .page-hero{height:50vh;min-height:340px;}
  #hero .hero-caption{left:calc(var(--bs-gutter-x) * .5);right:calc(var(--bs-gutter-x) * .5);max-width:none;}
  .topbar .container{gap:.9rem!important;}
}
