/* ==========================================================================
   ELOì — RESPONSIVE E PREFERENZE DEL DISPOSITIVO
   Caricare dopo style.css.

   Tutti i breakpoint del tema e dei template sono centralizzati qui.
   Mobile: 575.98px | Tablet: 767.98px | Piccolo desktop: 991.98px
   Cambiare uno stile BASE -> style.css; solo il suo adattamento -> qui.
   Le regole Home sono integrate nei breakpoint esistenti.
   Non sono presenti media query vuote né segnaposto `{ ... }`.
   ========================================================================== */

/* ---- @media (min-width: 992px) ---- */
@media (min-width: 992px) {
    /* Base del tema */
    .w-lg-50 {
        width: 50%;
    }

    .w-lg-75 {
        width: 75%;
    }

    /* Single location */
    .location-detail-hero__text-column {
        flex: 0 0 45%;
        max-width: 45%;
    }

    .location-detail-hero__image-column {
        flex: 0 0 55%;
        max-width: 55%;
    }

}

/* ---- @media (min-width: 1600px) ---- */
@media (min-width: 1600px) {
    /* Base del tema */
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1500px;
    }

}

/* ---- @media (max-width: 1199.98px) ---- */
@media (max-width: 1199.98px) {
    /* Base del tema */
    .navbar {
        background-color: rgb(255 255 255 / 88%) !important;
    }

    /* Home — Giulia Pintore */
    .gp-home-hero__row { min-height: 740px; }
    .gp-home-hero__content { padding-left: 25px; }
    .gp-home-hero__image { max-height: 675px; }
    .gp-home-areas__grid { --bs-gutter-x: 32px; }
    .gp-home-paths__row { --bs-gutter-x: 48px; }
    .gp-home-paths__image { height: 780px; }

}

/* ---- @media (max-width: 991.98px) ---- */
@media (max-width: 991.98px) {
    /* Base del tema */
    section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Home — Giulia Pintore */
    .gp-home-hero__row { min-height: 0; }
    .gp-home-hero__content { padding: 150px 0 55px; }
    .gp-home-hero h1 { white-space: normal; }
    .gp-home-about h2 { margin-bottom: 35px; }
    .gp-home-hero__visual { max-height: 640px; }
    .gp-home-hero__image { width: min(100%, 570px); max-height: 640px; }

    .gp-home .gp-home-about { padding: 95px 0; }
    .gp-home-about__columns { --bs-gutter-y: 25px; }

    .gp-home .gp-home-areas { padding: 90px 0; }
    .gp-home-areas__intro { --bs-gutter-y: 30px; margin-bottom: 54px; }
    .gp-home-areas__grid { --bs-gutter-y: 55px; }

    .gp-home .gp-home-paths { padding: 90px 0; }
    .gp-home-paths__row { --bs-gutter-y: 48px; }
    .gp-home-paths__image { height: 580px; }
    .gp-home-paths__content { padding: 0; }
    .gp-home-path + .gp-home-path { margin-top: 48px; }

    .gp-home .gp-home-locations { padding: 90px 0; }
    .gp-home-locations__row { --bs-gutter-y: 50px; }

    /* Dettaglio evento / servizio */
    .eloi-detail .eloi-detail-hero {
        padding: 90px 0 100px;
    }

    .eloi-detail-hero__content {
        margin-top: 16px;
    }

    .eloi-detail-hero__button {
        margin-top: 32px;
    }

    .eloi-detail .eloi-detail-gallery {
        padding-bottom: 85px;
    }

    .eloi-detail .eloi-detail-faq {
        padding: 85px 0;
    }

    /* Solo evento */
    .eloi-detail .event-detail-services {
        padding: 85px 0;
    }

    /* Solo servizio */
    .eloi-detail .service-detail-related {
        padding: 85px 0;
    }

    .eloi-detail .service-detail-request {
        padding: 85px 0;
    }

    .service-detail-request__button {
        margin-top: 25px;
    }

    /* Single location */
    .location-detail-hero__row,
            .location-detail-hero__content {
        min-height: 0;
    }

    .location-detail-hero__content {
        padding: 70px 32px;
    }

    .location-detail-hero__button {
        margin-top: 36px;
    }

    .location-detail-hero__image-container {
        min-height: 420px;
    }

    .location-detail-event-types__label {
        width: 100%;
        margin: 0 0 8px;
        text-align: center;
    }

    .location-detail .location-detail-introduction,
            .location-detail .location-detail-overview,
            .location-detail .location-detail-technical-information,
            .location-detail .location-detail-services {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .location-detail-introduction__description {
        margin-top: 28px;
    }

    .location-detail-gallery {
        margin-top: 90px;
    }

    .location-detail-specifications {
        margin-top: 100px;
    }

    /* Masonry */

    .eloi-masonry__sizer,
    .eloi-masonry__item {
        width: 49%;
    }

    .eloi-masonry__item--featured {
        width: 100%;
    }

    /* Contatti / CF7 */
    .contacts-page .contacts-page__section {
        padding-top: 85px;
        padding-bottom: 100px;
    }

    .contacts-page__description {
        max-width: 650px;
    }

    .contacts-page__form {
        margin-top: 12px;
    }

    /* FAQ */
    .faq-page .faq-page__section {
        padding-top: 85px;
        padding-bottom: 90px;
    }

    .faq-page__title {
        margin-bottom: 36px;
    }

    .faq-page__answer {
        padding-bottom: 36px;
    }

    /* Footer */
    #footer.eloi-footer .eloi-footer__nav-list {
        justify-content: flex-start;
        margin-top: 0;
    }

}

/* ---- @media (max-width: 767.98px) ---- */
@media (max-width: 767.98px) {
    /* Base del tema */
    /* Scala tipografica mobile Figma: breakpoint tablet/telefono. */
    :root {
        --font-size-display: 60px;
        --font-size-h1: 36px;
        --font-size-h2: 28px;
        --font-size-h3: 24px;
        --font-size-h4: 20px;
        --font-size-h5: 18px;
        --font-size-h6: 16px;
        --font-size-body: 16px;
        --font-size-label: 14px;
        --font-size-caption: 12px;
    }

    .navbar .navbar-container {
        border-bottom: transparent;
    }

    section, .section-padding {
        padding-top: calc(var(--section-padding)*0.3);
        padding-bottom: calc(var(--section-padding)*0.3);
    }

    .pseudo-container {
        padding-left: calc(var(--pseudo-container-padding)*0.1);
        padding-right: calc(var(--pseudo-container-padding)*0.1);
    }

    .pseudo-container-all {
        padding: calc(var(--pseudo-container-padding)*0.5);
    }

    /* Home — Giulia Pintore */
    .feature-icon { width: 36px; height: 36px; margin-bottom: 16px; }
    .text-overline { margin-bottom: 18px; }
    .gp-home-hero__content { padding: 132px 0 44px; }
    .gp-home-hero h1 { margin-bottom: 22px; }
    .gp-home-hero__actions { margin-top: 25px; gap: 10px; }
    .gp-home-hero__visual { max-height: 490px; }
    .gp-home-hero__image { max-height: 490px; }

    .gp-home .gp-home-about { padding: 72px 0 78px; }
    .gp-home-about h2 { margin-bottom: 25px; }

    .gp-home .gp-home-areas { padding: 75px 0 80px; }
    .gp-home-areas__intro { margin-bottom: 42px; }
    .gp-home-areas__grid { --bs-gutter-y: 48px; }
    .gp-home-area > p { margin-bottom: 18px; }

    .gp-home .gp-home-paths { padding: 80px 0; }
    .gp-home-paths__image { height: 460px; }
    .gp-home-path + .gp-home-path { margin-top: 40px; }

    .gp-home .gp-home-locations { padding: 80px 0; }

    /* Dettaglio evento / servizio */
    .eloi-detail .eloi-detail-hero {
        padding: 65px 0 85px;
    }

    .eloi-detail-hero__content {
        margin-top: 5px;
    }

    .eloi-detail .eloi-detail-gallery {
        padding-bottom: 65px;
    }

    .eloi-detail-gallery__grid {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .eloi-detail-gallery__grid .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    .eloi-detail .eloi-detail-faq {
        padding: 70px 0;
    }

    .eloi-detail-faq__question {
        padding: 20px 0;
        gap: 16px;
    }

    .eloi-detail-faq__answer {
        padding-right: 0;
    }

    /* Solo evento */
    .eloi-detail .event-detail-services {
        padding: 70px 0;
    }

    /* Solo servizio */
    .eloi-detail .service-detail-related {
        padding: 70px 0;
    }

    .service-detail-related__grid {
        margin-top: 25px;
    }

    .eloi-detail .service-detail-request {
        padding: 70px 0;
    }

    /* Single location */
    .location-detail-hero__content {
        padding: 56px 24px;
    }

    .location-detail-hero__image-container {
        min-height: 300px;
    }

    .location-detail .location-detail-event-types {
        padding: 24px 0;
    }

    .location-detail-event-types__inner {
        justify-content: flex-start;
    }

    .location-detail-event-types__label {
        text-align: left;
    }

    .location-detail-event-types__tag {
        font-size: 0.875rem;
    }

    .location-detail .location-detail-introduction,
            .location-detail .location-detail-overview,
            .location-detail .location-detail-technical-information,
            .location-detail .location-detail-services {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .location-detail-gallery {
        margin-top: 75px;
    }

    .location-detail .location-detail-quote {
        padding: 65px 0;
    }

    .location-detail-lined-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .location-detail-specifications {
        margin-top: 80px;
    }

    /* FAQ */
    .faq-page .faq-page__section {
        padding-top: 65px;
        padding-bottom: 70px;
    }

    .faq-page__title {
        margin-bottom: 32px;
    }

    .faq-page__question {
        padding: 20px 26px 20px 0;
    }

    .faq-page__answer {
        padding: 0 0 28px;
        font-size: 1rem;
    }

    .faq-page__question::after {
        content: "+";
        position: absolute;
        right: 0;
        top: 18px;
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1.4;
        opacity: .8;
    }

    .faq-page__item[open] .faq-page__question::after {
        content: "−";
    }

    .faq-page__item:first-child .faq-page__question::after {
        top: 0;
    }

}

/* ---- @media (max-width: 575.98px) ---- */
@media (max-width: 575.98px) {
    /* Home — Giulia Pintore */
    .gp-home-hero__content { padding-top: 115px; }
    .gp-home-hero__actions > a { max-width: 100%; }
    .gp-home-about .custom-button-light { white-space: normal; }
    .gp-home-hero__visual { max-height: 370px; }
    .gp-home-hero__image { max-height: 370px; }
    .gp-home-paths__image { height: 380px; }
    .gp-home-locations__item { flex-direction: column; align-items: flex-start; }
    .gp-home-locations__address { text-align: left; }

    /* Dettaglio evento / servizio */
    .eloi-detail .eloi-detail-hero {
        padding-top: 55px;
        padding-bottom: 75px;
    }

    .eloi-detail-gallery__image {
        aspect-ratio: 1.5 / 1;
    }

    .eloi-detail-gallery__image--team {
        object-position: center 30%;
    }

    .eloi-detail-faq__items {
        margin-top: 18px;
    }

    /* Solo servizio */
    .service-detail-related__card {
        padding: 24px 22px;
    }

    /* Single location */
    .location-detail-hero__image-container {
        min-height: 260px;
    }

    .location-detail-lined-list {
        grid-template-columns: 1fr;
    }

    .location-detail-gallery .row {
        --bs-gutter-x: 12px;
        --bs-gutter-y: 12px;
    }

    /* Masonry */

    .eloi-masonry__sizer,
    .eloi-masonry__item,
    .eloi-masonry__item--featured {
        width: 100%;
    }

    .eloi-masonry__gutter {
        width: 0;
    }

    .eloi-masonry__item {
        margin-bottom: 16px;
    }

    /* Contatti / CF7 */
    .contacts-page .contacts-page__section {
        padding-top: 60px;
        padding-bottom: 80px;
    }

    .contacts-page__title {
        margin-bottom: 18px;
    }

    .contacts-page .wpcf7 .contacts-form__fields {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .contacts-page .wpcf7 .contacts-form__group + .contacts-form__group {
        margin-top: 36px;
        padding-top: 36px;
    }

    .contacts-page .wpcf7 .contacts-form__services-options {
        grid-template-columns: 1fr;
        row-gap: 18px;
    }

    .contacts-page .wpcf7 .contacts-form__legend {
        margin-bottom: 24px;
    }

    .contacts-page .wpcf7 .contacts-form__actions {
        margin-top: 30px;
    }

    .contacts-page .wpcf7 input.wpcf7-submit.contacts-form__submit {
        width: 100%;
    }

    /* Footer */
    #footer.eloi-footer {
        padding: 40px 0 32px;
    }

    #footer.eloi-footer .eloi-footer__logo {
        height: 29px;
    }

    #footer.eloi-footer .eloi-footer__nav-list {
        column-gap: 22px;
        row-gap: 14px;
    }

    #footer.eloi-footer .eloi-footer__bottom {
        margin-top: 36px;
    }

    #footer.eloi-footer .eloi-footer__contacts {
        align-items: flex-start;
        flex-direction: column;
        row-gap: 8px;
        font-size: 14px;
    }

}

/* ---- @media (hover: hover) ---- */
@media (hover: hover) {
    /* Pulsanti e link design system */
    :is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light):not(:disabled):not([aria-disabled="true"]):hover {
        background-color: var(--button-hover-background);
        color: var(--button-hover-text);
        border-color: var(--button-hover-border);
    }

    .custom-link:hover {
        color: var(--link-hover-color);
    }

    :is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light).custom-button--arrow:hover::after,
    .custom-link--arrow:hover::after,
    :is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light, .custom-link):hover i.fa-arrow-right {
        transform: translateX(4px);
    }

    /* Invio form CF7 */
    .contacts-page .wpcf7 input.wpcf7-submit.contacts-form__submit:hover {
        background-color: var(--tertiary-color);
        border-color: var(--tertiary-color);
    }

    /* FAQ */
    .faq-page__question:hover {
        color: var(--secondary-color);
    }

}

/* ---- @media (prefers-reduced-motion: reduce) ---- */
@media (prefers-reduced-motion: reduce) {
    /* Design system */
    :is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light),
    .custom-link,
    :is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light).custom-button--arrow::after,
    .custom-link--arrow::after,
    :is(.custom-button, .custom-button-dark, .custom-button-transparent, .custom-button-light, .custom-link) i {
        transition: none;
    }

    /* Contatti / CF7 */
    .contacts-page .wpcf7 input.wpcf7-submit.contacts-form__submit,
            .contacts-page .wpcf7 .contacts-form__field .wpcf7-form-control,
            .contacts-page .wpcf7 input[type="checkbox"] {
        transition: none;
    }

    /* FAQ */
    .faq-page__question {
        scroll-behavior: auto;
    }

    /* Footer */
    #footer.eloi-footer .eloi-footer__nav-list a,
        #footer.eloi-footer .eloi-footer__contacts a {
        transition: none;
    }

}

