/*============================================================================================*/
/* Your custom styles below */
/*============================================================================================*/

/* -------- Occhielli: colore oro -------- */
.title small,
.title.white small {
    color: #dd8237 !important;
    opacity: 1 !important;
}

/* -------- Hero + Footer accents -------- */
.hero .wrapper small {
    color: #dd8237 !important;
}

footer a,
footer .social ul li a:hover {
    color: #dd8237 !important;
}

footer .social ul li a,
footer .social ul li a:hover {
    color: #fff !important;
}

/* -------- Dove Siamo accents -------- */
.contact_info ul li i,
.contact_info ul li a:hover {
    color: #dd8237 !important;
}

.form-control:focus {
    border-color: #dd8237 !important;
    box-shadow: 0 0 0 0.2rem rgba(221, 130, 55, 0.2) !important;
}

/* -------- WhatsApp icon nella navbar -------- */
.nav-wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #25d366 !important;
    line-height: 1;
    transition:
        color 0.2s,
        transform 0.2s;
}
.nav-wa-icon:hover {
    color: #1ebe5d !important;
    transform: scale(1.15);
}

body,
p,
li,
td,
input,
textarea,
select,
label,
small,
.btn_1,
nav,
footer {
    font-family: "Raleway", ui-sans-serif, system-ui, sans-serif;
}

h1,
h2,
h3,
h4 {
    font-family: "Playfair Display", Georgia, serif;
}

.garibaldi-wordmark {
    display: none;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

header .logo_normal {
    display: inline-flex;
    align-items: center;
}

header .logo_sticky {
    display: none;
    align-items: center;
}

header.fixed_header.sticky .logo_normal {
    display: none;
}

header.fixed_header.sticky .logo_sticky {
    display: inline-flex;
}

header.fixed_header .logo_normal .garibaldi-wordmark {
    color: #fff;
}

header.fixed_header.sticky .logo_sticky .garibaldi-wordmark {
    color: #333;
}

/* -------- Footer: rimuovi overlay e gradienti -------- */
footer .pinned-image__container-overlay,
footer .footer_bg .pinned-image__container-overlay {
    background: none !important;
}

/* -------- Footer background image -------- */
footer {
    background-color: transparent !important;
}
footer .footer_bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding-top: 0;
}
footer .footer_bg .gradient_over {
    display: block !important;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.60) 0%,
        rgba(0, 0, 0, 0.85) 100%
    ) !important;
}
footer .footer_bg .background-image {
    opacity: 1 !important;
    filter: none !important;
}
footer .move_content {
    margin-top: 0;
    padding-top: 60px;
    padding-bottom: 25px;
}
footer {
    box-shadow: none !important;
}
footer::before,
footer::after {
    box-shadow: none !important;
    display: none !important;
}

/* -------- Hero Video Background -------- */
.hero.full-height.hero-video {
    position: relative;
    overflow: hidden;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
}
.hero-video__bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}
.hero-video__fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* -------- Chi Siamo parallax image -------- */
#first_section .parallax_wrapper > .img-fluid.rounded-img {
    height: 520px;
    object-fit: cover;
    width: 100%;
}
@media (max-width: 991px) {
    #first_section .parallax_wrapper > .img-fluid.rounded-img {
        height: 400px;
    }
}
@media (max-width: 575px) {
    #first_section .parallax_wrapper > .img-fluid.rounded-img {
        height: 320px;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    header.fixed_header:not(.sticky) .logo_normal {
        display: inline-flex !important;
    }

    header.fixed_header:not(.sticky) .logo_sticky {
        display: none !important;
    }

    header.fixed_header.sticky .logo_normal {
        display: none !important;
    }

    header.fixed_header.sticky .logo_sticky {
        display: inline-flex !important;
    }

    header.fixed_header .row.align-items-center {
        flex-wrap: nowrap;
    }

    header.fixed_header .col-4 {
        flex: 0 0 auto;
        width: auto;
    }

    header.fixed_header .col-8 {
        flex: 1 1 auto;
        width: auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    header.fixed_header .col-6 {
        display: flex;
        align-items: center;
    }

    header.fixed_header .hamburger_2 {
        float: none !important;
        margin: 0;
        display: flex;
        align-items: center;
    }

    /* Fix: evita che la hero sovrasti le sezioni successive */
    .hero.home-search {
        z-index: 1 !important;
        overflow: hidden !important;
    }
    /* Il contenuto dopo la hero deve stare sopra */
    .pattern_2,
    .pattern_2 ~ * {
        position: relative;
        z-index: 2;
    }

    /* Logo mobile più piccolo */
    .logo_normal img.garibaldi-nav-logo,
    .logo_sticky img.garibaldi-nav-logo {
        display: none !important;
    }

    .logo_normal .garibaldi-wordmark,
    .logo_sticky .garibaldi-wordmark {
        display: inline-block;
        transform: translateY(1px);
        font-size: 1.35rem;
        letter-spacing: 0.08rem;
        max-width: calc(100vw - 120px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Hero text ottimizzato per mobile */
    .hero h3.garibaldi-hero-title {
        font-size: 2.1rem !important;
        line-height: 1.3 !important;
    }

    .hero small {
        font-size: 0.9rem !important;
    }

    /* Box facilities padding ridotto */
    .box_facilities {
        padding: 20px 15px !important;
        margin-bottom: 20px;
    }

    .box_facilities h3 {
        font-size: 1.1rem !important;
    }

    .box_facilities p {
        font-size: 0.9rem !important;
    }

    /* Grid immagini video section */
    .pinned-image__container > div[style*="grid"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .pinned-image__container > div[style*="grid"] img:last-child {
        grid-column: span 2 !important;
    }

    /* Titoli sezioni */
    .title h2 {
        font-size: 1.8rem !important;
    }

    .title small {
        font-size: 0.85rem !important;
    }

    /* Box camere */
    .box_cat_rooms .info h3 {
        font-size: 1.2rem !important;
    }

    .box_cat_rooms .info small {
        font-size: 0.8rem !important;
    }

    /* Contact info */
    .contact_info ul li {
        margin-bottom: 25px;
    }

    .contact_info h4 {
        font-size: 1.1rem !important;
    }

    /* Footer ottimizzato */
    footer h5 {
        margin-top: 20px;
        font-size: 1.2rem !important;
    }

    footer ul li {
        font-size: 1rem;
    }

    footer .copy {
        font-size: 0.95rem;
    }

    /* Marquee nascosto su mobile */
    .marquee {
        display: none !important;
    }

    /* Navbar menu mobile */
    .main-menu {
        padding-top: 60px;
    }

    /* Mobile nav items */
    .main-menu #mainNav ul {
        padding: 0;
    }

    .main-menu #mainNav ul li {
        margin-bottom: 8px;
    }

    /* Contatti / Dove Siamo */
    .main-menu #mainNav ul li a.nav-contatti {
        display: flex;
        align-items: center;
        font-size: 16px;
        font-weight: 600;
        color: #333 !important;
        padding: 14px 20px !important;
        border-bottom: 1px solid #eee;
    }

    .main-menu #mainNav ul li a.nav-contatti:hover {
        color: #dd8237 !important;
    }

    /* Blocco contatti inline nel menu mobile */
    .main-menu #mainNav ul li.nav-contact-block {
        padding: 5px 0 10px 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 8px;
    }

    .nav-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 10px;
        font-size: 14px;
        color: #333;
        line-height: 1.4;
        text-transform: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-contact-item:last-child {
        border-bottom: none;
    }

    .nav-contact-item i {
        font-size: 17px;
        color: #dd8237;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .nav-contact-item strong {
        display: block;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        color: #aaa;
        font-weight: 600;
        margin-bottom: 1px;
    }

    .main-menu #mainNav ul li .nav-contact-item a,
    .nav-contact-item a,
    .nav-contact-item span {
        color: #333 !important;
        text-decoration: none !important;
        font-weight: 500 !important;
        text-transform: none !important;
        display: inline !important;
        padding: 0 !important;
        margin: 0 !important;
        font-size: 14px !important;
    }

    .main-menu #mainNav ul li .nav-contact-item a:hover {
        text-decoration: underline !important;
        color: #dd8237 !important;
    }

    /* WhatsApp – bottone verde */
    .main-menu #mainNav ul li a.nav-whatsapp {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: #25d366 !important;
        color: #fff !important;
        border-radius: 30px;
        padding: 14px 20px !important;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        margin: 8px 0;
        transition: background 0.3s;
    }

    .main-menu #mainNav ul li a.nav-whatsapp i {
        font-size: 20px;
        color: #fff !important;
    }

    .main-menu #mainNav ul li a.nav-whatsapp:hover {
        background-color: #1ebe5d !important;
        color: #fff !important;
    }

    /* Prenota Ora – bottone primario */
    .main-menu #mainNav ul li a.nav-prenota {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: #dd8237 !important;
        color: #fff !important;
        border-radius: 30px;
        padding: 14px 20px !important;
        font-size: 16px;
        font-weight: 600;
        text-align: center;
        margin: 8px 0;
        transition: background 0.3s;
    }

    .main-menu #mainNav ul li a.nav-prenota:hover {
        background-color: #dd8237 !important;
        color: #fff !important;
    }

    /* Padding generale ridotto su mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .margin_120_95 {
        margin-top: 60px !important;
        margin-bottom: 60px !important;
    }
}

@media (max-width: 480px) {
    /* Per schermi molto piccoli */
    .logo_normal .garibaldi-wordmark,
    .logo_sticky .garibaldi-wordmark {
        font-size: 1.2rem;
        letter-spacing: 0.06rem;
        max-width: calc(100vw - 105px);
    }

    .hero h3.garibaldi-hero-title {
        font-size: 1.8rem !important;
    }

    .title h2 {
        font-size: 1.5rem !important;
    }
}

/* Hero Booking Search Bar */
.hero .booking_form {
    max-width: 900px;
    margin: 0 auto;
}

.hero .booking_form .form-group i {
    color: #978667;
}

.hero .booking_form input::placeholder {
    color: #999;
}

.hero .booking_form .qty-buttons input.qty {
    padding-left: 90px;
}

@media (max-width: 991px) {
    .hero .booking_form {
        background-color: rgba(255, 255, 255, 0.95);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0px 0px 30px 0px rgba(0, 0, 0, 0.3);
    }
    .hero .booking_form input {
        border: none;
        background-color: #fff;
        border-radius: 5px;
        margin-bottom: 8px;
    }
    .hero .booking_form .qty-buttons {
        margin-bottom: 8px;
    }
    .hero .booking_form .qty-buttons input.qty {
        background-color: #fff;
        border-radius: 5px;
    }
}

/* -------- Rooms Slider (Camere & Spazi) -------- */
.rooms_slider {
    position: relative;
    overflow: hidden;
}
.rooms_slider__track {
    position: relative;
    height: 500px;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}
.rooms_slider__item {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition:
        left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        opacity 0.6s ease;
    will-change: left, width, opacity;
}
.rooms_slider__item figure {
    position: relative;
    margin: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}
.rooms_slider__item figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.rooms_slider__item:hover figure img {
    transform: scale(1.05);
}
.rooms_slider__info {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 25px;
    background: none;
    color: #fff;
    pointer-events: none;
}
.rooms_slider__info small {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.rooms_slider__info h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}
/* Arrows */
.rooms_slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition:
        background 0.3s,
        transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rooms_slider__arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}
.rooms_slider__arrow--prev {
    left: 15px;
}
.rooms_slider__arrow--next {
    right: 15px;
}
/* Dots */
.rooms_slider__dots {
    text-align: center;
    margin-top: 20px;
}
.rooms_slider__dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition:
        background 0.3s,
        transform 0.3s;
}
.rooms_slider__dot.active {
    background: #978667;
    transform: scale(1.3);
}
/* Responsive */
@media (max-width: 991px) {
    .rooms_slider__track {
        height: 400px;
    }
}
@media (max-width: 575px) {
    .rooms_slider__track {
        height: 300px;
    }
    .rooms_slider__info h3 {
        font-size: 18px;
    }
    .rooms_slider__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .rooms_slider__arrow--prev {
        left: 8px;
    }
    .rooms_slider__arrow--next {
        right: 8px;
    }
}

/* -------- News & Events Cards -------- */
.news_card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 18px rgba(220, 220, 220, 0.9);
    border: 1px solid rgba(242, 242, 242, 0.6);
    overflow: hidden;
    margin-bottom: 30px;
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.news_card:hover {
    box-shadow: 0 6px 28px rgba(220, 220, 220, 1);
}
.news_card figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    height: 250px;
}
.news_card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.news_card:hover figure img {
    transform: scale(1.05);
}
.news_card__date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #4b514d;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.news_card__body {
    padding: 25px;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 120px;
}
.news_card__cat {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    position: absolute;
    left: 0;
    top: 25px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #978667;
}
.news_card__body h4 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-left: 25px;
    color: #333;
    line-height: 1.4;
}
.news_card__link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #978667;
    text-decoration: none;
    padding-left: 25px;
}
.news_card__link span {
    display: block;
    width: 20px;
    height: 2px;
    background: #978667;
    margin-top: 5px;
    transition: width 0.3s ease;
}
.news_card__link:hover span {
    width: 35px;
}
@media (max-width: 767px) {
    .news_card figure {
        height: 200px;
    }
    .news_card__body h4 {
        font-size: 16px;
    }
}

/* -------- Check Availability Section -------- */
.bg_availability {
    background-color: #f9f5f0;
}
.availability_contact {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}
.availability_contact i {
    font-size: 28px;
    color: #978667;
}
.availability_contact small {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #999;
    margin-bottom: 2px;
}
.availability_contact strong a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
}
.availability_contact strong a:hover {
    color: #978667;
}
.availability_box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
#availability_calendar {
    margin-bottom: 20px;
}
#availability_calendar .easepick-wrapper {
    width: 100% !important;
}
#availability_calendar .easepick-wrapper .container {
    width: 100% !important;
    max-width: 100% !important;
}
#availability_calendar .easepick-wrapper .calendar {
    width: 100% !important;
}
#availability_calendar .easepick-wrapper .month {
    width: 50% !important;
}
.availability_options {
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.availability_options .form-select {
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 25px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 500;
    color: #6c757d;
    background-color: #fff;
}
.availability_options .form-select:focus {
    border-color: #978667;
    box-shadow: none;
}
.availability_options .qty-buttons.version_2 .form-control {
    border: 1px solid #ddd;
    border-radius: 25px;
    height: 50px;
}
.availability_options .qty-buttons.version_2 input.qty {
    padding-left: 90px;
}
@media (max-width: 991px) {
    .availability_box {
        margin-top: 30px;
    }
}

/* -------- Collegamenti Veloci Carousel -------- */
.collegamenti_carousel {
    position: relative;
}
.collegamenti_carousel .owl-stage-outer {
    overflow: hidden;
    padding-bottom: 20px;
    margin-bottom: -20px;
}
.collegamenti_carousel .owl-nav {
    position: static !important;
    margin: 40px 0 0 0 !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px;
}
.collegamenti_carousel .owl-nav button.owl-prev,
.collegamenti_carousel .owl-nav button.owl-next {
    position: static;
    transform: none;
    background: rgba(255, 255, 255, 0.85) !important;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition:
        background 0.3s,
        transform 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.collegamenti_carousel .owl-nav button.owl-prev:hover,
.collegamenti_carousel .owl-nav button.owl-next:hover {
    background: #fff !important;
    transform: scale(1.1);
}
.collegamenti_carousel .owl-nav button.owl-prev i,
.collegamenti_carousel .owl-nav button.owl-next i {
    font-size: 24px;
    line-height: 1;
}
.collegamenti_carousel .owl-item {
    display: flex;
}
.collegamenti_carousel .owl-item .item {
    display: flex;
    width: 100%;
}
.collegamenti_carousel .item {
    display: flex;
    height: 100%;
}
.collegamenti_carousel .news_card {
    margin-bottom: 0;
    width: 100%;
}
@media (max-width: 575px) {
    .collegamenti_carousel .owl-nav {
        right: 0;
    }
}

/* -------- Titoli cards Collegamenti Veloci -------- */
.collegamenti_carousel .news_card__body h4 {
    font-size: 26px !important;
}

/* -------- Riduce spazio tra CTA e sezione Servizi Premium -------- */
.servizi-section {
    padding-top: 60px;
}
@media (max-width: 767px) {
    .servizi-section {
        padding-top: 45px;
    }
}

/* -------- CTA navbar Prenota Ora -------- */
.main-menu #mainNav ul li a.nav-prenota,
header.fixed_header.sticky nav ul li a.btn_1.nav-prenota {
    background-color: #dd8237 !important;
    border-color: #dd8237 !important;
    color: #fff !important;
}

.main-menu #mainNav ul li a.nav-prenota:hover,
header.fixed_header.sticky nav ul li a.btn_1.nav-prenota:hover {
    background-color: #dd8237 !important;
    border-color: #dd8237 !important;
    color: #fff !important;
}

/* -------- Hero CTA Cerca -------- */
.hero .booking_form input[type="submit"],
.booking_form input[type="submit"] {
    background-color: #1c2a37 !important;
    color: #fff !important;
}

.hero .booking_form input[type="submit"]:hover,
.booking_form input[type="submit"]:hover {
    background-color: #1c2a37 !important;
    color: #fff !important;
}

/* -------- Servizi Premium: colore icone -------- */
.servizi-section .box_facilities i {
    color: #1c2a37 !important;
}

/* -------- Box recensioni -------- */
.review_card {
    background-color: rgba(28, 42, 55, 0.08) !important;
}

.review_card .review_content .rating {
    color: #1c2a37 !important;
}

.review_card .review_content ul li a:hover {
    background-color: #1c2a37 !important;
    color: #fff !important;
}

/* -------- Hover bottoni (escluso navbar Prenota Ora) -------- */
a.btn_1:not(.nav-prenota):hover,
.btn_1:not(.nav-prenota):hover,
a.btn_1.outline:not(.nav-prenota):hover,
.btn_1.outline:not(.nav-prenota):hover {
    background-color: #1c2a37 !important;
    border-color: #1c2a37 !important;
    color: #fff !important;
}
