@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900,401&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root{
  --red:#db2222;
  --green:#7c9764;          /* booking band */
  --green-cell:#93ab7d;     /* selectable date */
  --green-field:rgba(255,255,255,.14);
  --ink:#1a1a1a;
  --white:#ffffff;
  --grey:#6f6a62;
  --line:#e2ded6;

  --f-sat:'Satoshi',sans-serif;
  --f-inter:'Inter',sans-serif;

  --maxw:1280px;
  --pad:80px;
  --header-h:100px;
  --title:#1a1a1a;
  --edge:max(var(--pad), calc((100vw - var(--maxw))/2 + var(--pad)));
}
@media (max-width:1360px){ :root{ --pad:44px; } }
@media (max-width:640px){ :root{ --pad:22px; } }

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:100px; overflow-x:hidden; }
body{ margin:0; background:var(--white); color:var(--ink); font-family:var(--f-sat); font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
button{ font-family:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
a{ -webkit-tap-highlight-color:transparent; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding-left:var(--pad); padding-right:var(--pad); }
.material-symbols-outlined{ font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24; line-height:1; }
.section{ padding:96px 0; }
@media (max-width:760px){ .section{ padding:64px 0; } }
::selection{ background:var(--red); color:#fff; }

/* Native scrollbar hidden — a custom overlay bar floats over the page on hover */
html{ scrollbar-width:none; }
html::-webkit-scrollbar{ width:0; height:0; display:none; }
.vscroll{ position:fixed; top:6px; right:3px; bottom:6px; width:14px; z-index:150; display:flex; flex-direction:column; align-items:center; gap:5px;
  opacity:0; transition:opacity .25s ease; pointer-events:none; }
.vscroll.show{ opacity:1; pointer-events:auto; }
.vs-arrow{ width:14px; height:12px; border:none; background:none; padding:0; color:var(--red); display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.vs-arrow svg{ width:10px; height:8px; display:block; }
.vs-track{ position:relative; flex:1 1 auto; width:5px; }
.vs-thumb{ position:absolute; left:0; top:0; width:5px; height:40px; background:var(--red); cursor:pointer; }

/* Type */
.h-display{ font-family:var(--f-sat); font-weight:700; font-size:clamp(2.6rem,6vw,4.8rem); line-height:1.06; letter-spacing:-0.01em; }
.h-italic{ font-family:var(--f-sat); font-style:italic; font-weight:400; font-size:clamp(1.5rem,3.4vw,2.25rem); }
.sec-title{ font-family:var(--f-sat); font-weight:400; font-size:clamp(1.9rem,4vw,2.75rem); line-height:1.12; color:var(--title); }
.body-lg{ font-family:var(--f-sat); font-weight:400; font-size:clamp(1.1rem,1.45vw,1.4rem); line-height:1.5; }
.cap-upper{ font-family:var(--f-sat); font-weight:400; font-size:clamp(1.1rem,1.35vw,1.45rem); text-transform:uppercase; }

/* Buttons (rectangular, thin red border, low height) */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; font-family:var(--f-sat); font-weight:400;
  font-size:1rem; text-transform:uppercase; border:1.5px solid var(--red); color:var(--red); background:transparent; border-radius:0;
  padding:8px 24px; transition:background .2s ease,color .2s ease; white-space:nowrap; }
.btn:hover{ background:var(--red); color:#fff; border-color:var(--red); }
.btn-invia{ border-color:#fff; color:#fff; }
.btn-invia:hover{ background:var(--red); border-color:var(--red); color:#fff; }

/* Header (theme-aware) */
.site-header{ position:fixed; top:0; left:0; right:0; z-index:100; height:var(--header-h); background:transparent;
  display:flex; align-items:center; transition:background .35s ease,height .3s ease,border-color .35s ease; border-bottom:1px solid transparent; }
.site-header .wrap{ display:grid; grid-template-columns:1fr auto 1fr; align-items:center; width:100%; }
.site-header[data-theme="light"]{ background:#fff; border-bottom-color:var(--line); height:72px; }
.site-header[data-theme="green"]{ background:var(--green); height:72px; }
.site-header[data-theme="red"]{ background:var(--red); height:72px; }
.logo{ justify-self:start; font-family:var(--f-sat); font-weight:700; font-size:1.15rem; color:var(--red); white-space:nowrap; transition:color .2s ease; }
.logo:hover{ color:var(--red); }
.site-header[data-theme="hero"] .logo{ color:#fff; }
.site-header[data-theme="hero"] .logo:hover{ color:var(--red); }
.site-header[data-theme="red"] .logo{ color:#fff; }
.nav{ justify-self:center; display:flex; align-items:center; gap:30px; }
.nav-links{ display:flex; gap:30px; }
.nav-links a{ font-family:var(--f-sat); font-weight:500; font-size:.88rem; text-transform:uppercase; color:#fff; transition:color .35s ease; }
.nav .btn{ font-weight:500; font-size:.88rem; }
.site-header[data-theme="hero"] .nav .btn{ color:#fff; border-color:#fff; }
.site-header[data-theme="hero"] .nav .btn:hover{ background:var(--red); border-color:var(--red); color:#fff; }
.site-header[data-theme="light"] .nav-links a{ color:var(--ink); }
.nav-links a:hover{ color:var(--red); }
.site-header[data-theme="green"] .nav-links a:hover,.site-header[data-theme="red"] .nav-links a:hover{ color:#fff; opacity:.7; }
.header-right{ justify-self:end; display:flex; align-items:center; gap:18px; position:relative; z-index:101; }
.lang{ display:flex; gap:6px; font-family:var(--f-sat); font-size:.95rem; }
.lang button{ background:none; border:none; outline:none; padding:2px 3px; color:#fff; font-family:var(--f-sat); font-weight:400; font-size:.95rem; line-height:1; transition:color .2s ease; }
.site-header[data-theme="light"] .lang button{ color:var(--ink); font-weight:500; font-size:.88rem; text-transform:uppercase; }
.lang button.on{ color:var(--red); font-weight:700; }
.site-header[data-theme="light"] .lang button.on{ color:var(--red); font-weight:700; }
/* copertina: IT/EN entrambe bianche, selezionata sottolineata */
.site-header[data-theme="hero"] .lang button{ color:#fff; }
.site-header[data-theme="hero"] .lang button.on{ color:#fff; text-decoration:underline; text-underline-offset:5px; }
.nav-toggle{ display:none; background:none; border:none; outline:none; color:#fff; padding:4px; position:relative; z-index:101; }
.site-header[data-theme="light"] .nav-toggle{ color:#9a948b; }
/* mobile menu open: keep lang + X dark on the white overlay */
.site-header.nav-open .nav-toggle{ color:#1a1a1a; }
.site-header.nav-open .lang button{ color:#9a948b; }
.site-header.nav-open .lang button.on{ color:var(--red); }
.site-header .lang button:hover{ color:var(--red); cursor:pointer; }
.nav-toggle .material-symbols-outlined{ font-size:2rem; }
.header-book{ font-size:.88rem; padding:7px 20px; }
@media (max-width:940px){
  .nav{ position:fixed; top:0; left:0; right:0; justify-self:stretch; width:100vw; height:100vh; height:100dvh; background:#fff;
    flex-direction:column; align-items:center; justify-content:center;
    padding:80px var(--pad) 40px; gap:0; z-index:99;
    transform:translateX(100%); transition:transform .3s ease; }
  .nav.open{ transform:translateX(0); }
  .nav-links{ flex-direction:column; gap:0; width:100%; max-width:340px; }
  .nav-links a{ color:var(--ink); padding:18px 0; font-size:1.15rem; text-align:center; border-bottom:1px solid var(--line); }
  .nav .btn{ align-self:center; width:100%; max-width:340px; }
  .nav-toggle{ display:inline-flex; }
  /* logo left, IT/EN + menu button hard-right (nav is fixed, out of flow) */
  .site-header .wrap{ display:flex; justify-content:space-between; align-items:center; }
}
@media (max-width:480px){ .logo{ font-size:1.05rem; } .header-right{ gap:12px; } :root{ --header-h:74px; } }

/* Hero (full screen, black vignette) */
.hero{ position:relative; min-height:100vh; display:flex; align-items:center; justify-content:center; text-align:center;
  color:#fff; overflow:hidden; padding:var(--header-h) 20px 0; background:#000; }
.hero-bg{ position:absolute; inset:0; z-index:0; }
.hero-bg img{ width:100%; height:100%; object-fit:cover; opacity:.58; }
.hero::after{ content:""; position:absolute; inset:0; z-index:1;
  background:radial-gradient(ellipse 92% 94% at 50% 50%, rgba(0,0,0,.10) 0%, rgba(0,0,0,.32) 60%, rgba(0,0,0,.60) 100%); }
.hero-inner{ position:relative; z-index:2; text-shadow:0 2px 24px rgba(0,0,0,.5); }
.hero-inner h1{ color:#fff; }
.hero-inner .h-italic{ margin-top:6px; }
.hero-scroll{ position:absolute; left:50%; bottom:28px; z-index:3; transform:translateX(-50%); background:none; border:none;
  color:#fff; display:flex; align-items:center; opacity:.9; animation:bob 1.8s ease-in-out infinite; }
.hero-scroll .material-symbols-outlined{ font-size:2.2rem; }
@keyframes bob{ 0%,100%{ transform:translateX(-50%) translateY(0);} 50%{ transform:translateX(-50%) translateY(7px);} }

/* La tua casa a Bari (features live in the copy; photo full-bleed right) */
.casa{ min-height:calc(100vh - 71px); padding:0; overflow:hidden; }
.casa-inner{ max-width:var(--maxw); margin:0 auto; padding:0 var(--pad); display:grid; grid-template-columns:minmax(0,500px) 1fr; gap:72px; align-items:stretch; min-height:calc(100vh - 71px); }
.casa-copy{ display:flex; flex-direction:column; justify-content:flex-start; padding:40px 0; }
.casa-copy .sec-title{ margin-bottom:22px; }
.casa-copy .body-lg{ color:var(--ink); }
.casa-features{ display:grid; grid-template-columns:repeat(2,1fr); gap:34px 14px; margin:auto 0; }
.casa-features .feature{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:10px; }
.casa-features .ic .material-symbols-outlined{ font-size:38px; color:var(--red); }
.casa-features .lbl{ font-family:var(--f-sat); font-weight:400; font-size:clamp(1.1rem,1.45vw,1.4rem); line-height:1.2; color:#000; }
.casa-actions{ display:flex; gap:14px; flex-wrap:wrap; margin:0; }
.casa-photo{ margin-right:calc(-1 * var(--edge)); min-height:560px; }
.casa-photo img{ width:100%; height:100%; object-fit:cover; }
@media (max-width:880px){
  .casa{ min-height:auto; padding:0 0 22px; }
  .casa-inner{ grid-template-columns:1fr; gap:14px; min-height:auto; }
  .casa-copy{ order:1; justify-content:flex-start; }
  .casa-features{ margin:22px 0; }
  .casa-photo{ order:2; margin-top:8px; margin-left:calc(-1 * var(--pad)); margin-right:calc(-1 * var(--pad)); min-height:0; aspect-ratio:7/6; }
}

/* Location cards */
.loc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:32px; }
.loc-card .ph{ aspect-ratio:1/1; overflow:hidden; }
.loc-card .ph img{ width:100%; height:100%; object-fit:cover; transition:transform .6s ease; }
.loc-card:hover .ph img{ transform:scale(1.05); }
.loc-card .cap{ margin-top:18px; white-space:nowrap; font-size:clamp(.95rem,1.2vw,1.3rem); }
.loc-card p{ margin-top:8px; color:var(--ink); }
@media (max-width:820px){ .loc-grid{ grid-template-columns:1fr; } }

/* Gli ambienti (photo left; right: name, desc, arrows, plan) */
.amb-head{ margin-bottom:36px; }
.explorer{ display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:48px; align-items:start; }
/* fixed 3:2 preview box (all landscape photos are the same size); JS syncs the text column height so plan/legend line up with the photo bottom */
.room-stage{ position:relative; overflow:hidden; aspect-ratio:3/2; background:#fff; cursor:zoom-in; }
.room-stage img{ position:absolute; inset:0; width:100%; height:100%; display:block; }
.room-stage.is-landscape img{ object-fit:cover; object-position:center; }
/* vertical photos: shown whole, left-aligned, white band on the right */
.room-stage.is-portrait img{ object-fit:contain; object-position:left center; }
.room-stage .zoom-hint{ position:absolute; right:14px; bottom:14px; background:rgba(0,0,0,.5); color:#fff; width:38px; height:38px; display:flex; align-items:center; justify-content:center; }
.room-stage .placeholder{ width:100%; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  background-image:linear-gradient(rgba(255,255,255,.82),rgba(255,255,255,.82)),url('../img/piastrelle.jpg'); background-size:cover; background-position:center; color:var(--ink); }
.room-stage .placeholder .material-symbols-outlined{ font-size:44px; }
.room-stage .placeholder span{ font-family:var(--f-sat); font-size:1rem; }
.room-side{ display:flex; flex-direction:column; }
.room-name{ }
.room-desc{ margin-top:12px; color:var(--ink); font-size:clamp(1rem,1.25vw,1.22rem); }
.room-controls{ display:flex; align-items:center; gap:8px; margin:20px 0; }
.room-controls button{ width:40px; height:40px; border:none; background:none; color:var(--ink); display:flex; align-items:center; justify-content:center; transition:color .2s ease; }
.room-controls button:hover{ color:var(--red); }
.room-controls .material-symbols-outlined{ font-size:2rem; }
.room-controls .counter{ font-family:var(--f-sat); font-size:.95rem; color:#6b6459; margin-left:6px; }
.plan-wrap{ padding:0; max-width:230px; }
.schematic{ width:100%; height:auto; display:block; }
.schematic .room-fill{ fill:transparent; cursor:pointer; transition:fill .2s ease; }
.schematic .room-fill:hover{ fill:rgba(219,34,34,.10); }
.schematic .room-fill.active{ fill:rgba(219,34,34,.18); }
.schematic .frame{ fill:var(--red); pointer-events:none; }
.schematic .room-pin{ cursor:pointer; }
.schematic .room-pin .pv{ fill:#fff; stroke:var(--red); stroke-width:1; transition:fill .15s ease; }
.schematic .room-pin:hover .pv{ fill:var(--red); }
.schematic .room-pin.active .pv{ fill:var(--red); }
.plan-legend{ display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:14px; font-family:var(--f-sat); font-size:.82rem; color:#6b6459; }
.plan-legend .d{ width:10px; height:10px; border-radius:50%; background:var(--red); }
@media (max-width:900px){
  .explorer{ grid-template-columns:minmax(0,1fr); gap:24px; align-items:start; }
  .room-side{ min-height:0; }
  .room-stage{ min-height:0; aspect-ratio:3/2; }
  .room-controls{ margin:20px 0; }
  .plan-wrap{ width:100%; }
  .schematic{ width:100%; }
}

/* Lightbox */
.lightbox{ position:fixed; inset:0; background:rgba(0,0,0,.92); display:none; align-items:center; justify-content:center; z-index:200; padding:24px; }
.lightbox.open{ display:flex; }
.lb-stage{ display:flex; flex-direction:column; align-items:flex-start; gap:14px; max-width:100%; max-height:100%; }
.lightbox img{ max-width:86vw; max-height:80vh; object-fit:contain; }
.lb-caption{ text-align:left; align-self:flex-start; max-width:86vw; }
.lb-title{ font-family:var(--f-sat); font-weight:400; font-size:1.05rem; text-transform:uppercase; letter-spacing:.02em; color:#fff; }
.lb-desc{ font-family:var(--f-sat); font-weight:400; font-size:.9rem; color:rgba(255,255,255,.75); margin-top:5px; max-width:460px; text-wrap:balance; }
.lightbox .close{ position:absolute; top:18px; right:24px; color:#fff; background:none; border:none; padding:6px; z-index:2; }
.lightbox .close .material-symbols-outlined{ font-size:2.4rem; }
.lb-nav{ position:absolute; top:50%; transform:translateY(-50%); border:none; background:none; color:#fff; padding:8px; display:flex; align-items:center; justify-content:center; transition:color .2s ease; }
.lb-nav:hover{ color:var(--red); }
.lb-nav .material-symbols-outlined{ font-size:3rem; }
.lb-nav.prev{ left:18px; } .lb-nav.next{ right:18px; }
@media (max-width:600px){ .lb-nav .material-symbols-outlined{ font-size:2.2rem; } .lb-nav.prev{ left:4px; } .lb-nav.next{ right:4px; } }

/* Booking (minimal, booking.png reference) */
.prenota{ background:var(--green); color:#fff; }
.prenota .sec-title{ color:#fff; }
.section.prenota{ padding-top:40px; padding-bottom:40px; min-height:calc(100vh - 71px); }
.book-head{ margin-bottom:24px; }
.book-head .lead{ color:#fff; margin-top:18px; opacity:.92; max-width:880px; text-wrap:balance; }
.book-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:84px; align-items:stretch; }
.cal{ display:flex; flex-direction:column; }
.cal-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cal-head h4{ font-family:var(--f-sat); font-weight:500; font-size:1.15rem; color:#fff; }
.cal-nav{ background:none; border:none; padding:2px; color:rgba(255,255,255,.7); display:flex; transition:color .2s ease; }
.cal-nav:hover{ color:#fff; }
.cal-day.free{ position:relative; flex-direction:column; gap:1px; }
.cal-day .pr{ font-size:.6rem; font-weight:500; color:rgba(255,255,255,.85); line-height:1; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-dow{ text-align:center; font-family:var(--f-sat); font-size:.72rem; color:rgba(255,255,255,.65); text-transform:uppercase; padding-bottom:6px; }
.cal-day{ height:60px; display:flex; align-items:center; justify-content:center; font-family:var(--f-sat); font-size:.9rem; user-select:none; }
.cal-day.empty{ background:transparent; }
.cal-day.free{ background:var(--green-cell); color:#fff; }
.cal-day.busy{ background:transparent; color:rgba(255,255,255,.4); text-decoration:line-through; }
.cal-info{ margin-top:auto; padding-top:18px; font-family:var(--f-sat); font-weight:400; font-size:.9rem; line-height:1.5; color:rgba(255,255,255,.8); }

.book-form{ display:flex; flex-direction:column; background:none; border:none; box-shadow:none; padding:0; }
.book-form .row2{ display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; }
.field{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.field input[type="date"]{ min-width:0; max-width:100%; }
.field.full{ grid-column:1/-1; }
.field label{ font-family:var(--f-sat); font-weight:400; font-size:.95rem; color:rgba(255,255,255,.9); }
.field input,.field textarea{ background:var(--green-field); border:1px solid rgba(255,255,255,.28); border-radius:0; padding:9px 13px;
  font-family:var(--f-sat); font-size:1rem; color:#fff; width:100%; box-sizing:border-box; }
.field input::placeholder,.field textarea::placeholder{ color:rgba(255,255,255,.5); }
.field input:focus,.field textarea:focus{ outline:none; border-color:#fff; }
.field textarea{ resize:vertical; min-height:68px; }
.book-foot{ display:flex; align-items:flex-end; gap:18px; margin-top:auto; padding-top:18px; flex-wrap:wrap; }
/* stepper ospiti + prefisso telefono */
.stepper{ position:relative; }
.stepper input{ width:100%; padding-right:40px; }
.stepper .stp{ position:absolute; right:2px; width:32px; height:calc(50% - 2px); background:none; border:none; color:#fff; display:flex; align-items:center; justify-content:center; padding:0; }
.stepper .stp.up{ top:2px; } .stepper .stp.down{ bottom:2px; }
.stepper .stp .material-symbols-outlined{ font-size:1.2rem; }
.phone-row{ display:flex; gap:8px; }
.phone-row .prefix-in{ flex:0 0 82px; width:82px; text-align:center; }
.phone-row input{ flex:1 1 auto; }
.book-foot .note{ font-family:var(--f-sat); font-size:.9rem; color:rgba(255,255,255,.85); }
.form-status{ margin-top:14px; font-size:.95rem; padding:12px 15px; display:none; }
.form-status.show{ display:block; }
.form-status.ok{ background:rgba(255,255,255,.92); color:#3c4a30; }
.form-status.err{ background:#fff; color:#8f2f2f; }
@media (max-width:1000px){ .book-grid{ grid-template-columns:1fr; gap:36px; } }
@media (max-width:520px){ .book-form .row2{ grid-template-columns:1fr; } }

/* Come arrivare */
.arr-grid{ display:grid; grid-template-columns:minmax(0,638px) minmax(0,1fr); gap:60px; align-items:stretch; }
.arr-map{ aspect-ratio:1/1; overflow:hidden; background:#e9e6df; align-self:start; }
.arr-map iframe{ width:100%; height:100%; border:0; display:block; }
.arr-right{ display:flex; flex-direction:column; }
.arr-address{ font-family:var(--f-sat); font-weight:400; font-size:clamp(1.1rem,1.45vw,1.4rem); line-height:1.25; }
.arr-transit{ margin-top:auto; padding-top:30px; }
.arr-transit .blk{ margin-bottom:22px; font-family:var(--f-sat); font-weight:400; font-size:clamp(1.05rem,1.35vw,1.3rem); line-height:1.45; color:var(--ink); }
.arr-transit .blk .t{ text-transform:uppercase; display:block; }
@media (max-width:900px){ .arr-grid{ grid-template-columns:1fr; gap:32px; } }

/* Dicono di noi */
.quotes{ display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-top:40px; }
.quote-card{ background:#fff; border:1px solid var(--line); padding:30px; }
.quote-card .q{ font-family:var(--f-sat); font-weight:400; font-size:clamp(1.1rem,1.35vw,1.35rem); line-height:1.4; }
.quote-av{ display:flex; align-items:center; gap:14px; margin-top:24px; }
.quote-av .av{ width:44px; height:44px; border-radius:50%; background:var(--red); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; font-family:var(--f-sat); }
.quote-av .nm{ font-family:var(--f-sat); font-weight:500; font-size:1rem; }
.quote-av .ds{ font-family:var(--f-sat); font-weight:400; font-size:.95rem; color:var(--grey); }
@media (max-width:820px){ .quotes{ grid-template-columns:1fr; } }
.reviews{ text-align:center; }
.reviews .sec-title{ text-align:center; }
.reviews-invite{ max-width:640px; margin:26px auto 0; display:flex; flex-direction:column; align-items:center; gap:18px; }
.reviews-invite .ri-1{ font-family:var(--f-sat); font-style:italic; font-weight:400; font-size:clamp(1.3rem,2vw,1.7rem); line-height:1.35; }
.reviews-invite .ri-2{ font-family:var(--f-sat); font-weight:400; font-size:clamp(1rem,1.3vw,1.2rem); color:var(--grey); line-height:1.5; }

/* Conclusive section (red) */
.final{ background:var(--red); color:#fff; }
.footer{ padding:52px 0 40px; }
.footer-top{ display:flex; flex-direction:column; align-items:center; text-align:center; }
/* Group 1: host photo + quote, side by side, centered */
.footer-hero{ display:flex; align-items:center; justify-content:center; gap:44px; flex-wrap:wrap; margin-bottom:52px; }
.host-photo{ width:300px; height:300px; border-radius:50%; object-fit:cover; object-position:center; flex:0 0 auto; }
.footer-quote{ max-width:460px; text-align:left; font-family:var(--f-sat); font-style:italic; font-weight:400; font-size:clamp(1.25rem,1.8vw,1.75rem); line-height:1.34; }
/* Group 2: title + contacts, centered, evenly spaced */
.footer-brand{ display:flex; flex-direction:column; align-items:center; gap:16px; }
.footer-brand .fb-logo{ font-family:var(--f-sat); font-weight:700; font-size:2rem; line-height:1.25; color:#fff; }
.footer-brand .ph,.footer-brand .em{ font-family:var(--f-sat); font-weight:400; font-size:1.2rem; }
.footer-addr{ font-family:var(--f-sat); font-weight:400; font-size:1.1rem; }
.footer-cin{ font-family:var(--f-sat); font-weight:400; font-size:.92rem; opacity:.8; }
.footer-bottom{ display:flex; align-items:center; justify-content:space-between; gap:16px 28px; flex-wrap:wrap; margin-top:56px; padding-top:26px; border-top:1px solid rgba(255,255,255,.25); }
.footer-nav{ display:flex; align-items:center; gap:20px; }
.footer-nav a{ font-family:var(--f-sat); font-weight:400; font-size:.85rem; text-transform:uppercase; }
.footer-nav a:hover{ opacity:.7; }
.footer-nav a.pren{ border:1.5px solid #fff; color:#fff; padding:6px 16px; }
.footer-nav a.pren:hover{ background:#fff; color:var(--red); opacity:1; }
@media (max-width:820px){
  .footer-hero{ gap:26px; margin-bottom:36px; }
  .footer-quote{ text-align:center; max-width:100%; }
  .host-photo{ width:220px; height:220px; }
}

/* to-top */
.to-top{ position:fixed; right:24px; bottom:24px; width:46px; height:46px; border-radius:50%; border:none; background:var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .3s ease,transform .2s ease; z-index:90; }
.to-top.show{ opacity:1; pointer-events:auto; }
.to-top:hover{ transform:translateY(-3px); }
.to-top.on-red{ background:#fff; color:var(--red); }

/* ===== Title mobile break ===== */
.br-mobile{ display:none; }

/* ===== Map embed placeholder (cookie gate) ===== */
.embed-gate{ position:relative; }
.embed-ph{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px;
  text-align:center; padding:24px; background:#e9e6df; color:#5b544a; }
.embed-ph .material-symbols-outlined{ font-size:44px; color:var(--red); }
.embed-ph p{ font-family:var(--f-sat); font-size:.95rem; max-width:300px; line-height:1.4; }
.embed-ph .btn{ cursor:pointer; }
.embed-ph .embed-link{ font-family:var(--f-sat); font-size:.85rem; color:#5b544a; text-decoration:underline; cursor:pointer; }
.embed-ph .embed-link:hover{ color:var(--red); }
.embed-gate.loaded .embed-ph{ display:none; }
.embed-gate iframe{ width:100%; height:100%; border:0; display:block; }

/* ===== Consent checkbox (booking form) ===== */
.consent-field{ display:flex; align-items:flex-start; gap:10px; margin-top:22px; cursor:pointer;
  font-family:var(--f-sat); font-size:.9rem; line-height:1.45; color:rgba(255,255,255,.92); }
.consent-field input{ width:18px; height:18px; margin-top:2px; accent-color:#fff; flex:0 0 auto; cursor:pointer; }
.consent-field a{ color:#fff; text-decoration:underline; }

/* ===== Footer legal links ===== */
.footer-legal{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; font-family:var(--f-sat); font-size:.85rem; }
.footer-legal a{ color:#fff; opacity:.9; cursor:pointer; }
.footer-legal a:hover{ opacity:.7; text-decoration:underline; }
.footer-legal .sep{ opacity:.5; }

/* ===== Cookie banner ===== */
.cookie-banner{ position:fixed; left:0; right:0; bottom:0; z-index:300; background:#fff; color:var(--ink);
  border-top:2px solid var(--red); box-shadow:0 -8px 30px rgba(0,0,0,.14);
  transform:translateY(110%); transition:transform .35s ease; }
.cookie-banner.show{ transform:translateY(0); }
.ck-inner{ max-width:var(--maxw); margin:0 auto; padding:22px var(--pad); display:flex; align-items:center; gap:26px; flex-wrap:wrap; }
.ck-text{ flex:1 1 420px; }
.ck-text strong{ font-family:var(--f-sat); font-weight:700; font-size:1.05rem; display:block; margin-bottom:6px; }
.ck-text p{ font-family:var(--f-sat); font-size:.92rem; line-height:1.5; color:#4a453d; }
.ck-text a{ color:var(--red); text-decoration:underline; }
.ck-panel{ margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.ck-opt{ display:flex; align-items:center; gap:9px; font-family:var(--f-sat); font-size:.92rem; }
.ck-opt input{ width:17px; height:17px; accent-color:var(--red); }
.ck-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.cookie-banner .btn{ cursor:pointer; font-size:.85rem; padding:9px 18px; }
.cookie-banner .ck-primary{ background:var(--red); color:#fff; border-color:var(--red); }
.cookie-banner .ck-primary:hover{ background:#b81d1d; border-color:#b81d1d; }
.cookie-banner .ck-save{ display:none; }
.cookie-banner.panel-open .ck-save{ display:inline-flex; }
@media (max-width:700px){ .ck-actions{ width:100%; } .cookie-banner .btn{ flex:1 1 auto; text-align:center; justify-content:center; } }

/* ===== Mobile refinements ===== */
@media (max-width:760px){
  .casa-copy{ padding:24px 0; }
  .casa-features{ margin:30px 0 0; }
  .casa-actions{ margin:36px 0 0; justify-content:center; }
}
@media (max-width:600px){
  .br-mobile{ display:block; }
}
/* Prenota button stays visible (red) on the white open mobile menu */
.site-header.nav-open .nav .btn{ color:var(--red); border-color:var(--red); }

/* ===== Header over the red (Contatti) section ===== */
.site-header[data-theme="red"] .nav-links a{ color:#fff; }
.site-header[data-theme="red"] .nav .btn{ color:#fff; border-color:#fff; }
.site-header[data-theme="red"] .nav .btn:hover{ background:#fff; color:var(--red); border-color:#fff; }
.site-header[data-theme="red"] .lang button{ color:#fff; }
.site-header[data-theme="red"] .lang button.on{ color:#fff; text-decoration:underline; text-underline-offset:5px; }
.site-header[data-theme="red"] .nav-toggle{ color:#fff; }

/* Contatti fills the whole screen red when reached; footer centered, tight bottom */
.final{ min-height:calc(100vh - 71px); display:flex; align-items:center; }
.final .footer{ width:100%; }

/* Ambienti fills the screen so no green booking band peeks below when reached */
@media (min-width:901px){ #spazi{ min-height:calc(100vh - 71px); } }

/* White band separating the hero photo from the Info (terrace) photo when scrolling */
@media (min-width:761px){ .casa{ margin-top:56px; } }

/* White calendar-picker icons on the green booking form */
.field input[type="date"]::-webkit-calendar-picker-indicator{ filter:invert(1); opacity:.9; cursor:pointer; }

/* ===== Legal pages (privacy / cookie) ===== */
.legal{ padding:60px 0 90px; }
.legal .wrap{ max-width:820px; }
.legal-back{ display:inline-block; margin-bottom:26px; font-family:var(--f-sat); font-size:.95rem; color:var(--red); }
.legal-back:hover{ text-decoration:underline; }
.legal h1{ font-family:var(--f-sat); font-weight:700; font-size:clamp(2rem,4vw,2.8rem); margin-bottom:8px; color:var(--ink); }
.legal h2{ font-family:var(--f-sat); font-weight:700; font-size:1.25rem; margin:34px 0 10px; color:var(--ink); }
.legal p, .legal li{ font-family:var(--f-sat); font-size:1rem; line-height:1.65; color:#3a352e; }
.legal ul{ margin:0 0 0 20px; list-style:disc; }
.legal li{ margin-bottom:8px; }
.legal a{ color:var(--red); text-decoration:underline; }
.legal-upd{ color:#7a7268; font-size:.92rem; }
.legal-table{ width:100%; border-collapse:collapse; margin:14px 0 6px; }
.legal-table th, .legal-table td{ border:1px solid var(--line); padding:10px 12px; text-align:left; font-family:var(--f-sat); font-size:.92rem; vertical-align:top; }
.legal-table th{ background:#f4f1ea; font-weight:700; }
.legal-table td{ color:#3a352e; }
.legal-footer{ background:#f4f1ea; padding:24px 0; text-align:center; font-family:var(--f-sat); font-size:.9rem; color:#7a7268; }
.legal-footer a{ color:var(--red); }

/* ===== Responsive quote line breaks (contatti) ===== */
.brm{ display:none; }
@media (max-width:600px){ .brd{ display:none; } .brm{ display:inline; } }

/* ===== Reviews spacing (equal white bands) ===== */
.reviews{ padding:80px 0; }
@media (max-width:760px){ .reviews{ padding:44px 0; } }

/* ===== Form fields never overflow ===== */
.field input,.field textarea,.field select{ min-width:0; }

/* ===== Logo stays visible (red) on the open mobile menu ===== */
.site-header.nav-open .logo{ color:var(--red); }

@media (max-width:940px){
  /* Prenota in the open menu: identical to the other links — full width, divider, no box, not red */
  .nav .btn{ display:flex; width:100%; max-width:340px; font-size:1.15rem; font-weight:500; padding:18px 0; margin:0;
    border:none; border-bottom:1px solid var(--line); color:var(--ink); background:none; text-transform:uppercase; }
  .nav .btn:hover{ background:none; color:var(--red); }
  .site-header.nav-open .nav .btn{ color:var(--ink); border-color:var(--line); }
}

/* ===== Mobile phone refinements ===== */
@media (max-width:600px){
  /* Hero: bigger centered title; arrow higher + bigger */
  .h-display{ font-size:3.5rem; line-height:1.05; }
  .hero-scroll{ bottom:60px; }
  .hero-scroll .material-symbols-outlined{ font-size:2.9rem; }
  /* Info: center the text block in the screen; icons + buttons centered */
  .casa-copy{ min-height:calc(100vh - 71px); justify-content:center; text-align:left; align-items:stretch; padding:16px 0; }
  .casa-copy .body-lg{ text-align:left; }
  .casa-features{ margin:38px auto 0; max-width:320px; width:100%; }
  .casa-actions{ margin-top:36px; justify-content:center; }
  /* Contatti bottom bar: two centered rows */
  .footer-bottom{ flex-direction:column; align-items:center; gap:16px; justify-content:center; }
  .footer-legal{ justify-content:center; }
  .footer-nav{ justify-content:center; flex-wrap:wrap; }
  /* Contatti: content flows from the top so the host photo circle is never clipped by the header */
  .final{ align-items:flex-start; }
  .footer{ padding-top:34px; }
}

/* ===== Phone in LANDSCAPE: backgrounds & photos full-width, text columns narrow & readable ===== */
@media (max-width:940px) and (max-height:560px) and (orientation:landscape){
  /* narrow the READABLE text blocks (centered); section backgrounds and photos stay full-width */
  .book-head, .amb-head, .room-side, .arr-right, .book-form{ max-width:600px; margin-left:auto; margin-right:auto; }
  /* Info: single column, text narrow-left, 4 icons in ONE row, terrace photo full-width & squarer */
  .casa{ min-height:auto; padding:56px 0 30px; }
  .casa-inner{ grid-template-columns:1fr; gap:16px; min-height:auto; }
  .casa-copy{ min-height:auto; max-width:620px; margin:0 auto; justify-content:flex-start; text-align:left; align-items:stretch; padding:0; }
  .casa-copy .body-lg{ text-align:left; }
  .casa-features{ grid-template-columns:repeat(4,1fr); max-width:none; margin:20px 0 0; gap:12px; }
  .casa-actions{ justify-content:flex-start; margin:22px 0 0; }
  .casa-photo{ order:2; aspect-ratio:3/2; min-height:0; }
  /* location photos: uniform grid, full-width */
  .loc-grid{ grid-template-columns:repeat(3,1fr); }
  /* Booking: stack date fields so they can't overlap or overflow */
  .book-grid{ grid-template-columns:1fr; gap:26px; }
  .book-form .row2{ grid-template-columns:1fr; }
  /* menu: start from the top and scroll if it's taller than the short viewport */
  .nav{ justify-content:flex-start; padding-top:52px; padding-bottom:24px; overflow-y:auto; }
  .nav-links a{ padding:14px 0; }
  .h-display{ font-size:2.4rem; }
  .hero-scroll{ bottom:18px; }
  .hero-scroll .material-symbols-outlined{ font-size:2.2rem; }
  .final{ align-items:flex-start; }
}

/* ===== Open mobile menu: ALWAYS the same look, whatever section is underneath ===== */
.site-header.nav-open{ background:#fff; border-bottom-color:var(--line); height:72px; }
.site-header.nav-open .logo{ color:var(--red); }
.site-header.nav-open .nav-toggle{ color:#1a1a1a; }
.site-header.nav-open .lang button{ color:#9a948b; font-weight:500; text-decoration:none; }
.site-header.nav-open .lang button.on{ color:var(--red); font-weight:700; text-decoration:none; }
.site-header.nav-open .nav .btn{ color:var(--ink); border-color:var(--line); }
