
/* ==========================================================================
   Hero Video Txt Col — stile allineato al prototipo (sezione .hero)
   ========================================================================== */

.hero-video-txt-col {
    background: #0a0a0a;
    color: #ffffff;
    border-bottom: 1px solid #202020;
    overflow: hidden;
}

/* il container interno usa .bg-dark del tema: uniformiamo al fondale del prototipo */
.hero-video-txt-col > .container-fluid.bg-dark {
    background-color: #0a0a0a !important;
}

/* --- Eyebrow (prototipo .eyebrow) --- */
.hero-video-txt-col .col-txt .eyebrow {
    display: block;
    font-family: "League Spartan", sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* --- Title lockup (prototipo .hero-title-lockup) --- */
.hero-video-txt-col .title-lockup {
    border-left: 6px solid #ffffff;
    padding-left: clamp(1rem, 1.7vw, 1.75rem);
    margin: 0 0 2rem;
}

.hero-video-txt-col .title-lockup h1 {
    margin: 0;
    font-size: clamp(4.25rem, 5.8vw, 6.1rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.hero-video-txt-col .title-lockup h1 span {
    display: block;
}

/* --- Subtitle (prototipo .hero-subtitle) --- */
.hero-video-txt-col .col-txt .subtitle {
    max-width: 610px;
    margin: 0 0 1.5rem;
    font-size: clamp(1.225rem, calc(2vw - 2px), 1.675rem);
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* --- Testo (prototipo .hero-text) --- */
.hero-video-txt-col .col-txt .lead {
    max-width: 610px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.65;
}

.hero-video-txt-col .col-txt .lead p {
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    margin-bottom: 0;
}

.hero-video-txt-col .col-txt .lead p + p {
    margin-top: 1rem;
}

.hero-video-txt-col .col-txt .lead strong {
    color: #ffffff;
    font-weight: 400;
}

/* --- CTA (prototipo .btn-primary / .btn-outline su hero) --- */
.hero-video-txt-col .wrap-btn {
    margin-top: 2.5rem !important;
}

.hero-video-txt-col .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    font-family: "League Spartan", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-radius: 4px;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-video-txt-col .btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #119199;
    --bs-btn-border-color: #119199;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #0c777d;
    --bs-btn-hover-border-color: #0c777d;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #0c777d;
    --bs-btn-active-border-color: #0c777d;
    --bs-btn-disabled-color: #ffffff;
    --bs-btn-disabled-bg: #119199;
    --bs-btn-disabled-border-color: #119199;
}

/* .btn-secondary-outline non esiste nel DS del tema: versione coerente
   con .btn-outline del prototipo (su fondo scuro) */
.hero-video-txt-col .btn-secondary-outline {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
}

.hero-video-txt-col .btn-secondary-outline:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #0a0a0a;
}

/* --- Media (prototipo .hero-media) --- */
.hero-video-txt-col .col-img {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-video-txt-col .col-img .wrap-media {
    display: block;
    width: min(100%, 520px);
    aspect-ratio: 4 / 5;
    margin-left: auto;
    background: #ffffff;
    overflow: hidden;
}

/* reset quando .wrap-media è un <button> (trigger del modal) */
.hero-video-txt-col .col-img button.wrap-media {
    padding: 0;
    border: none;
    border-radius: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    appearance: none;
}

.hero-video-txt-col .col-img button.wrap-media:focus-visible {
    outline: 3px solid #119199;
    outline-offset: 5px;
}

.hero-video-txt-col .col-img .wrap-media picture,
.hero-video-txt-col .col-img .wrap-media img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-video-txt-col .col-img .wrap-media img {
    object-fit: cover;
    object-position: center bottom;
    filter: brightness(0.9);
    transition: filter 0.4s ease;
}

.hero-video-txt-col .col-img .wrap-media:hover img {
    filter: brightness(1);
}

/* --- Play overlay (prototipo .hero-media__play, mostrato se è valorizzato il campo video) --- */
.hero-video-txt-col .col-img .play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    z-index: 2;
}

.hero-video-txt-col .col-img .wrap-media:hover .play {
    background: #119199;
    border-color: #119199;
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-video-txt-col .col-img .play::after {
    content: '';
    border-left: 12px solid #ffffff;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    margin-left: 3px;
}

/* ==========================================================================
   Modal video (Bootstrap) — stile coerente col prototipo
   ========================================================================== */

.hero-video-txt-col .modal-hero-video .modal-content {
    background: #0a0a0a;
    border: 1px solid #202020;
    border-radius: 4px;
}

.hero-video-txt-col .modal-hero-video .ratio {
    border-radius: 3px;
    overflow: hidden;
}

.hero-video-txt-col .modal-hero-video .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    margin: 0;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.5) rgba(0, 0, 0, 0.5) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414'/%3e%3c/svg%3e") center / 1em no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.25s ease;
}

.hero-video-txt-col .modal-hero-video .btn-close:hover {
    background-color: #119199;
    border-color: #119199;
    transform: scale(1.1);
}

/* ==========================================================================
   Responsive (allineato alle media query del prototipo)
   ========================================================================== */

@media (max-width: 991.98px) {
    .hero-video-txt-col .title-lockup {
        border-left-width: 5px;
    }

    .hero-video-txt-col .title-lockup h1 {
        font-size: clamp(2.9rem, 12.5vw, 4.25rem);
    }

    .hero-video-txt-col .col-img .wrap-media {
        margin: 0 auto;
    }
}

@media (max-width: 767.98px) {
    .hero-video-txt-col .col-txt .subtitle {
        font-size: 1.225rem;
    }

    .hero-video-txt-col .col-txt .lead,
    .hero-video-txt-col .col-txt .lead p {
        font-size: 1rem;
    }
}
