/* ============================================
   RESIDENCE LA TARTARUGA
   Design: Fullscreen Coastal Luxury
   ============================================ */

/* ── TOKENS ── */
:root {
    --black:   #0099a3; /* Was black, now Teal */
    --dark:    #007a82; /* Was dark grey, now Dark Teal */
    --mid:     #555;
    --light:   #999;
    --border:  #e8e8e8;
    --bg:      #fafaf8;
    --white:   #ffffff;
    --sand:    #f0ebe3;
    --accent:  #0d0d0d; /* Was Teal, now Black */
    --accent2: #1a1a1a; /* Was Dark Teal, now Dark Grey */
    --serif:   'Playfair Display', Georgia, serif;
    --sans:    'Inter', system-ui, sans-serif;
    --ease:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--dark); background: var(--white); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container, .container-lg { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 768px) { .container, .container-lg { padding: 0 24px; } }


/* ── TYPOGRAPHY ── */
h1 { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 9rem); font-weight: 400; letter-spacing: -0.02em; line-height: 0.92; color: var(--white); }
h1-a { font-family: var(--serif); font-size: clamp(3.2rem, 9vw, 9rem); font-weight: 400; letter-spacing: -0.02em; line-height: 0.92; color: var(--teal); }
h2 { font-family: var(--serif); font-size: clamp(2.4rem, 3.8vw, 3.8rem); font-weight: 400; line-height: 1.25; color: var(--black); }
h2 em { font-style: italic; color: var(--accent); }
h2-w { font-family: var(--serif); font-size: 1.6rem; font-weight: 400; line-height: 0.5; letter-spacing: -0.02em; color: var(--white); }
h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400;}
p  { font-size: 1rem; line-height: 1.8; color: var(--mid); }

.label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}
.label-light { color: var(--white); }
.eyebrow  { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }

/* ── SCROLL REVEAL ── */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s var(--ease);
}
.fade-in.visible { opacity: 1; }

/* ── BUTTONS ── */
.btn-white {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 34px;
    background: var(--white);
    color: var(--black);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: background .25s, color .25s, transform .2s;
}
.btn-white:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }

.btn-dark {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 30px;
    background: var(--black);
    color: var(--white);
    font-size: 0.83rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-radius: 2px;
    transition: background .25s, transform .2s;
}
.btn-dark:hover { background: var(--accent); transform: translateY(-2px); }

/* ═══════════════════════════════════
   NAV
═══════════════════════════════════ */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: transparent;
    transition: background 0.15s var(--ease), box-shadow 0.3s var(--ease), height 0.3s var(--ease);
}
@media (max-width: 768px) {
    #nav { padding: 0 20px; height: 64px; }
}

#nav.solid, #nav.nav-dark {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-logo {
    position: relative;
    z-index: 210;
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 48px; width: auto;
    transition: transform 0.3s var(--ease);
    /* Remove the white filter to show integrity, use shadow for visibility on dark */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}
@media (max-width: 768px) { .nav-logo img { height: 40px; } }
#nav.solid .nav-logo img, #nav.nav-dark .nav-logo img { 
    filter: none; 
}

.nav-links { display: none; }
.nav-links a {
    font-size: 0.84rem; font-weight: 500;
    color: var(--white);
    padding: 8px 14px; border-radius: 2px;
    transition: color .2s;
}
#nav.solid .nav-links a, #nav.nav-dark .nav-links a { color: var(--black); }
#nav.solid .nav-links a:hover, #nav.nav-dark .nav-links a:hover { color: var(--accent); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    padding: 10px 18px;
    border-radius: 4px;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: background .2s, transform .2s;
    white-space: nowrap;
}
@media (max-width: 400px) {
    .nav-cta { padding: 8px 14px; font-size: 0.7rem; }
}
.nav-cta:hover { background: var(--accent2) !important; transform: translateY(-1px); }

.burger {
    display: flex; flex-direction: column; gap: 6px;
    padding: 8px; background: none; border: none; cursor: pointer;
    z-index: 201;
    width: 44px; height: 44px;
    align-items: flex-end;
    justify-content: center;
}
.burger span {
    display: block; width: 26px; height: 2.5px;
    background: var(--white);
    transition: transform .3s, background .3s;
    border-radius: 4px;
}
.burger span:last-child { width: 18px; }
#nav.solid .burger span, #nav.nav-dark .burger span { background: var(--black); }
.burger.open span { background: var(--white) !important; width: 26px !important; }
.burger.open span:first-child { transform: rotate(45deg) translate(6px,6px); }
.burger.open span:last-child  { transform: rotate(-45deg) translate(6px,-6px); }

/* Desktop Nav */
@media (min-width: 1025px) {
    .nav-links { display: flex; align-items: center; gap: 8px; }
    .burger { display: none; }
}

/* DRAWER */
.drawer {
    position: fixed;
    inset: 0;
    width: 100%;
    background: var(--black);
    z-index: 199;
    display: flex; align-items: center; justify-content: center;
    transform: translateX(100%);
    transition: transform .42s var(--ease);
}
.drawer.open { transform: translateX(0); }
.drawer ul { text-align: center; }
.drawer li { margin-bottom: 24px; }
.drawer a {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--white);
    letter-spacing: 0.02em;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}
.drawer a:hover { color: var(--accent); transform: scale(1.05); }

/* Specific style for the Prenota link (Teal) */
.drawer a.nav-teal { color: var(--accent); font-weight: 500; }


.drawer-bg {
    position: fixed; inset: 0; z-index: 198;
    background: rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transition: opacity .4s, visibility .4s;
}
.drawer-bg.open { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════
   DOT NAV
═══════════════════════════════════ */
.dotnav {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    transition: opacity .3s;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .3s, border-color .3s, transform .3s;
    position: relative;
}
.dot::after {
    content: attr(title);
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.dot:hover::after { opacity: 1; }
.dot.active, .dot:hover { background: var(--white); border-color: var(--white); transform: scale(1.3); }
/* on light sections */
.dot.dark-dot { border-color: rgba(0,0,0,0.35); }
.dot.dark-dot::after { color: rgba(0,0,0,0.5); }
.dot.dark-dot.active, .dot.dark-dot:hover { background: var(--black); border-color: var(--black); }

/* ─── FULLSCREEN SECTIONS (.fs) ─── */
body.is-fade-page { overflow: hidden; height: 100vh; height: 100svh; }

.fs {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 1s var(--ease), visibility 1s var(--ease);
    z-index: 10;
    overflow-y: auto;
    background: var(--white); /* Ensure background is solid */
    -webkit-overflow-scrolling: touch;
}

.fs.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 20;
}

/* ─── HERO ─── */
#hero { justify-content: flex-end; overflow: hidden; background: #000; }

/* ─── HERO SLIDER ─── */
.hero-slider {
    position: absolute; inset: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1.1); /* Slightly smaller than before for cleaner parallax */
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
    animation: slideZoom 12s linear infinite alternate;
}

@keyframes slideZoom {
    from { transform: scale(1.1) translateY(0); }
    to   { transform: scale(1.2) translateY(-20px); }
}

.hero-veil {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 2;
}





.hero-body {
    position: relative; z-index: 3;
    padding: 0 72px 80px;
}
.hero-sub {
    margin-top: 8px;
    font-size: clamp(1rem, 1.7vw, 1.3rem);
    font-weight: 300;
    color: var(--white);
    line-height: 1.55;
    animation: heroSlide 1s var(--ease) .6s both;
}
.hero-h1 { animation: heroSlide 1.1s var(--ease) .3s both; }
.hero-body .eyebrow { animation: heroSlide 1s var(--ease) .1s both; }
.hero-body .btn-white { animation: heroSlide 1s var(--ease) .9s both; }
@keyframes heroSlide {
    from { opacity:0; }
    to   { opacity:1; }
}

.hero-counter {
    position: absolute;
    right: 72px; bottom: 90px;
    z-index: 3;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--white);
}

.scroll-hint {
    position: absolute;
    bottom: 28px; left: 72px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: scrollBounce 2.2s ease-in-out infinite;
}
.scroll-line {
    display: block; width: 1px; height: 36px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6));
}
.scroll-txt {
    font-size: 0.65rem; letter-spacing: .18em; text-transform: uppercase;
    color: var(--white);
}
@keyframes scrollBounce {
    0%,100% { transform: translateY(0); opacity:1; }
    50%       { transform: translateY(7px); opacity:.5; }
}



/* ─── SPLIT (residence) ─── */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.split-text {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 100px 72px;
}
.split-content { max-width: 520px; }
.split-content h2 { margin-bottom: 24px; }
.split-content p  { max-width: 440px; }

.feat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
    margin: 28px 0 32px;
}
.feat-list li {
    font-size: 0.88rem; color: var(--mid); font-weight: 500;
    display: flex; align-items: center; gap: 8px;
}
.feat-list li::before {
    content: '';
    display: inline-block; width: 4px; height: 4px;
    background: var(--accent); border-radius: 50%; flex-shrink: 0;
}

.split-img {
    background-size: cover; background-position: center;
    position: relative;
    min-height: 400px;
}
.split-badge {
    position: absolute;
    bottom: 40px; right: 40px;
    background: var(--accent);
    color: var(--white);
    padding: 22px 26px;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 8px 28px rgba(0,153,163,.35);
}
.badge-n {
    display: block; font-family: var(--serif);
    font-size: 2.8rem; line-height: 1; font-weight: 400;
}
.badge-n sup { font-size: 1.2rem; vertical-align: super; }
.badge-l {
    display: block; font-size: 0.68rem; font-weight: 600;
    letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; opacity:.85;
}

/* ─── SERVIZI ─── */
.servizi-fs {
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 120px 72px 100px;
    max-width: 1300px;
    width: 100%;
}
.servizi-hd {
    margin-bottom: 52px;
}
.servizi-hd h2 { margin-top: 4px; }

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.srv {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    padding: 36px 32px;
    transition: background .3s, border-color .3s;
}
.srv:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(0,153,163,0.4);
}
.srv-wide {
    grid-column: span 3;
}
.srv-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    color: rgba(255,255,255,0.45);
    flex-shrink: 0;
    transition: color .3s;
}
.srv-icon svg {
    width: 100%;
    height: 100%;
}
.srv:hover .srv-icon {
    color: var(--accent);
}
.srv h4 {
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.srv p {
    font-size: 0.9rem;
    color: var(--white);
    line-height: 1.7;
}
.srv p strong { color: var(--white); font-weight: 600; }

/* ─── APPARTAMENTI ─── */
#appartamenti { position: relative; min-height: 100vh; }
.apt-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    z-index: 0;
}
.apt-veil {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.5); /* Black overlay */
    z-index: 1;
}
.apts-fs {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 120px 72px 80px;
    max-width: 1400px;
    width: 100%;
    color: var(--white);
}
.apts-fs h2 { color: var(--white); }
.apts-fs .label { color: var(--white); opacity: 0.8; }
.apts-fs h2 em { color: #00ebf2; } /* A bright teal for contrast on dark */

.apts-hd { margin-bottom: 48px; }
.apts-hd h2 { margin-top: 4px; }

.apts-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(400px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.apt {
    background: var(--white);
    display: flex; flex-direction: column;
    transition: box-shadow .3s;
}
.apt:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); z-index:2; }
.apt-feat { box-shadow: 0 6px 24px rgba(0,0,0,.1); position: relative; }

.apt-hd {
    padding: 300px 28px 24px;
    display: flex; align-items: flex-end; justify-content: space-between;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.apt-hd::after {
    content: '';
    position: absolute; inset: 0;
    background: none;
    z-index: 1;
}
.apt-t {
    font-family: var(--serif);
    font-size: 3.5rem; color: rgba(255,255,255,.95); font-weight: 400; line-height: 1;
    position: relative; z-index: 2;
}
.apt-favourite {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.3);
    color: var(--white);
    font-size: 0.65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 2px;
    z-index: 2;
}

.apt-bd { padding: 24px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.apt-bd h3 { margin-bottom: 16px; }
.apt-list { flex: 1; }
.apt-list li {
    font-size: 0.86rem; color: var(--mid);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 8px;
}
.apt-list li::before {
    content: ''; display: inline-block; width: 3px; height: 3px;
    background: var(--accent); border-radius: 50%; flex-shrink: 0;
}
.apt-list li:last-child { border-bottom: none; }

.apt-link {
    display: block; margin-top: 20px;
    font-size: 0.8rem; font-weight: 600; letter-spacing: .05em; color: var(--mid);
    transition: color .2s;
}
.apt-link:hover { color: var(--accent); }
.apt-link-a { color: var(--accent); }

/* ─── GALLERIA ─── */
#galleria { min-height: 100vh; }

.gallery-eyebrow {
    text-align: center;
    font-size: 0.68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 40px 0 28px;
    flex-shrink: 0;
}
.gallery-fs {
    flex: 1;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    min-height: 0;
}
.gf {
    position: relative; overflow: hidden; cursor: zoom-in;
}
.gf img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .55s var(--ease), filter .4s;
    filter: brightness(0.82);
}
.gf:hover img { transform: scale(1.06); filter: brightness(1); }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }

.gf-cap {
    position: absolute;
    bottom: 16px; left: 16px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    opacity: 0; transform: translateY(6px);
    transition: opacity .3s, transform .3s;
}
.gf:hover .gf-cap { opacity: 1; transform: translateY(0); }

/* LIGHTBOX */
#lb {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.96); z-index: 999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
    user-select: none;
}
#lb.open { opacity: 1; visibility: visible; }

.lb-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(.95);
    transition: transform .4s var(--ease);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
#lb.open #lb-img { transform: scale(1); }

#lb-caption {
    margin-top: 18px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

#lb-x {
    position: absolute; top: 30px; right: 30px;
    background: rgba(255,255,255,0.08); border: none; color: #fff;
    width: 50px; height: 50px; border-radius: 50%;
    font-size: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .25s, transform .2s;
    z-index: 1001;
}
#lb-x:hover { background: rgba(255,255,255,0.15); transform: scale(1.1); }

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.05);
    border: none;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, transform .2s, opacity .2s;
    z-index: 1000;
}
.lb-nav svg { width: 32px; height: 32px; opacity: 0.7; transition: opacity .2s; }
.lb-nav:hover { background: rgba(255,255,255,0.1); transform: translateY(-50%) scale(1.1); }
.lb-nav:hover svg { opacity: 1; }

#lb-prev { left: 40px; }
#lb-next { right: 40px; }

@media (max-width: 768px) {
    .lb-nav { width: 44px; height: 44px; }
    #lb-prev { left: 10px; }
    #lb-next { right: 10px; }
    #lb-x { top: 20px; right: 20px; width: 40px; height: 40px; font-size: 24px; }
}

/* ─── HOME GALLERY PICTURE WALL (MASONRY) ─── */
.gallery-grid-home {
    columns: 4 220px;
    column-gap: 12px;
}
.gh-item {
    break-inside: avoid;
    margin-bottom: 12px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}
.gh-item.gh-tall { aspect-ratio: 3 / 4; }
.gh-item.gh-wide { aspect-ratio: 16 / 10; }
.gh-item.gh-square { aspect-ratio: 1 / 1; }
.gh-item.gh-portrait { aspect-ratio: 9 / 14; }

.gh-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.05' y2='16.05'/%3E%3C/svg%3E") center no-repeat;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
    pointer-events: none;
}
.gh-item:hover::after {
    opacity: 1;
}
.gh-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease);
}
.gh-item:hover img {
    transform: scale(1.06);
}

@media (max-width: 768px) {
    .gallery-grid-home {
        columns: 2 140px;
        column-gap: 8px;
    }
    .gh-item {
        margin-bottom: 8px;
    }
}



/* ─── SPIAGGE ─── */
#spiagge { background: var(--bg); }

.beaches-fs {
    display: flex;
    flex-direction: column;
    margin: auto;
    padding: 80px 72px 60px;
    max-width: 1400px;
    width: 100%;
}
.beaches-intro {
    max-width: 560px;
    margin-bottom: 48px;
}
.beaches-intro h2 { margin-bottom: 14px; }
.beaches-intro p { max-width: 400px; }

.beaches-panels {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    min-height: 0;
}
.bp { display: flex; flex-direction: column; overflow: hidden; border-radius: 2px; }
.bp-img { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.bp-img img { width: 100%; height: 100%; transition: transform .6s var(--ease); }
.bp:hover .bp-img img { transform: scale(1.05); }
.bp-veil {
    position: absolute; inset: 0;
    background: none;
}
.bp-info { padding: 20px 4px 4px; flex-shrink: 0; }
.bp-dist {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--accent); margin-bottom: 4px;
}
.bp-info h3 { margin-bottom: 6px; }
.bp-info p { font-size: 0.88rem; }
 
/* ─── TESTIMONIALS ─── */
.testimonials-section {
    padding: 120px 0;
    background: var(--sand);
}
 
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}
 
.test-card {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s var(--ease);
}
 
.test-card:hover {
    transform: translateY(-5px);
}
 
.test-stars {
    color: #ffc107;
    font-size: 0.9rem;
    margin-bottom: 15px;
}
 
.test-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--mid);
    font-style: italic;
    margin-bottom: 25px;
}
 
.test-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
 
.test-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
 
.test-date {
    font-size: 0.75rem;
    color: var(--light);
}
 
@media (max-width: 768px) {
    .testimonials-section { padding: 80px 0; }
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
    .test-card { padding: 30px; }
}
 
/* ─── MAPPA ─── */
#mappa { min-height: 100vh; }
.split-map {
    position: relative;
    min-height: 400px;
    flex: 1;
}
.split-map iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}
#prenota { overflow: hidden; }
.contatti-wrapper {
    width: 100%;
}
.book-fs {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.book-img-side { position: relative; }
.book-bg-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.book-img-veil { position: absolute; inset: 0; background: none; }

.book-left-content {
    position: relative; z-index: 2;
    padding: 60px;
    display: flex; flex-direction: column; justify-content: center;
    height: 100%;
}
.book-card-shade {
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 48px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.1);
}
.book-left-content h2 em { color: var(--ocean-pale, #aeecef); }

.book-contacts { margin-top: 40px; display: flex; flex-direction: column; gap: 32px; }
.book-contact-item {
    display: flex; align-items: flex-start; gap: 14px;
    color: var(--white);
    transition: color .2s;
}
.book-contact-item:hover { color: var(--white); }
.bc-icon { font-size: 1.1rem; margin-top: 1px; flex-shrink: 0; }
.book-contact-item strong {
    display: block; font-size: 0.68rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--white); margin-bottom: 2px;
}
.book-contact-item span { font-size: 0.9rem; }

.book-form-side {
    background: var(--black);
    display: flex; align-items: center;
    padding: 100px 56px;
}
.book-form-inner { width: 100%; max-width: 440px; margin: auto; }
.form-title {
    font-family: var(--serif);
    font-size: 1.5rem; color: var(--white);
    margin-bottom: 28px; font-weight: 400;
}

/* FORM */
#form { display: flex; flex-direction: column; gap: 30px; }
.f-g { display: flex; flex-direction: column; }
.f-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.f-g label {
    font-size: 0.72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--white); margin-bottom: 12px;
}
.f-g input, .f-g select, .f-g textarea {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    padding: 12px 14px;
    color: var(--white);
    font-family: var(--sans); font-size: 0.95rem;
    outline: none;
    transition: all .25s ease;
    -webkit-appearance: none; appearance: none;
}
.f-g input::placeholder, .f-g textarea::placeholder { color: rgba(255,255,255,0.4); }
.f-g input:focus, .f-g select:focus, .f-g textarea:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.03);
}
.f-g select option { background: var(--black); }
.f-g textarea { resize: vertical; min-height: 68px; }

#btn-submit {
    margin-top: 8px; padding: 15px;
    background: var(--accent); color: var(--white);
    font-family: var(--sans); font-size: 0.84rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    border: none; border-radius: 2px; cursor: pointer;
    transition: background .2s, transform .2s;
}
#btn-submit:hover { background: var(--accent2); transform: translateY(-1px); }

/* PRICE BOX */
.price-summary {
    background: rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 24px;
    margin: 16px 0 24px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 12px;
}
.price-row.surcharge {
    color: var(--white);
    font-weight: 500;
}
.price-total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
    margin-top: 5px;
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--white);
}
.price-hint {
    font-size: 0.85rem;
    color: var(--white);
    text-align: center;
    font-style: italic;
    padding: 10px 0;
}
.price-note {
    font-size: 0.68rem;
    color: var(--white);
    margin-top: 12px;
}

/* ─── FOOTER ─── */
#footer {
    background: var(--black);
    color: var(--white);
    font-size: 0.87rem;
}
.ft-inner {
    max-width: 1100px; margin: 0 auto;
    padding: 64px 48px 52px;
    display: grid; grid-template-columns: 1.2fr 1fr 1.5fr; gap: 56px;
}
.ft-logo { height: 44px; width: auto; filter: brightness(0) invert(1); opacity: .65; margin-bottom: 14px; }
.ft-claim { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--white); line-height: 1.5; }
.ft-nav h4, .ft-contact h4 {
    font-size: 0.65rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--white); margin-bottom: 18px;
}
.ft-nav ul { display: flex; flex-direction: column; gap: 9px; }
.ft-nav a, .ft-contact a { transition: color .2s; }
.ft-nav a:hover, .ft-contact a:hover { color: var(--accent); }
.ft-contact p { margin-bottom: 7px; line-height: 1.55; }
.ft-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    max-width: 1100px; margin: 0 auto; padding: 18px 48px;
    display: flex; justify-content: space-between;
    font-size: 0.75rem; color: var(--white);
}
.ft-bottom a { transition: color .2s; }
.ft-bottom a:hover { color: rgba(255,255,255,.5); }

/* ─── TOAST / BTT ─── */
#toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--dark); color: var(--white);
    font-size: 0.85rem; font-weight: 500;
    padding: 12px 24px; border-radius: 2px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    z-index: 999; opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none; white-space: nowrap;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#btt {
    position: fixed; bottom: 24px; right: 28px;
    width: 42px; height: 42px;
    background: var(--black); color: var(--white);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 90;
    opacity: 0; visibility: hidden;
    transition: opacity .3s, visibility .3s, background .2s, transform .2s;
}
#btt.show { opacity: 1; visibility: visible; }
#btt:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

/* ── PRICE TABLE ── */
.price-list-wrapper {
    margin-bottom: 60px;
    padding: 0 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}
.price-list-wrapper h3 {
    margin-bottom: 24px;
    color: var(--black);
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
}
.table-responsive {
    overflow-x: auto;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    background: var(--white);
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    border: 1px solid rgba(0,0,0,0.05);
}
.price-table th, .price-table td {
    padding: 22px 24px;
    text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.price-table th {
    background: var(--sand);
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--dark);
    border-top: 2px solid var(--black);
}
.price-table th:nth-child(2),
.price-table th:nth-child(3),
.price-table td:nth-child(2),
.price-table td:nth-child(3) {
    text-align: right;
}
.price-table td { color: var(--dark); font-weight: 500; }
.price-table tr:nth-child(even) { background: rgba(0,0,0,0.015); }
.price-table tr.peak { background: rgba(0,153,163,0.05); }
.price-table tr.peak td { color: var(--black); font-weight: 600; }
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:hover td { background: rgba(0,153,163,0.08); }

.price-note {
    margin-top: 15px;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--mid);
}

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
.beaches-footer {
    padding: 40px 48px 80px;
    display: flex;
    justify-content: center;
    background: transparent;
}
.beaches-footer p {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--black);
}
.beaches-guide-link {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all .3s var(--ease);
    box-shadow: 0 4px 15px rgba(0,153,163,0.2);
}
.beaches-guide-link:hover {
    background: var(--accent2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,153,163,0.3);
}

/* ─── 07. CONDIZIONI ─── */
#condizioni {
    padding: 120px 0;
    background: var(--bg);
}
.condizioni-hd {
    margin-bottom: 60px;
    padding: 0 48px;
}
.condizioni-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 0 48px;
    max-width: 1400px;
    margin: 0 auto;
}
.cond-card {
    background: var(--white);
    padding: 48px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    position: relative;
}
.cond-tag {
    position: absolute;
    top: 24px; right: 24px;
    background: #fff5f5;
    color: #e03131;
    font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 2px;
}
.cond-card h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    color: var(--black);
    font-family: var(--serif);
}
.cond-list {
    list-style: none;
    padding: 0;
}
.cond-list li {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 14px;
    color: var(--black);
}
.cond-list strong { font-weight: 600; color: var(--accent); }
.alert-text { color: #d63031 !important; font-weight: 600; }

.cond-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 30px 0;
}

.cond-alt li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    padding-bottom: 10px;
}
.cond-alt li:last-child { border-bottom: none; }
.c-item { font-weight: 500; }
.c-price { font-weight: 600; color: var(--accent); }

.cond-note {
    margin-top: 30px;
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
}

@media (max-width: 900px) {
    .condizioni-grid { grid-template-columns: 1fr; padding: 0 24px; }
    .condizioni-hd { padding: 0 24px; }
}

@media (max-width: 1200px) {
    .split { grid-template-columns: 1fr 1fr; }
    .split-text { padding: 80px 48px; }
    .apts-fs { padding: 64px 40px; }
    .beaches-fs { padding: 64px 48px 48px; }
    .book-left-content { padding: 64px 44px; }
    .book-form-side { padding: 48px 40px; }
    .price-list-wrapper { padding: 0 40px; }
}

@media (max-width: 1024px) {
    .servizi-fs { padding: 56px 40px; }
    .servizi-grid { grid-template-columns: repeat(2, 1fr); }
    .srv-wide { grid-column: span 2; }

    /* SPLIT → stack  */
    .split { grid-template-columns: 1fr; }
    .split-img { min-height: 45vh; order: -1; }
    .split-badge { bottom: 16px; top: auto; right: 16px; left: auto; padding: 16px 20px; }
    .split-text { padding: 56px 40px; }

    /* APTS → stacked (scrollable)  */
    .apts-row { grid-template-columns: 1fr; width: 90%; max-width: none; margin: 0 auto; }
    .apts-fs { padding: 56px 0; }
    .apts-hd { width: 90%; margin: 0 auto 48px; }

    /* GALLERY → 2 col  */
    .gallery-fs { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3,1fr); }
    .g-tall { grid-row: span 1; }
    .g-wide { grid-column: span 2; }

    /* BEACHES → 1 col  */
    .beaches-panels { grid-template-columns: 1fr; }
    .beaches-fs { padding: 56px 40px 40px; }

    /* BOOK → stack  */
    .book-fs { grid-template-columns: 1fr; }
    .book-img-side { min-height: 40vh; }
    .book-left-content { padding: 48px 32px; }
    .book-form-side { padding: 48px 32px; }

    .ft-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
    .ft-brand { grid-column: span 2; }

    .hero-body { padding: 0 40px 72px; }
    .hero-counter { right: 40px; bottom: 76px; }
    .scroll-hint { left: 40px; }
    .hero-strip span { padding: 0 16px; }
}

/* ─── BEACHES GALLERY (servizi-territorio.html) ─── */
.beaches-gallery-section { padding: 120px 0; background: var(--white); }
.gallery-hd { max-width: 800px; margin: 0 auto 64px; text-align: center; }
.gallery-hd p { font-size: 1.1rem; color: var(--mid); margin-top: 16px; }

.beaches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.beach-card {
    background: var(--white);
    transition: transform .3s var(--ease);
}
.beach-card:hover { transform: translateY(-8px); }

.bc-img {
    height: 320px;
    background-size: cover;
    background-position: center;
    border-radius: 2px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.bc-info { position: relative; padding-left: 56px; }
.bc-num {
    position: absolute; left: 0; top: 0;
    font-family: var(--serif); font-size: 1.8rem;
    color: var(--accent); font-style: italic; opacity: .4;
}
.bc-info h3 { margin-bottom: 10px; font-size: 1.25rem; }
.bc-info p { font-size: 0.92rem; line-height: 1.6; color: var(--mid); }

.hide-mobile { display: block; }
.show-mobile { display: none; }

/* MOBILE PRICE CARDS */
.price-cards-mobile { padding-top: 10px; }
.p-card {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}
.pc-head {
    font-weight: 700; color: var(--black);
    margin-bottom: 14px; border-bottom: 1px solid rgba(0,0,0,0.04);
    padding-bottom: 10px; font-size: 1rem;
    font-family: var(--serif);
}
.pc-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.9rem; color: var(--dark);
    margin-bottom: 8px;
}
.pc-row strong { color: var(--accent); font-weight: 700; }
.p-card.peak { 
    border-left: 4px solid var(--black); 
    background: rgba(0,153,163,0.02); 
    border-top: 1px solid rgba(0,153,163,0.1);
}
.pc-note { font-size: 0.78rem; color: var(--light); font-style: italic; margin-top: 10px; }

@media (max-width: 768px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: block !important; }
}

@media (max-width: 768px) {
    .beaches-gallery-section { padding: 80px 0; }
    .beaches-grid { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
    .bc-img { height: 260px; }
    .gallery-hd { padding: 0 24px; margin-bottom: 40px; }
    .gallery-hd h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    #nav { padding: 0 20px; }
    .nav-links { display: none; }
    .burger { display: flex; }
    .dotnav { display: none; }

    .hero-body { padding: 0 24px 52px; }
    .hero-counter { display: none; }
    .hero-strip { flex-wrap: wrap; padding: 10px 16px; justify-content: flex-start; }
    .hs-sep { display: none; }
    .hero-strip span { padding: 4px 10px; font-size: .75rem; }

    .split-text { padding: 40px 24px; }
    .feat-list { grid-template-columns: 1fr; }

    .apts-fs { padding: 40px 0; }
    .price-list-wrapper { padding: 0 24px; }
    .price-table th, .price-table td { padding: 12px 16px; font-size: 0.85rem; }

    .gallery-fs { grid-template-columns: 1fr 1fr; grid-template-rows: 33vh 33vh; height: auto; }
    .g-wide { grid-column: span 2; }

    .servizi-fs { padding: 40px 20px; }
    .servizi-grid { grid-template-columns: 1fr; }
    .srv-wide { grid-column: auto; }

    .beaches-fs { padding: 40px 20px 32px; }
    .beaches-intro { margin-bottom: 28px; }

    .book-left-content { padding: 36px 20px; }
    .book-form-side { padding: 36px 20px; }
    .f-row2 { grid-template-columns: 1fr; }

    .ft-inner { grid-template-columns: 1fr; padding: 44px 24px 36px; }
    .ft-brand { grid-column: auto; }
    .ft-bottom { flex-direction: column; gap: 6px; text-align: center; padding: 14px 24px; }
}

/* ── COOKIE BANNER ── */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    width: calc(100% - 60px);
    max-width: 1100px;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    padding: 28px 40px;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s, transform 0.6s var(--ease);
}
.cookie-banner.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.cb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.cb-text h3 {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--black);
    margin-bottom: 6px;
    font-style: italic;
}
.cb-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--mid);
    max-width: 720px;
}
.cb-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
}
.btn-cb-primary {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    box-shadow: 0 4px 15px rgba(0, 153, 163, 0.2);
}
.btn-cb-primary:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 153, 163, 0.3);
}
.btn-cb-secondary {
    background: rgba(0, 153, 163, 0.05);
    color: var(--black);
    border: 1px solid rgba(0, 153, 163, 0.2);
    padding: 14px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.btn-cb-secondary:hover {
    background: rgba(0, 153, 163, 0.1);
    border-color: var(--black);
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .cb-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
    .cb-text p {
        max-width: 100%;
    }
    .cb-actions {
        width: 100%;
    }
    .cb-actions button {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 20px;
        width: calc(100% - 40px);
        padding: 24px;
        border-radius: 12px;
    }
    .cb-text h3 {
        font-size: 1.2rem;
    }
    .cb-text p {
        font-size: 0.8rem;
    }
    .btn-cb-primary, .btn-cb-secondary {
        padding: 12px 20px;
        font-size: 0.75rem;
    }
}
