/* Club House Hotel — Marine Edition
   Solo livello visivo: struttura, contenuti e funzioni restano invariati. */
:root {
  --ink: #073a50;
  --ink-deep: #042e43;
  --sea: #087a8c;
  --sea-bright: #16a4ad;
  --sea-soft: #bfe7e5;
  --accent: #c45143;
  --accent-light: #ffb7a7;
  --ivory: #e9f6f3;
  --sand: #d4ebe7;
  --paper: #f7fcfb;
  --white: #ffffff;
  --text: #183b48;
  --muted: #526f78;
  --line: rgba(7,58,80,.18);
}

body {
  background: linear-gradient(180deg, #f7fcfb 0%, #ffffff 42%, #e8f7f4 100%);
}

::selection { background: var(--sea); color: var(--white); }
:focus-visible { outline-color: #f2a900; outline-width: 3px; }

.site-header { background: rgba(247,252,251,.95); box-shadow: 0 1px 0 rgba(7,58,80,.14), 0 8px 26px rgba(4,46,67,.05); }
.utility-bar { background: linear-gradient(90deg, var(--ink-deep), var(--sea)); }
.brand { color: var(--ink); }
.brand-place { color: var(--sea); }
.desktop-nav a::after { height: 3px; border-radius: 99px; background: linear-gradient(90deg, var(--sea-bright), var(--accent)); }
.button { border-radius: 999px; }
.button-book, .button-dark { background: linear-gradient(135deg, var(--ink), var(--sea)); box-shadow: 0 9px 24px rgba(4,46,67,.16); }
.button-book:hover, .button-dark:hover { background: var(--accent); }
.button-accent { background: var(--accent); box-shadow: 0 10px 26px rgba(196,81,67,.2); }
.button-accent:hover { background: #a94035; }

.eyebrow { color: var(--sea); }
.eyebrow::before { content: ""; display: inline-block; width: 25px; height: 8px; margin-right: 10px; background: radial-gradient(9px 6px at 5px 0, transparent 4px, var(--accent) 5px 6px, transparent 7px) 0 0/10px 8px repeat-x; transform: translateY(1px); }
.eyebrow.light { color: #b9f1ee; }
.eyebrow.light::before { color: var(--accent-light); }
.section-heading { position: relative; }
.section-heading h2 { color: var(--ink); }
.section-heading::after { content: ""; display: block; width: 86px; height: 8px; margin-top: 27px; background: radial-gradient(14px 8px at 14px 0, transparent 12px, var(--sea-bright) 13px 14px, transparent 15px) 0 0/28px 8px repeat-x; opacity: .8; }
.centered-intro .section-heading::after { margin-inline: auto; }
.section-heading.light::after { filter: brightness(1.65); }
.text-link { color: var(--ink); border-color: var(--sea-bright); }
.text-link:hover { color: var(--accent); }
.home-hero .hero-actions .text-link,
.home-hero .hero-actions .light-link { color: var(--white) !important; border-color: var(--white) !important; }

.home-hero { background: var(--ink-deep); }
.hero-content h1 { max-width: 980px; font-size: clamp(66px, 8vw, 122px); line-height: .84; }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(4,46,67,.9) 0%, rgba(8,122,140,.45) 48%, rgba(4,46,67,.06) 80%),
    linear-gradient(0deg, rgba(4,46,67,.48), transparent 42%);
}
.home-hero::after, .page-hero::after {
  content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: -1px; height: 38px;
  background: radial-gradient(48px 22px at 24px 0, transparent 21px, var(--paper) 22px 24px, transparent 25px) 0 0/48px 38px repeat-x;
  opacity: .95; pointer-events: none;
}
.hero-side-note { color: #b9f1ee; }
.booking-bar { border: 1px solid rgba(8,122,140,.12); border-radius: 18px; box-shadow: 0 28px 70px rgba(4,46,67,.18); overflow: hidden; }
.booking-bar label::before { content: ""; width: 15px; height: 15px; border: 2px solid var(--sea); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--white); background: var(--sea-soft); }
.booking-bar label:first-child::before { border-color: var(--accent); background: var(--accent-light); }
.booking-bar label:nth-child(2)::before { border-radius: 50% 50% 50% 8%; transform: rotate(-20deg); }

.image-frame, .room-image, .promo-image, .post-image { border-radius: 3px 28px 3px 28px; }
.image-frame::before { border-radius: 2px 20px 2px 20px; }
.image-caption { background: var(--paper); color: var(--sea); border-radius: 16px 0 0; }
.stat-row div { position: relative; padding-top: 38px; }
.stat-row div::before { content: ""; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border: 2px solid var(--sea-bright); border-radius: 50%; box-shadow: inset 0 0 0 5px var(--paper); background: var(--sea-soft); }
.stat-row div:nth-child(2)::before { border-color: var(--accent); background: var(--accent-light); }
.stat-row div:nth-child(3)::before { border-radius: 50% 50% 10% 50%; transform: rotate(45deg); }

.sea-section, .amenities-section, .room-options-section, .business-benefits {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, rgba(22,164,173,.22), transparent 30%),
    linear-gradient(145deg, var(--ink-deep), #075f73);
}
.sea-section::before, .amenities-section::before, .room-options-section::before, .business-benefits::before {
  content: ""; position: absolute; width: 420px; height: 420px; right: -180px; bottom: -210px;
  border: 1px solid rgba(185,241,238,.24); border-radius: 50%; box-shadow: 0 0 0 34px rgba(185,241,238,.05), 0 0 0 76px rgba(185,241,238,.04); pointer-events: none;
}
.experience-card { border-radius: 4px 34px 4px 34px; background: var(--sea); }
.card-number { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; }
.card-copy small { color: #b9f1ee; }

.rooms-preview, .room-navigation, .service-band, .breakfast-menu, .meeting-table-section, .distances-section, .quote-section {
  background:
    linear-gradient(135deg, rgba(255,255,255,.48), transparent 45%),
    var(--ivory);
}
.room-card { padding: 12px 12px 24px; background: rgba(255,255,255,.66); border: 1px solid rgba(8,122,140,.13); border-radius: 4px 30px 4px 30px; box-shadow: 0 16px 44px rgba(4,46,67,.08); }
.room-info > span, .service-band-grid span, .breakfast-grid span, .places-grid span { color: var(--sea); }
.room-info i { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: var(--sea-soft); color: var(--ink); }

.business-image { background: linear-gradient(90deg, rgba(4,46,67,.95), rgba(8,122,140,.36)), url("../images/meeting.webp") center/cover; }
.business-banner::after { content: ""; position: absolute; z-index: 2; right: 7vw; top: 16%; width: 62px; height: 62px; border: 1px solid var(--accent-light); border-radius: 50%; box-shadow: 0 0 0 14px rgba(255,183,167,.1), 0 0 0 28px rgba(255,183,167,.06); opacity: .8; }
.distance-list div { transition: padding .25s ease, background .25s ease; }
.distance-list div:hover { padding-inline: 18px; background: rgba(191,231,229,.3); }
.reviews-section { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--sea-soft), #e9f6f3 72%); }
.reviews-section::after { content: ""; position: absolute; right: -80px; top: -90px; width: 260px; height: 260px; border: 1px solid rgba(8,122,140,.14); border-radius: 50%; box-shadow: 0 0 0 36px rgba(8,122,140,.05), 0 0 0 72px rgba(8,122,140,.03); }

.final-cta { background: linear-gradient(105deg, rgba(4,46,67,.88), rgba(8,122,140,.6)), url("../images/hotel-view.webp") center/cover; }
.site-footer { position: relative; background: linear-gradient(150deg, #032838, #075f73); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18px; background: radial-gradient(28px 14px at 14px 0, transparent 12px, rgba(185,241,238,.34) 13px 14px, transparent 15px) 0 0/28px 18px repeat-x; }

.page-hero { position: relative; overflow: hidden; }
.page-hero::after { background-color: transparent; }
.room-detail, .promo-card, .quote-form, .form-success { border: 1px solid rgba(8,122,140,.12); border-radius: 4px 36px 4px 36px; box-shadow: 0 22px 60px rgba(4,46,67,.09); overflow: hidden; }
.room-detail { grid-template-columns: 1.08fr .92fr; min-height: 680px; scroll-margin-top: 150px; }
.room-detail.reverse { grid-template-columns: .92fr 1.08fr; }
.room-detail.reverse .room-gallery { order: 2; }
.room-detail-copy h3 { margin: 4px 0 16px; color: var(--ink); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.room-detail-copy .button { align-self: flex-start; margin-top: 28px; }
.room-gallery { min-width: 0; height: max-content; align-self: start; display: flex; flex-direction: column; background: #dcefed; }
.room-gallery-main { position: relative; width: 100%; height: clamp(440px, 38vw, 560px); min-height: 0; aspect-ratio: auto; flex: 0 0 auto; overflow: hidden; background: #dcefed; }
.room-gallery-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: transparent; cursor: zoom-in; }
.room-gallery-open img { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover !important; object-position: center 60% !important; transition: transform .45s ease, filter .45s ease; }
/* Le fotografie verticali delle camere hanno il soggetto nella parte bassa. */
.room-gallery-open img[src*="deluxe-minipool5.webp"],
.room-gallery-open img[src*="deluxe-minipool9.webp"],
.room-gallery-open img[src*="deluxe-minipool11.webp"] { object-position: center 72% !important; }
.room-gallery-open > span { position: absolute; right: 20px; top: 20px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(247,252,251,.92); color: var(--ink); font-size: 22px; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
.room-gallery-open:hover img, .room-gallery-open:focus-visible img { transform: scale(1.025); filter: brightness(.88); }
.room-gallery-open:hover > span, .room-gallery-open:focus-visible > span { opacity: 1; transform: none; }
.room-gallery-controls { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 8px; background: rgba(247,252,251,.94); box-shadow: 0 8px 25px rgba(4,46,67,.16); }
.room-gallery-controls button, .review-controls button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.78); color: var(--ink); }
.room-gallery-controls button:hover, .review-controls button:hover { background: var(--ink); color: var(--white); }
.room-gallery-controls span, .review-controls span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.room-gallery-thumbs { display: flex; gap: 7px; padding: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.room-gallery-thumbs button { flex: 0 0 88px; height: 62px; padding: 0; overflow: hidden; border: 2px solid transparent; background: transparent; opacity: .66; transition: opacity .2s ease, border-color .2s ease; }
.room-gallery-thumbs button:hover, .room-gallery-thumbs button.is-active { border-color: var(--accent); opacity: 1; }
.room-gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.room-amenities-full { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0; padding: 22px 0; border-block: 1px solid var(--line); list-style: none; color: var(--ink); font-size: 10px; line-height: 1.45; }
.room-amenities-full li { position: relative; padding-left: 15px; }
.room-amenities-full li::before { content: "·"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.review-stars { margin-bottom: 18px; color: #9a5b24; font-size: 18px; letter-spacing: .18em; }
.review-stars span { color: rgba(7,58,80,.2); }
.review-controls { display: flex; align-items: center; gap: 16px; margin: 28px 0 0 7vw; }
.reviews-carousel [hidden] { display: none !important; }
.mini-amenities li::before, .promo-copy li::before { content: ""; display: inline-block; width: 12px; height: 6px; margin-right: 8px; border: 1px solid var(--sea); border-width: 0 0 1px; border-radius: 50%; }
.amenities-grid li, .room-options-grid li { position: relative; padding-left: 52px; }
.amenities-grid li::before, .room-options-grid li::before { content: ""; position: absolute; left: 20px; width: 16px; height: 16px; border: 1px solid #b9f1ee; border-radius: 50%; box-shadow: inset 0 0 0 4px rgba(185,241,238,.12); }
.service-band-grid > div, .breakfast-grid article, .places-grid div { transition: background .25s ease, transform .25s ease; }
.service-band-grid > div:hover, .breakfast-grid article:hover, .places-grid div:hover { position: relative; z-index: 2; background: rgba(191,231,229,.34); transform: translateY(-4px); }
.time-note { border-color: var(--sea-bright); }

.map-art { border-radius: 4px 36px 4px 36px; background: linear-gradient(90deg, var(--sand) 0 58%, #77cbd0 58%); box-shadow: 0 22px 55px rgba(4,46,67,.12); }
.map-art::after { box-shadow: 0 25px 0 rgba(255,255,255,.3), 0 -25px 0 rgba(255,255,255,.22); }
.map-pin { border-radius: 999px; background: var(--accent); box-shadow: 0 9px 24px rgba(196,81,67,.25); }
.gallery-grid button { border-radius: 3px 26px 3px 26px; }
.gallery-grid button > span { border-radius: 50%; background: var(--sea-soft); }
.post-image > span { border-radius: 999px; background: rgba(247,252,251,.94); color: var(--sea); }
.event-group-title > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--sea-soft); color: var(--ink); }
.event-list article { padding-inline: 0; transition: padding .25s ease, background .25s ease; }
.event-list article:hover { padding-inline: 16px; background: rgba(191,231,229,.28); }
.event-list article > a { color: var(--sea); border-color: var(--sea); }
.event-facts > div { background: rgba(255,255,255,.8); }
.quote-form input:not([type="checkbox"]), .quote-form select, .quote-form textarea { border-color: rgba(8,122,140,.28); border-radius: 10px; background: var(--paper); }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--sea); box-shadow: 0 0 0 3px rgba(22,164,173,.13); }
.form-success > span { border-color: var(--sea); color: var(--sea); }
.accessibility-note { border-left-color: var(--sea-bright); }

@media (max-width: 760px) {
  .booking-bar { border-radius: 16px; }
  .booking-bar label::before { display: none; }
  .home-hero::after, .page-hero::after { height: 24px; background-size: 36px 24px; }
  .room-card, .room-detail, .promo-card, .quote-form { border-radius: 3px 22px 3px 22px; }
  .event-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .section-heading::after { margin-top: 20px; }
  .hero-content h1 { font-size: clamp(50px, 14vw, 63px); line-height: .88; }
  .room-detail, .room-detail.reverse { grid-template-columns: 1fr; }
  .room-detail.reverse .room-gallery { order: 0; }
  .room-gallery-main { height: clamp(310px, 78vw, 420px); min-height: 0; aspect-ratio: auto; }
  .room-gallery-open > span { right: 14px; top: 14px; opacity: 1; transform: none; }
  .room-amenities-full { grid-template-columns: 1fr; }
  .review-controls { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .room-scroll { overflow-x: auto; }
  .room-scroll-track { animation: none; }
  .room-scroll-group[aria-hidden="true"] { display: none; }
  .distance-list div, .service-band-grid > div, .breakfast-grid article, .places-grid div, .event-list article { transition: none; }
}
