/* =========================================================
   HOME — HERO
   ========================================================= */

.cdm-site-main {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.cdm-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cdm-hero-video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.cdm-section-image-bg {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;
    object-fit: cover;
    object-position: center;

    pointer-events: none;
    user-select: none;
}




.cdm-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(0, 25, 40, 0.16);
}

.cdm-hero-content {
    position: relative;
    z-index: 3;
    width: min(90%, 980px);
    margin: 0 auto;
    padding: 130px 20px 90px;
    color: #ffffff;
    text-align: center;
}

.cdm-hero h1 {
    max-width: 920px;
    margin: 0 auto 26px;
    color: #102033;
    text-shadow: 0 8px 28px rgba(255, 255, 255, 0.08);
}

.cdm-description {
    max-width: 900px;
    margin: 0 auto 42px;
    color: #ffffff;
    font-size: clamp(18px, 1.6vw, 22px);
    line-height: 1.6;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   IMPORTANTE - NAVETTA / SIM LOCALE
   ========================================================= */
.cdm-important-section {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0;
    padding: clamp(190px, 14vw, 240px) 24px clamp(80px, 8vw, 120px);
    background: #f7f4ef;
    overflow: hidden;
}

.cdm-important-section::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: 40px;
    right: -210px;
    border-radius: 50%;
    background: rgba(155, 45, 124, 0.055);
    pointer-events: none;
}

.cdm-important-container {
    position: relative;
    z-index: 1;
    width: min(100%, 1080px);
    margin: 0 auto;
    text-align: center;
}

.cdm-important-section .cdm-eyebrow {
    margin: 0 0 10px;
    color: #9b2d7c;
}

.cdm-important-title {
    margin: 0 0 42px;
    color: #102033;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.05;
}

.cdm-important-content {
    width: min(100%, 900px);
    margin: 0 auto;
}

.cdm-important-main {
    margin: 0;
    padding: clamp(32px, 4vw, 48px);
    border: 1px solid rgba(16, 32, 51, 0.06);
    border-radius: 28px;
    background: #ffffff;
    color: #25374a;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.75;
    text-align: left;
    box-shadow: 0 18px 50px rgba(16, 32, 51, 0.09);
}

.cdm-important-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    margin: 22px 0 0;
    padding: 24px 28px;
    border: 1px solid rgba(155, 45, 124, 0.10);
    border-left: 5px solid #9b2d7c;
    border-radius: 18px;
    background: #ffffff;
    color: #25374a;
    text-align: left;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.65;
    box-shadow: 0 12px 34px rgba(16, 32, 51, 0.055);
}

.cdm-important-note strong {
    color: #9b2d7c;
    white-space: nowrap;
}

@media (max-width: 1024px) {
    .cdm-important-section {
        padding-top: 160px;
        padding-bottom: 90px;
    }
}

@media (max-width: 768px) {
    .cdm-important-section {
        padding: 125px 18px 72px;
    }

    .cdm-important-title {
        margin-bottom: 28px;
        font-size: clamp(38px, 12vw, 52px);
    }

    .cdm-important-main {
        padding: 26px 22px;
        border-radius: 22px;
        font-size: 17px;
        line-height: 1.7;
    }

    .cdm-important-note {
        display: block;
        margin-top: 18px;
        padding: 22px;
        border-radius: 16px;
        font-size: 16px;
    }

    .cdm-important-note strong {
        display: block;
        margin-bottom: 7px;
    }
}

@media (max-width: 480px) {
    .cdm-important-section {
        padding-top: 112px;
    }
}


/* =========================================================
   HOME — DIVING / SAFARI / SUB
   ========================================================= */
.cdm-home-programs {
    position: relative;
    width: 100%;
    padding: clamp(88px, 9vw, 140px) 24px;
    overflow: hidden;
}
.cdm-home-programs-diving,
.cdm-home-programs-sub { background: #f7f4ef; }
.cdm-home-programs-safari,
.cdm-home-programs-boat { background: #ffffff; }
.cdm-home-programs-container {
    width: min(100%, 1180px);
    margin: 0 auto;
    text-align: center;
}
.cdm-home-programs .cdm-eyebrow { margin: 0 0 10px; color: #9b2d7c; }
.cdm-home-programs-title {
    margin: 0 0 clamp(38px, 5vw, 62px);
    color: #102033;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1;
    letter-spacing: .035em;
}
.cdm-destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.cdm-destination-card {
    min-height: 112px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16,32,51,.07);
    border-radius: 24px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 16px 42px rgba(16,32,51,.075);
    color: #25374a;
    font-size: clamp(16px, 1.25vw, 19px);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: .025em;
}
.cdm-home-programs-safari .cdm-destination-card { background: #f7f4ef; }
.cdm-sub-note {
    width: min(100%, 820px);
    margin: 28px auto 0;
    padding: 22px 26px;
    border-left: 5px solid #9b2d7c;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(16,32,51,.06);
    color: #25374a;
    font-size: clamp(16px, 1.2vw, 19px);
    line-height: 1.6;
    text-align: left;
}
.cdm-sub-note strong { color: #9b2d7c; margin-right: 5px; }

.cdm-boat-message {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(16,32,51,.07);
    border-radius: 28px;
    background: #f7f4ef;
    box-shadow: 0 16px 42px rgba(16,32,51,.075);
    color: #25374a;
    font-size: clamp(18px, 1.5vw, 22px);
    line-height: 1.75;
    text-align: center;
}
.cdm-boat-message p { margin: 0; }

.cdm-wave-programs { position: relative; z-index: 3; }

@media (max-width: 900px) {
    .cdm-destinations-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .cdm-home-programs { padding: 82px 22px; }
}
@media (max-width: 600px) {
    .cdm-home-programs { padding: 68px 18px; }
    .cdm-home-programs-title { margin-bottom: 32px; font-size: clamp(42px, 14vw, 58px); }
    .cdm-destinations-grid { grid-template-columns: 1fr; gap: 13px; }
    .cdm-destination-card { min-height: 82px; padding: 19px 16px; border-radius: 19px; font-size: 16px; }
    .cdm-sub-note { margin-top: 20px; padding: 20px; border-radius: 16px; font-size: 16px; }
    .cdm-boat-message { padding: 24px 20px; border-radius: 20px; font-size: 17px; line-height: 1.65; }
}
