﻿
@font-face {
    font-family: 'Ringside';
    src: url('/fonts/Ringside-RegularBook.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Ringside';
    src: url('/fonts/Ringside-RegularBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}



/* FONT PER TITOLI stile SCRIPT */
@font-face {
    font-family: 'ITC Garamond Narrow';
    src: url('/fonts/itcgaramondstd-bknarrow.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ITC Garamond Narrow';
    src: url('/fonts/itcgaramondstd-bknarrowita.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}



@media (min-width: 1200px) {
    .container {
        max-width: 1280px !important; /* invece di 1140px */
    }
}

/* Uso globale del font */
body {
    font-family: Ringside, "Ringside Fallback", sans-serif;
    font-weight: 400;
    color: #191919;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}


.titolo {
    font-family: "ITC Garamond Narrow", "ITC Garamond Narrow Fallback", serif;
    font-weight: 400;
}

strong, b, .bold {
    font-weight: 700;
}




#footer {
    background-color: #d31710 !important;
}

/* Regole SOLO mobile */
@media (max-width: 767.98px) {
    .img-80p {
        max-width: 80%;
        width: 80%;
    }
}


.text-rosso {
    color: #d31710;
}

.text-blu {
    color: #314999;
}

.text-white {
    color: #ffffff !important;
}


.btn-nero {
    background-color: #000000;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.25em;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

    .btn-nero:hover {
        transform: translateY(2px);
        text-decoration: none;
        color: #ffffff;
        background-color: #333333;
    }

.btn-rosso {
    background-color: #a5010b;
    color: #ffffff;
    font-weight: bold;
    font-size: 1.25em;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s;
}

    .btn-rosso:hover {
        transform: translateY(2px);
        text-decoration: none;
        color: #ffffff;
    }

.logo-footer {
    height: 60px !important;
}

.text-footer {
    color: white;
    font-size: 1em;
}

a.nav-footer {
    color: black;
    font-size: 1em;
    padding: 0px 10px;
    font-weight: bold;
}


.lh12 {
    line-height: 1.2;
}

.ucase {
    text-transform: uppercase;
}

.checkbox-1x {
    transform: scale(1.5);
    -webkit-transform: scale(1.5);
}

.checkbox-2x {
    transform: scale(2);
    -webkit-transform: scale(2);
}

.carousel-inner {
    height: 550px;
    overflow: hidden;
}

.carousel-item {
    height: 550px !important;
    max-height: 550px !important;
    overflow: hidden;
}

    .carousel-item img.slide-img {
        width: 100%;
        height: 550px !important;
        object-fit: cover;
        object-position: center center;
    }

.carousel-inner,
.carousel-item {
    height: 550px !important;
    overflow: hidden;
}
/* Mobile: sotto il breakpoint md di Bootstrap (768px) — SEMPRE quadrato */
@media (max-width: 767.98px) {
    .carousel-inner {
        height: auto !important;
    }

    .carousel-item {
        height: auto !important;
        aspect-ratio: 1 / 1;
    }

        .carousel-item img.slide-img {
            height: auto !important;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            object-position: center center;
        }
}


.step-card {
    text-align: center;
}

.step-card__num {
    padding: 40px;
    text-align: center;
}

.img-card {
    width: 160px;
    height: 160px;
    max-width: 160px;
    display: inline-block;
    opacity: 1;
}

.step-title {
    font-weight: 700;
    color: black !important;
    font-family: 'ITC Garamond Narrow';
}

.step-hr {
    width: 75%;
    margin: 0 auto;
    margin-bottom: 0.5em;
    margin-top: 0.5em;
}


.titolo-lilly-style {
    font-family: "ITC Garamond Narrow", "ITC Garamond Narrow Fallback", serif;
    font-weight: 400;
    font-size: 70px;
    line-height: 1.1;
}

@media (max-width: 991.98px) {
    .titolo-lilly-style {
        font-size: 50px;
    }
}

@media (max-width: 575.98px) {
    .titolo-lilly-style {
        font-size: 30px;
    }
}




/* =====================================================================
   PULSANTE TORNA SU - basso destra, comparsa dopo 150px di scroll
   ===================================================================== */
.floating-btn {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

    .floating-btn.show {
        display: flex;
    }

    .floating-btn:hover {
        transform: translateY(-2px);
        text-decoration: none;
    }

#backToTopFloat {
    background-color: #a5010b;
    color: #ffffff;
}

    #backToTopFloat:hover {
        background-color: #7a0008;
        color: #ffffff;
    }

/* =====================================================================
   PULSANTE LINGUA - alto destra, SEMPRE visibile (indipendente dallo scroll)
   ===================================================================== */
#langSwitchFloat {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}

    #langSwitchFloat:hover {
        transform: translateY(-2px);
        background-color: #333333;
        color: #ffffff;
        text-decoration: none;
    }


.bgFooter {
    background-color: #d31710 !important;
}

.bgcolor1 {
    background-color: #fbf5f4 !important;
}



/*
Testo titoli ("Non smetteremo di impegnarci" / "finché non starai meglio")	rgb(25, 25, 25)	#191919
SFONDO  Sfondo sezione "Non solo farmaci..."	rgb(251, 245, 244)	#FBF5F4
ROSSO Link "Consulta gli studi clinici" (normale e hover)	rgb(211, 23, 16)	#D31710
ROSSO Sfondo footer	rgb(211, 23, 16)	#D31710
*/


/* === Calendario Tram Experience — stile giorni === */

/* Giorni DISPONIBILI (con corsa prenotabile): rosso, testo bianco */
#ui-datepicker-div .giorno-corsa-attivo a {
    background: #92e86f !important;
    color: #333333 !important;
    border-color: #92e86f !important;
}

/* OGGI: nero, testo bianco — vince sempre, anche se oggi è anche disponibile */
#ui-datepicker-div .ui-datepicker-today a,
#ui-datepicker-div .ui-datepicker-today span {
    background: #2d7d0c !important;
    color: #ffffff !important;
    border-color: #2d7d0c !important;
}

/* Tutti gli altri giorni (non disponibili, non oggi): si mimetizzano con lo sfondo bianco */
#ui-datepicker-div td.ui-datepicker-unselectable:not(.ui-datepicker-today) span,
#ui-datepicker-div td:not(.giorno-corsa-attivo):not(.ui-datepicker-today) a {
    background: #ffffff !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
}



/* ===================== COOKIE BANNER ===================== */
#cookieBannerOverlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3000;
    display: none;
}

#cookieBanner {
    background: #efefef;
    border-top: 3px solid #d31710;
    padding: 20px 24px;
    box-shadow: 0 -2px 12px rgba(0,0,0,.15);
}

    #cookieBanner .cookie-text {
        font-size: 0.9em;
        color: #191919;
    }

    #cookieBanner a {
        color: #d31710;
        text-decoration: underline;
    }

    #cookieBanner .btn {
        font-weight: bold;
        border-radius: 50px;
        padding: 0.5rem 1.25rem;
        margin: 4px;
    }

.btn-cookie-refuse {
    background: #ffffff;
    color: #191919;
    border: 1px solid #191919;
}

.btn-cookie-personalize {
    background: #ffffff;
    color: #d31710;
    border: 1px solid #d31710;
}

.btn-cookie-acceptall {
    background: #000000;
    color: #ffffff;
}

    .btn-cookie-acceptall:hover {
        background: #333333;
        color: #fff;
    }

/* Pannello personalizza (modal-like) */
#cookiePanelOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    z-index: 3100;
    display: none;
}

#cookiePanel {
    background: #ffffff;
    max-width: 560px;
    margin: 5% auto;
    border-radius: 12px;
    padding: 28px;
    max-height: 85vh;
    overflow-y: auto;
}

    #cookiePanel h5 {
        color: #d31710;
        font-weight: 700;
    }

.cookie-category {
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
}

    .cookie-category:last-of-type {
        border-bottom: none;
    }

    .cookie-category .cat-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

.cookie-status-label {
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
}

.cookie-status-always {
    color: #888;
}

.cookie-status-on {
    color: #1e8a4c;
}

.cookie-status-off {
    color: #c0392b;
}

/* Toggle switch semplice */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 24px;
    flex-shrink: 0;
}

    .cookie-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .cookie-switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        border-radius: 24px;
        transition: .2s;
    }

        .cookie-switch .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            border-radius: 50%;
            transition: .2s;
        }

    .cookie-switch input:checked + .slider {
        background-color: #a5010b;
    }

        .cookie-switch input:checked + .slider:before {
            transform: translateX(22px);
        }

    .cookie-switch input:disabled + .slider {
        background-color: #ccc;
        opacity: .6;
        cursor: not-allowed;
    }
