/* ==================================================
   MARE A VELA - HOME PAGE CSS
   Versione corretta Bootstrap compatibile
================================================== */


/* =========================
   BASE
========================= */


body {

    font-family: "Arial", sans-serif;
    color: #333;
    line-height: 1.6;
    background:#ffffff;

}



img {

    max-width:100%;
    height:auto;

}



a {

    text-decoration:none;

}



.contenitore {

    width:90%;
    max-width:1200px;
    margin:auto;

}





/* =========================
   HERO
========================= */


.hero {

    height:calc(100vh - 90px);

    min-height:600px;

    position:relative;

    overflow:hidden;

}



.hero > img {

    width:100%;

    height:100%;

    object-fit:cover;

    object-position:center center;

}



.hero-overlay {

    position:absolute;

    top:50%;

    left:50%;

    transform:translate(-50%, -50%);

    width:90%;

    max-width:850px;

    text-align:center;

    color:white;

    text-shadow:0 2px 8px rgba(0,0,0,0.5);

}



.hero-overlay h1 {

    color:white !important;

    font-size:60px;

    font-weight:700;

    line-height:1.1;

    margin-bottom:25px;

    text-shadow:0 3px 12px rgba(0,0,0,0.55);

}



.hero-overlay p {

    color:white !important;

    font-size:24px;

    font-weight:400;

    margin-bottom:35px;

    text-shadow:0 2px 8px rgba(0,0,0,0.55);

}





/* =========================
   BOTTONI
========================= */


.btn {

    display:inline-block;

    padding:14px 35px;

    background:#004080;

    color:white !important;

    border-radius:5px;

    font-size:16px;

    text-transform:uppercase;

    letter-spacing:1px;

    transition:.3s;

}



.btn:hover {

    background:#0066aa;

}



.btn-secondario {

    display:inline-block;

    margin-top:20px;

    padding:12px 28px;

    border:2px solid #004080;

    color:#004080 !important;

    border-radius:5px;

    transition:.3s;

}



.btn-secondario:hover {

    background:#004080;

    color:white !important;

}





/* =========================
   INTRO
========================= */


.intro {

    padding:80px 0;

    text-align:center;

}



.intro h2 {

    color:#004080;

    font-size:38px;

    margin-bottom:25px;

}



.intro p {

    max-width:850px;

    margin:10px auto;

    font-size:18px;

}





/* =========================
   CHI SIAMO
========================= */


.chi-siamo {

    padding:80px 0;

    background:#f5f8fa;

}



.due-colonne {

    display:flex;

    align-items:center;

    gap:50px;

}



.testo {

    flex:1;

}



.testo h2 {

    color:#004080;

    font-size:36px;

    margin-bottom:25px;

}



.testo p {

    margin-bottom:15px;

    font-size:17px;

}



.immagine {

    flex:1;

}



.immagine img {

    border-radius:15px;

}





/* =========================
   ATTIVITA'
========================= */


.attivita {

    padding:90px 0;

}



.attivita h2 {

    text-align:center;

    color:#004080;

    font-size:38px;

    margin-bottom:45px;

}



.cards {

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:30px;

}



.card {

    background:white;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);

    padding-bottom:25px;

}



.card img {

    width:100%;

    height:220px;

    object-fit:cover;

}



.card h3 {

    color:#004080;

    font-size:24px;

    padding:20px;

}



.card p {

    padding:0 20px;

}



.card a {

    display:inline-block;

    margin:20px;

    color:#0099cc;

    font-weight:bold;

}





/* =========================
   CROCIERE
========================= */


.crociere-home {

    padding:90px 0;

    background:#f5f8fa;

}



.crociere-home h2 {

    text-align:center;

    color:#004080;

    font-size:38px;

    margin-bottom:15px;

}



.sottotitolo {

    text-align:center;

    font-size:18px;

    margin-bottom:45px;

}



.crociere-grid {

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:35px;

}



.crociera-box {

    background:white;

    border-radius:16px;

    overflow:hidden;

    box-shadow:0 5px 20px rgba(0,0,0,0.08);

}



.crociera-box img {

    width:100%;

    height:300px;

    object-fit:cover;

}



.crociera-testo {

    padding:25px;

}



.crociera-testo h3 {

    color:#004080;

    font-size:26px;

    margin-bottom:15px;

}



.crociera-testo a {

    color:#0099cc;

    font-weight:bold;

}

/* =========================
   DIARI DI BORDO
========================= */


.diari-home {

    padding:100px 0;

}



.diari-home h2 {

    text-align:center;

    color:#004080;

    font-size:38px;

    margin-bottom:20px;

}



.diario-box {

    display:flex;

    align-items:center;

    gap:40px;

    background:#f5f8fa;

    border-radius:15px;

    padding:30px;

}



.diario-box > div:first-child {

    flex:0 0 320px;

}

.diario-box > div:first-child img {

    width:320px !important;

    height:320px !important;

    max-width:none !important;

    object-fit:cover;

    border-radius:16px;

    display:block;

}


.diario-box h3 {

    color:#004080;

    font-size:28px;

}


.etichetta-diario {

    display:inline-block;

    font-size:14px;

    color:#0099cc;

    font-weight:bold;

    margin-bottom:12px;

    text-transform:uppercase;

}

/* =========================
   TESTIMONIANZE
========================= */


.testimonianze {

    padding:80px 0;

    background:#004080;

    color:white;

    text-align:center;

}



.testimonianze h2 {

    font-size:36px;

    margin-bottom:35px;

    color:#5FD3D8;;

}



/* CONTENITORE CAROSELLO */

.testimonianze-wrapper {
    display:flex;
    align-items:center;
    position:relative;
    width:100%;
    overflow:hidden;
}


/* AREA SCORRIMENTO */

.testimonianze-scroll {

    display:flex;

    gap:30px;

    overflow:hidden;

    flex:1;

}



/* SINGOLA TESTIMONIANZA */

.quote {

    flex:0 0 calc(25% - 23px);

}



.quote p {

    font-size:22px;

    font-style:italic;

    line-height:1.5;

}



.quote span {

    display:block;

    margin-top:20px;

    font-size:16px;

}



/* FRECCE */

.freccia-testimonianze {

    background:none;

    border:none;

    color:white;

    font-size:45px;

    line-height:1;

    cursor:pointer;

    padding:10px;

}



.freccia-testimonianze:hover {

    opacity:0.7;

}



/* =========================
   MOBILE
========================= */


@media(max-width:768px) {


    .testimonianze {

        padding:60px 0;

    }



    .testimonianze h2 {

        font-size:30px;

    }



    .testimonianze-scroll {

        overflow-x:auto;

        scroll-snap-type:x mandatory;

        -webkit-overflow-scrolling:touch;

        gap:25px;

        padding:10px 5% 20px;

    }



    .testimonianze-scroll::-webkit-scrollbar {

        display:none;

    }



    .quote {

        flex:0 0 90%;

        scroll-snap-align:center;

    }



    .quote p {

        font-size:20px;

    }



    .freccia-testimonianze {

        display:none;

    }

}

/* =========================
   CALL TO ACTION
========================= */

.call-to-action {

    padding:90px 0;

    text-align:center;

    color:white;

    background-image:
    linear-gradient(
        rgba(0,64,128,0.75),
        rgba(0,64,128,0.75)
    ),
    url("../images/home/cta-mare.jpg");

    background-size:cover;

    background-position:center;

}


.call-to-action h2 {

    font-size:42px;

    margin-bottom:20px;

}


.call-to-action p {

    font-size:22px;

    margin-bottom:35px;

}

/* =========================
   FOOTER
========================= */

.footer {

    background:#002b55;

    color:white;

    padding:60px 0 20px;

}



.footer-grid {

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:40px;

}



/* Logo */

.footer img {

    width:170px;

}



/* Titoli MENU - SEGUICI */

.footer h3 {

	color:#5FD3D8 !important;

    font-size:22px;

    font-weight:700;

    margin-bottom:20px;

}



/* Testi footer */

.footer p {

    color:white;

}



/* Link */

.footer a {

    display:block;

    margin-bottom:10px;

    color:white !important;

    font-weight:400;

}



.footer a:hover {

    color:#8fd3ff !important;

}



/* Copyright */

.copyright {

    text-align:center;

    margin-top:40px;

    color:white;

    font-size:14px;

}



/* ==================================================
   RESPONSIVE MOBILE
================================================== */


@media(max-width:768px) {



    .hero > img {

		object-fit:cover;

		object-position:0% center;
		

    }



    .hero-overlay {

        width:90%;

        top:35%;

    }



    .hero-overlay h1 {

        font-size:34px;

        line-height:1.15;

        margin-bottom:18px;

    }



    .hero-overlay p {

		font-size:17px;

		line-height:1.4;

		margin-bottom:28px;

		position:relative;

		top:-20px;

    }



    .hero-overlay .btn {

        transform:translateY(180px);

    }



    .intro,
    .chi-siamo,
    .attivita,
    .crociere-home,
    .diari-home {

        padding:55px 0;

    }



    .due-colonne {

        flex-direction:column;

    }



    .cards {

        grid-template-columns:1fr;

    }



    .crociere-grid {

        grid-template-columns:1fr;

    }



    .diario-box {

        flex-direction:column;

    }


	.diario-box img {

		width:320px;

		height:320px;

		object-fit:cover;

		border-radius:12px;

	}



    .quote p {

        font-size:20px;

    }



    .call-to-action h2 {

        font-size:32px;

    }



    .footer-grid {

        grid-template-columns:1fr;

        text-align:center;

    }


}

@media (min-width:769px) and (orientation:portrait) {

    .hero img {

        object-fit:cover;

        object-position:10% 50%;

    }


    .hero-overlay {

        top:38%;

    }


    .hero-overlay p {

        margin-top:10px;

    }


    .hero-overlay .btn {

        position:relative;

        top:330px;

    }

}

/* =========================
   COLORI TIFFANY TITOLI
========================= */


/* Testimonianze */

.testimonianze h2 {
    color:#5FD3D8 !important;
}



/* Footer */

.footer h3 {
    color:#5FD3D8 !important;
}