@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fraunces-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/fraunces-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Baskerville'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/libre-baskerville-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/work-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/work-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/work-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  --stone: #E4D9C4;
  --stone-dark: #C9B896;
  --clay: #A85D3B;
  --clay-deep: #7A4128;
  --walnut: #2E241C;
  --cream: #FBF7EF;
  --sage: #6B7355;
  --line: rgba(46, 36, 28, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Work Sans', sans-serif; color: var(--walnut); background: var(--cream); line-height: 1.6; }
h1, h2, h3 { font-family: 'Fraunces', serif; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 32px; }

/* NAV */
nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 239, 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { font-family: 'Libre Baskerville', Georgia, serif; font-size: 1.75rem; font-weight: 400; letter-spacing: 0; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 720px) { .brand { font-size: 1.5rem; } }  /* telefoni: accanto c'e' solo il pulsante del menu */
@media (max-width: 380px) { .brand { font-size: 1.35rem; } }
@media (max-width: 340px) { .brand { font-size: 1.2rem; } }  /* telefoni piccolissimi */
.navlinks { display: flex; gap: 20px; font-size: 0.92rem; flex-shrink: 0; }
.navlinks a { border-bottom: 1px solid transparent; padding-bottom: 2px; transition: border-color 0.2s; white-space: nowrap; }
.navlinks a:hover { border-color: var(--clay); }
.nav-cta { background: var(--clay); color: var(--cream); padding: 10px 16px; border-radius: 3px; font-size: 0.9rem; white-space: nowrap; flex-shrink: 0; }
.nav-cta:hover { background: var(--clay-deep); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.7rem; cursor: pointer; color: var(--walnut); line-height: 1; width: 44px; height: 44px; padding: 0; margin-right: -10px; }

/* LANGUAGE SWITCH */
.lang-switch { display: flex; gap: 2px; margin-right: 0; flex-shrink: 0; }
.lang-btn { background: none; border: 1px solid transparent; font-size: 1.25rem; line-height: 1; padding: 4px 4px; border-radius: 3px; cursor: pointer; }
.lang-btn:hover { border-color: var(--clay); }
.lang-btn.active { border-color: var(--clay); background: rgba(168,93,59,0.1); }
.lang-switch-mobile { margin: 10px 0 0; }

@media (max-width: 1100px) {
  .lang-switch:not(.lang-switch-mobile) { display: none; }
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--cream);
  z-index: 49;
  padding: 24px 32px;
  flex-direction: column;
  gap: 20px;
}
.mobile-panel { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.mobile-panel.open { display: flex; }
.mobile-panel a { font-size: 1.1rem; padding: 10px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 1100px) {
  .navlinks { display: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
}
@media (min-width: 1101px) {
  .mobile-panel { display: none !important; } /* se la finestra viene allargata a menu aperto */
}

/* HERO */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; background-color: var(--stone-dark); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg.placeholder {
  background:
    repeating-linear-gradient(115deg, #C9B896 0px, #C9B896 2px, #D9C9AA 2px, #D9C9AA 90px),
    repeating-linear-gradient(25deg, transparent 0px, transparent 60px, rgba(122,65,40,0.06) 60px, rgba(122,65,40,0.06) 120px);
}
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(46,36,28,0.15) 0%, rgba(46,36,28,0.6) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding: 80px 0 64px; color: var(--cream); max-width: 640px; }
.hero-eyebrow { font-size: 0.9rem; color: var(--stone); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: 20px; }
.hero p { font-size: 1.1rem; color: var(--stone); max-width: 480px; margin-bottom: 32px; }
.btn-primary { display: inline-block; background: var(--clay); color: var(--cream); padding: 14px 30px; border-radius: 3px; font-size: 1rem; transition: background 0.2s; }
.btn-primary:hover { background: #C16B41; }

/* GALLERY STRIP */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.gallery-strip .g-item { position: relative; overflow: hidden; background: var(--cream); aspect-ratio: 4/3; }
.gallery-strip .g-item img { object-fit: contain; background: var(--cream); }
.gallery-strip .g-item.placeholder {
  background:
    repeating-linear-gradient(100deg, #D9C9AA 0px, #D9C9AA 3px, #C9B896 3px, #C9B896 70px);
}
@media (max-width: 720px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; }
  .gallery-strip .g-item:first-child { grid-column: 1 / -1; }
}

/* STORY */
.story-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin-bottom: 18px; }
.story-section p { font-size: 1.08rem; color: #4A3C2E; }
.story-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.story-media { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background: var(--cream); position: relative; }
.story-media.placeholder {
  background:
    repeating-linear-gradient(100deg, #D9C9AA 0px, #D9C9AA 3px, #C9B896 3px, #C9B896 70px),
    repeating-linear-gradient(10deg, transparent 0 50px, rgba(122,65,40,0.08) 50px 100px);
}
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }

/* CITY SECTION */
.city-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.city-media { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; background: var(--cream); }
.city-media.placeholder {
  background:
    repeating-linear-gradient(100deg, #D9C9AA 0px, #D9C9AA 3px, #C9B896 3px, #C9B896 70px),
    repeating-linear-gradient(10deg, transparent 0 50px, rgba(122,65,40,0.08) 50px 100px);
}
.city-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.3rem); margin-bottom: 16px; }
.city-section p { color: #4A3C2E; font-size: 1.05rem; }
@media (max-width: 760px) { .city-grid { grid-template-columns: 1fr; } }

/* COOKIE BANNER */
.cookie-banner {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--walnut); color: var(--stone);
  padding: 18px 24px; gap: 14px;
  align-items: center; flex-wrap: wrap;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.cookie-banner.visible { display: flex; }
.cookie-banner p { flex: 1 1 320px; font-size: 0.88rem; margin: 0; color: #E4D9C4; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn-primary, .cookie-btn-secondary {
  padding: 9px 18px; border-radius: 4px; font-size: 0.85rem; cursor: pointer; font-family: 'Work Sans', sans-serif; border: none;
}
.cookie-btn-primary { background: var(--clay); color: #fff; }
.cookie-btn-primary:hover { background: #C16B41; }
.cookie-btn-secondary { background: transparent; border: 1px solid rgba(251,247,239,0.35); color: var(--stone); }
.cookie-btn-secondary:hover { border-color: #fff; color: #fff; }
.cookie-banner a { font-size: 0.8rem; color: #C9BBA5; text-decoration: underline; white-space: nowrap; }
.cookie-banner a:hover { color: #fff; }

/* COOKIE POLICY MODAL */
.cookie-modal-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(46,36,28,0.6);
  align-items: center; justify-content: center;
  padding: 24px;
}
.cookie-modal-backdrop.visible { display: flex; }
.cookie-modal {
  background: var(--cream); border-radius: 6px; padding: 32px; max-width: 480px; max-height: 80vh; overflow-y: auto;
}
.cookie-modal h3 { font-family: 'Fraunces', serif; font-size: 1.3rem; margin-bottom: 14px; }
.cookie-modal p { font-size: 0.92rem; color: #4A3C2E; margin-bottom: 20px; line-height: 1.6; }
.cookie-modal button {
  background: var(--clay); color: #fff; border: none; padding: 10px 22px; border-radius: 4px; cursor: pointer; font-family: 'Work Sans', sans-serif;
}
.cookie-modal button:hover { background: #C16B41; }

/* MAP CONSENT OVERLAY */
.map-frame { position: relative; }
.map-consent-overlay {
  display: none;
  position: absolute; inset: 0;
  background: var(--stone);
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 14px;
}
.map-consent-overlay.visible { display: flex; }
.map-consent-overlay p { font-size: 0.9rem; color: #4A3C2E; max-width: 260px; }
.map-consent-overlay button {
  background: var(--clay); color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-family: 'Work Sans', sans-serif; font-size: 0.9rem;
}
.map-consent-overlay button:hover { background: #C16B41; }
.section { padding: 96px 0; }
.section-alt { background: var(--stone); }
.section-head { max-width: 560px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.section-head p { color: #4A3C2E; font-size: 1.05rem; }

/* ROOMS */
.room { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 88px; }
.room:last-child { margin-bottom: 0; }
.room:nth-child(even) .room-media { order: 2; }
.room-media { aspect-ratio: 4/3; border-radius: 4px; position: relative; overflow: hidden; background: var(--cream); }
.room-media.placeholder::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(100deg, #D9C9AA 0px, #D9C9AA 3px, #C9B896 3px, #C9B896 70px),
    repeating-linear-gradient(10deg, transparent 0 50px, rgba(122,65,40,0.08) 50px 100px);
}

/* CAROUSEL FOTO CAMERE */
.room-carousel-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.room-carousel-track::-webkit-scrollbar { display: none; }
.room-carousel-track .slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}
.room-carousel-track .slide img { width: 100%; height: 100%; object-fit: cover; }
.room-carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(46,36,28,0.55); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; cursor: pointer; z-index: 2;
}
.room-carousel-arrow:hover { background: rgba(46,36,28,0.8); }
.room-carousel-arrow.prev { left: 10px; }
.room-carousel-arrow.next { right: 10px; }
.room-carousel-dots {
  position: absolute; bottom: 2px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 0; z-index: 2;
}
.room-carousel-dots .dot { position: relative; width: 24px; height: 24px; background: none; border: none; padding: 0; cursor: pointer; }
.room-carousel-dots .dot::before { content: ''; position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: rgba(255,255,255,0.55); }
.room-carousel-dots .dot.active::before { background: #fff; }
.room-name { font-size: 1.5rem; margin-bottom: 10px; }
.room-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--clay-deep); margin-bottom: 10px; }
.room-price { font-size: 1.05rem; color: var(--clay-deep); font-weight: 500; margin-bottom: 14px; }
.room-desc { color: #4A3C2E; margin-bottom: 18px; }
.room-amenities { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.88rem; }
.room-amenities li { position: relative; padding-left: 16px; }
.room-amenities li::before { content: ''; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service-item { background: var(--cream); padding: 28px 24px; }
.service-item h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 500; }
.service-item p { font-size: 0.92rem; color: #4A3C2E; }

/* BOOKING */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.booking-note { align-self: start; position: sticky; top: 100px; }
.booking-note p { color: #4A3C2E; margin-bottom: 14px; }
.booking-note ul { margin-left: 18px; color: #4A3C2E; }
form { display: flex; flex-direction: column; gap: 16px; background: var(--cream); border: 1px solid var(--line); padding: 32px; border-radius: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 0.85rem; color: var(--clay-deep); margin-bottom: 6px; display: block; }
input, select, textarea { width: 100%; border: 1px solid var(--stone-dark); background: #fff; padding: 11px 12px; border-radius: 3px; font-family: 'Work Sans', sans-serif; font-size: 0.95rem; color: var(--walnut); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--clay); outline-offset: 1px; }
textarea { resize: vertical; min-height: 70px; }
.submit-btn { background: #25D366; color: #fff; border: none; padding: 14px 20px; border-radius: 3px; font-size: 1rem; font-family: 'Work Sans', sans-serif; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.2s; }
.submit-btn:hover { background: #1EBE5A; }
.form-hint { font-size: 0.82rem; color: #6a5c4c; }

/* LOCATION */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.location-list { list-style: none; margin-top: 20px; }
.location-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 0.95rem; }
.location-list li { gap: 16px; }
.location-list li span:last-child { color: var(--clay-deep); white-space: nowrap; text-align: right; }
.map-frame { aspect-ratio: 4/3; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.map-frame iframe { width: 100%; height: 100%; border: none; }

/* FOOTER */
footer { background: var(--walnut); color: var(--stone); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 56px; }
footer h3 { font-family: 'Libre Baskerville', Georgia, serif; font-weight: 400; color: var(--cream); font-size: 1.2rem; margin-bottom: 12px; letter-spacing: 0; }
footer h4 { color: var(--stone); font-size: 0.9rem; margin-bottom: 14px; font-weight: 500; }
footer p, footer a { color: #C9BBA5; font-size: 0.92rem; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
footer a:hover { color: var(--cream); }
.footer-bottom { border-top: 1px solid rgba(251,247,239,0.14); padding-top: 24px; font-size: 0.82rem; color: #8A7C68; }

@media (max-width: 760px) {
  .room, .booking-grid, .location-grid { grid-template-columns: 1fr; }
  .room:nth-child(even) .room-media { order: 0; }
  .booking-note { position: static; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

/* ===== TELEFONI E TABLET (dita al posto del mouse) ===== */

/* i campi del modulo a 16px: sotto questa misura l'iPhone ingrandisce la pagina da solo quando ci tocchi dentro */
@media (pointer: coarse), (max-width: 760px) {
  input, select, textarea { font-size: 16px; }
}

/* pulsanti e link abbastanza grandi da toccare con il dito */
@media (pointer: coarse), (max-width: 760px) {
  .room-carousel-arrow { width: 44px; height: 44px; font-size: 1.3rem; }
  footer ul { gap: 2px; }
  footer ul a { display: inline-block; padding: 8px 0; min-width: 44px; }
  .cookie-banner a { display: inline-block; padding: 11px 0; margin: -5px 0; }
}
/* bandiere dentro il menu a tendina: piu' grandi da toccare (la barra desktop non cambia) */
.lang-switch-mobile .lang-btn { padding: 8px 10px; }

/* dopo un clic nel menu, il titolo della sezione non finisce sotto la barra fissa */
@media (max-width: 760px) {
  section[id] { scroll-margin-top: 32px; }
}

/* telefono in orizzontale (schermo basso): menu a tendina piu' compatto */
@media (max-height: 500px) {
  .mobile-panel { padding-top: 12px; padding-bottom: 12px; gap: 6px; }
  .mobile-panel a { padding: 6px 0; }
}

/* banner cookie compatto quando lo schermo e' basso (telefono in orizzontale) */
@media (max-height: 500px) {
  .cookie-banner { padding: 8px 16px; gap: 4px 14px; }
  .cookie-banner p { flex: 1 1 300px; font-size: 0.75rem; line-height: 1.35; }
  .cookie-btn-primary, .cookie-btn-secondary { padding: 11px 12px; font-size: 0.78rem; }
}

/* banner cookie: sui telefoni occupa meno schermo */
@media (max-width: 600px) {
  .cookie-banner { padding: 12px 14px; gap: 6px 10px; }
  .cookie-banner p { flex: 1 1 100%; font-size: 0.78rem; line-height: 1.4; }
  .cookie-banner-actions { flex: 1 1 100%; flex-wrap: nowrap; gap: 8px; }
  .cookie-btn-primary, .cookie-btn-secondary { flex: 1; padding: 11px 8px; font-size: 0.82rem; }
  .cookie-banner a { padding: 11px 0; margin: -5px 0; font-size: 0.75rem; }
}

/* PRIVACY */
.privacy-modal { max-width: 640px; }
.privacy-modal h4 { font-size: 0.98rem; margin: 18px 0 6px; color: var(--walnut); }
.privacy-modal h4:first-child { margin-top: 0; }
.privacy-modal #privacy-body p { margin-bottom: 8px; }
.privacy-modal .privacy-updated { font-size: 0.8rem; color: #6a5c4c; margin: 16px 0 20px; }
.privacy-note { margin-top: 6px; }
.privacy-note a, .footer-legal-link { color: inherit; text-decoration: underline; }
.footer-legal-link { padding: 8px 0; display: inline-block; }
.footer-cin { margin-top: 8px; letter-spacing: 0.04em; }
