/*
Theme Name: Alassio
Theme URI:
Author: Ennismore
Author URI: https://ennismore.com
Description: Alassio Firenze Theme
Requires at least: 6.6
Tested up to: 6.6
Requires PHP: 5.7
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alassio
Tags:
*/

/* Image Carousel */
.custom-alassio-manual-image-carousel__controls button {
    background-size: 13px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAxNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEuMTQxNzkgMy41MDU3TDAuODAyMDkgMy4xNTY4NkwxLjE0MTc5IDIuODA4MDNMMi40MDM2MSAxLjUxMjI4TDIuNzYxODIgMS4xNDQ0NEwzLjEyMDAzIDEuNTEyMjhMMTIuODU4MiAxMS41MTIzTDEzLjE5NzkgMTEuODYxMUwxMi44NTgyIDEyLjIxTDMuMTIwMDMgMjIuMjA5OUwyLjc2MTgyIDIyLjU3NzhMMi40MDM2MSAyMi4yMDk5TDEuMTQxNzkgMjAuOTE0MkwwLjgwMjA4OSAyMC41NjU0TDEuMTQxNzkgMjAuMjE2NUw5LjI3ODQzIDExLjg2MTFMMS4xNDE3OSAzLjUwNTdaIiBmaWxsPSIjRTFEOEMxIiBzdHJva2U9IiNFMUQ4QzEiLz4KPC9zdmc+Cg==
);
}

.manual-image-carousel::before,
.manual-image-carousel::after {
    display: block;
    content: "";
    width: 100%;
    height: 80px;
    background: url(https://ennismore5.go-vip.net/alassio/wp-content/uploads/sites/3/2024/11/wave_cdc404.png) repeat-x;
    background-size: 250px;
}

.manual-image-carousel::after {
    background-position: bottom;
}

.custom-alassio-manual-image-carousel__controls {
    margin-right: 16px;
    margin-top: 32px;
}

.custom-alassio-manual-image-carousel__controls button {
    height: 48px;
    width: 48px;
    opacity: 1 !important
}

.custom-alassio-manual-image-carousel__controls button {
    background-color: #A94836;
    opacity: 1 !important
}

.custom-alassio-manual-image-carousel__controls button:hover {
    background-color: #8C3B2C;
    opacity: 1 !important
}

.custom-alassio-manual-image-carousel__controls button.swiper-button-disabled {
    background-color: #C27F72;
    cursor: not-allowed;
    opacity: 1 !important
}

.btn-dark > a:hover {
    background-color: #59121A !important;
}

.btn-light > a:hover {
    background-color: #DF898A !important;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
    align-self: self-start;
    margin-top: 5px;
}

:root :where(.wp-block-button .wp-block-button__link) {
    padding-bottom: 9px !important;
}

.promo-content {
    max-width: 550px;
}

.event-content{
    max-width: 500px;
    max-height: 500px;
}

.wp-block-navigation__submenu-container {
    background-color: #e1d8c1 !important;
}

.underline{
    text-underline-offset: 5px !important;
}

.mobile-menu.show {
    left: 0 !important;
    z-index:100000 !important;
}
.mobile-menu{
    transition: 0.3s;
    z-index: 1000;
    position: fixed;
    top: 0;
    width:100%;
    height:100%;
    left:calc(100vw + 30px);
    overflow: hidden !important;
}

.wp-block-navigation__responsive-container-content ul li:nth-child(5):hover {
    text-decoration: underline !important;
    text-underline-offset: 5px !important;
}

.mobile-navigation ul li:nth-child(5) {
    text-decoration: underline !important;
    text-underline-offset: 5px !important;
}

.sticky-desktop-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

.mb-button a:hover {
    background-color: #F4C7C8 !important;
}

/* Mobile */
@media only screen and (max-width: 768px){
    .menu-grid > .wp-block-group {
        padding: 30% 10% !important;
        min-height: 120px !important;
    }

    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 2fr)) !important;
        gap: 15px;
    }

    .event-content{
        max-width: 350px;
        max-height: 350px;
        margin: auto;
        padding: 66px 36px !important;
    }

    .footer-nav {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-nav .wp-block-navigation .wp-block-navigation-item__label{
        font-size: 14px !important;
    }

    :root :where(.wp-block-button .wp-block-button__link) {
        padding: 12px 16px !important;
        padding-bottom: 9px !important;
    }

    .header-mb{
        display:flex;
        flex-direction: row-reverse !important;
        gap: 0px !important;
    }
    .mb-button{
        font-size:14px !important;
        font-weight:400 !important;
    }

    .mb-button {
        margin-right: 15px !important;
    }

    .menu-section-content{
        padding: 35px 25px !important;
    }

    .row-header{
        padding: 0px 16px !important;

    }
    .wp-block-site-logo img {
        width: 110px;
        height: 40px;
        object-fit: contain;
    }

    ul .wp-block-navigation__submenu-container {
        border: 0px !important;
    }

    .mb-14{
        font-size: 14px !important;
        display: flex;
        flex-direction: column;
        gap: 8px !important;
    }

    br {
        display: none !important;
    }

    .intro-img img {
        width: 180px !important;
        height: 60px !important;
    }

    .intro-p{
        font-size: 16px !important;
    }

    .intro-div{
        padding: 55px 16px !important;
    }

    .promo-content{
        padding: 60px 40px !important;
    }
    .promo-cover {
        min-height: 410px !important;
    }

    .opening-times-div{
        padding: 45px 0px  !important;
    }

    .opening-times-content{
        align-items: baseline !important;
        br{
            display: block !important;
        }
    }
    .terrace-intro-div{
        padding: 32px 0px !important;
    }

    .terrace-enquire{
        padding: 80px 16px !important;
    }

    .terrace-enquire .wp-block-button__link{
        font-size: 14px !important;
    }

    .image-gallery-div{
        padding: 45px 0px !important;
    }
}

/* Tablet */
@media only screen and (min-width:480px) and (max-width:768px) {
    .promo-content, .event-content {
        max-width: 450px;
        max-height: 450px;
    }
}

@media screen and (orientation: landscape) {
    .promo-content {
        padding-top: 95px !important;
        padding-bottom: 95px !important;
    }

    @media screen and (min-width:1024px) {
        .promo-content {
            aspect-ratio: 1;
            justify-content: center;
        }
    }
}

/* Mobile Small */
@media only screen and (min-width:375px) and (max-width: 480px){
    .custom-alassio-manual-image-carousel__controls {
        margin-right: 0;
    }
    .promo-cover.has-aspect-ratio {
        aspect-ratio: auto !important;
    }

    .custom-alassio-manual-image-carousel__controls.controls-show {
        margin-right: 16px;
    }

    .intro-images .icon-container {
        width: 185px !important;
        height: auto !important;
    }
}

@media only screen and  (min-width:375px) and (max-width:480px) {
    .hero-section .wp-block-cover {
        min-height: 447px !important;
    }
}

@media only screen and  (min-width:480px) and (max-width:1024px) {
    .hero-section .wp-block-cover {
        min-height: 579px !important;
    }
}

/* Mobile: Change the background image using ::before */
@media only screen and (max-width: 768px) {
    .menu-section-image img::before {
        content: '';
        background-image: url('https://alassio.instawp.xyz/wp-content/uploads/2024/11/promo-content.png');
        background-size: contain;
    }

    .row-header.row-footer {
        padding: 15px !important;
    }
}

.promo-div .promo-image {
    height: 100%;
    display: flex;
}

/* Block Styles */
.is-style-stripe-red {
    background-image: repeating-linear-gradient(
        90deg,
        #E9A5A6 0%,
        #E9A5A6 12.5%,
        #A94836 12.5%,
        #A94836 25%
    );
}

@media (min-width: 768px) {
    .is-style-stripe-red {
        background-image: repeating-linear-gradient(
            90deg,
            #E9A5A6 0%,
            #E9A5A6 7.14%,
            #A94836 7.14%,
            #A94836 14.28%
        );
    }
}

.is-style-stripe-green {
    background-image: repeating-linear-gradient(
        90deg,
        #A4C09A 0%,
        #A4C09A 12.5%,
        #6F7333 12.5%,
        #6F7333 25%
    );
}

@media (min-width: 768px) {
    .is-style-stripe-green {
        background-image: repeating-linear-gradient(
            90deg,
            #A4C09A 0%,
            #A4C09A 7.14%,
            #6F7333 7.14%,
            #6F7333 14.28%
        );
    }
}

.wp-block-button #ot-sdk-btn.ot-sdk-show-settings {
    background-color: var(--wp--preset--color--custom-red-wine) !important;
    color: var(--wp--preset--color--custom-old-postcard) !important;
}