/* =========================================================================
   Internal pages — Store Locator + Assistenza
   Enqueued conditionally via StarterSite::enqueue_assets().
   ========================================================================= */

/* ---------- Page hero (reusable, shorter than homepage) ---------- */
.page-hero {
    position: relative;
    min-height: 380px;
    padding: 4rem 0;
    background-color: #fff;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    text-align: center;
}

.page-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .25);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero__title {
    margin: 0 0 .75rem;
    font-size: 2.5rem;
    line-height: 1.15;
    font-weight: 300;
    color: #ec008c;
}

.page-hero__subtitle {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #555;
}

.page-hero--has-image .page-hero__title,
.page-hero--has-image .page-hero__subtitle {
    color: #fff;
}

@media (max-width: 767px) {
    .page-hero {
        min-height: 260px;
        padding: 2rem 0;
    }
    .page-hero__title    { font-size: 1.75rem; }
    .page-hero__subtitle { font-size: 1rem; }
}

/* ---------- Store Locator ---------- */
.store-locator {
    padding: 4rem 0;
}

.store-locator__intro {
    margin-bottom: 2.5rem;
    text-align: center;
}

.retailer-card {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #dde4e8;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
}

.retailer-card__logo {
    margin-bottom: 1.5rem;
}

.retailer-card__logo img {
    display: inline-block;
    max-height: 60px;
    width: auto;
}

.retailer-card__name {
    margin: 0 0 .75rem;
    font-size: 1.5rem;
    font-weight: 400;
    color: #222;
}

.retailer-card__description {
    margin: 0 0 2rem;
    color: #555;
    line-height: 1.6;
}

.retailer-card__cta {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    background: #1ab3a3;
    color: #fff;
    text-transform: uppercase;
    font-size: .875rem;
    letter-spacing: .05em;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
    border: 1px solid #1ab3a3;
}

.retailer-card__cta:hover,
.retailer-card__cta:focus {
    background: #fff;
    color: #1ab3a3;
    text-decoration: none;
}

/* Multi-store grid: flex row (no float row-skip), equal-height cards,
   CTA pinned to the bottom regardless of description length. */
.store-locator__grid {
    display: flex;
    flex-wrap: wrap;
}

.store-locator__cell {
    display: flex;
    margin-bottom: 30px;
}

.store-locator__cell .retailer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    padding: 2rem 1.5rem;
}

.store-locator__cell .retailer-card__description {
    flex-grow: 1;
}

.store-locator__cell .retailer-card__cta {
    margin-top: auto;
}

.store-locator__content {
    margin-top: 3rem;
}

@media (max-width: 767px) {
    .store-locator     { padding: 2.5rem 0; }
    .retailer-card     { padding: 2rem 1.25rem; }
    .retailer-card__name { font-size: 1.25rem; }
}

/* ---------- Assistenza — contact box ---------- */
.assistenza-contact {
    padding: 3rem 0;
    background: #f3f5f6;
}

.assistenza-contact__box {
    background: #fff;
    border: 1px solid #dde4e8;
    padding: 3rem;
}

.assistenza-contact__title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    color: #222;
}

.assistenza-contact__cta-col {
    text-align: center;
}

.assistenza-contact__cta {
    display: inline-block;
    padding: 1rem 2rem;
    background: #1ab3a3;
    color: #fff;
    text-transform: uppercase;
    font-size: .875rem;
    line-height: 1;        /* il maiuscolo stava alto nella line-box -> padding ottico asimmetrico */
    letter-spacing: .05em;
    text-decoration: none;
    border: 1px solid #1ab3a3;
    transition: background-color .15s ease, color .15s ease;
}

.assistenza-contact__cta:hover,
.assistenza-contact__cta:focus {
    background: #fff;
    color: #1ab3a3;
    text-decoration: none;
}

.assistenza-contact__hours-col {
    color: #555;
    line-height: 1.7;
}

.assistenza-contact__hours p:last-child {
    margin-bottom: 0;
}

/* Desktop: CTA verticalmente centrata rispetto al testo di destra */
@media (min-width: 992px) {
    .assistenza-contact__box .row {
        display: flex;
        align-items: center;
    }
}

@media (max-width: 991px) {
    .assistenza-contact__cta-col,
    .assistenza-contact__hours-col {
        text-align: center;
    }
    .assistenza-contact__cta-col {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
    }
}

@media (max-width: 767px) {
    .assistenza-contact__box { padding: 2rem 1.25rem; }
}

/* ---------- Assistenza — support cards grid ---------- */
.assistenza-cards {
    padding: 4rem 0;
}

.assistenza-cards__cell {
    margin-bottom: 1.5rem;
    display: flex;
}

.support-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 280px;
    padding: 2rem 1.5rem;
    background: #fff;
    border: 1px solid #dde4e8;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, transform .2s ease;
}

.support-card--linked:hover,
.support-card--linked:focus {
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.support-card__icon {
    margin: 0 auto 1.5rem;
}

.support-card__icon img {
    display: block;
    max-width: 64px;
    height: auto;
}

.support-card__title {
    margin: 0 0 .75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
}

.support-card__description {
    flex-grow: 1;
    margin: 0 0 1.25rem;
    color: #555;
    line-height: 1.5;
    font-size: .9375rem;
}

.support-card__cta {
    display: inline-block;
    color: #1ab3a3;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .8125rem;
    margin-top: auto;
}

.support-card__cta i,
.support-card__cta .icon--arrow-right {
    margin-left: .25em;
}

/* ---------- Assistenza — free post.content section ---------- */
.assistenza-content {
    padding: 2rem 0 4rem;
}

@media (max-width: 767px) {
    .assistenza-cards { padding: 2.5rem 0; }
    .support-card     { padding: 1.5rem 1.25rem; min-height: 240px; }
}

/* =========================================================================
   Garanzia (warranty / warranty-extension page)
   Reuses the support-card grid for benefits and the vendor .faq-accordion
   graphics for the product-code section.
   ========================================================================= */

/* ---------- Shared section heading (left-aligned; hero stays centered) ---------- */
.garanzia-section__title {
    margin: 0 0 2rem;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 300;
    text-align: left;
    color: #222;
}

/* ---------- Intro ---------- */
.garanzia-intro {
    padding: 3rem 0 1rem;
    text-align: left;
    color: #555;
    line-height: 1.7;
}

.garanzia-intro p:last-child {
    margin-bottom: 0;
}

/* ---------- Benefits / conditions (support-card grid) ---------- */
.garanzia-benefits {
    padding: 3rem 0;
}

.garanzia-benefits .row {
    display: flex;
    flex-wrap: wrap;
}

.garanzia-benefits__cell {
    margin-bottom: 1.5rem;
    display: flex;
}

.garanzia-benefits__terms {
    margin-top: 1.5rem;
    text-align: left;
}

.garanzia-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ec008c;
    color: #fff;
    text-transform: uppercase;
    font-size: .8125rem;
    letter-spacing: .05em;
    text-decoration: none;
    border: 1px solid #ec008c;
    transition: background-color .15s ease, color .15s ease;
}

.garanzia-btn:hover,
.garanzia-btn:focus {
    background: #fff;
    color: #ec008c;
    text-decoration: none;
}

/* =========================================================================
   Product-code accordion — componente custom (no dipendenza da .faq-accordion).
   Header = <button> flex: titolo a sinistra, "clicca per espandere" + icona +/-
   a destra, perfettamente allineati sulla stessa riga. Toggle via JS (is-open).
   ========================================================================= */
.garanzia-accordion {
    padding: 3.5rem 0;
    background: #f3f5f6;
}

.garanzia-accordion__item {
    border-bottom: 1px solid #dde4e8;
}

.garanzia-accordion__item:first-of-type {
    border-top: 1px solid #dde4e8;
}

/* Header: button full-width, reset, flex row con title <-> toggle */
.garanzia-accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 1.15rem 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    color: #222;
    font-family: NeueHelveticaPaneuropean75Bold, Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.3;
    transition: color .15s ease;
}

.garanzia-accordion__head:hover,
.garanzia-accordion__head:focus-visible,
.garanzia-accordion__head.is-active {
    color: #1ab3a3;
}

.garanzia-accordion__title {
    flex: 1 1 auto;
    min-width: 0;
}

.garanzia-accordion__toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .85rem;
}

/* "clicca per espandere" — testo secondario del sito (regular, grigio) */
.garanzia-accordion__hint {
    font-family: NeueHelveticaPaneuropean55Roman, Helvetica, Arial, sans-serif;
    font-size: .8125rem;
    font-weight: 400;
    color: #9da6ab;
    white-space: nowrap;
}

/* hint nascosto quando aperto (lo stato è dato dall'icona -) */
.garanzia-accordion__head.is-active .garanzia-accordion__hint {
    display: none;
}

/* Icona +/- custom: usa currentColor, quindi diventa turchese in hover/active */
.garanzia-accordion__icon {
    position: relative;
    flex: 0 0 auto;
    width: .8rem;
    height: .8rem;
}

.garanzia-accordion__icon::before,
.garanzia-accordion__icon::after {
    content: "";
    position: absolute;
    background: currentColor;
    transition: transform .2s ease;
}

.garanzia-accordion__icon::before {  /* barra verticale */
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    margin-left: -1px;
}

.garanzia-accordion__icon::after {   /* barra orizzontale */
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    margin-top: -1px;
}

/* aperto: la barra verticale ruota -> resta solo la orizzontale (segno -) */
.garanzia-accordion__head.is-active .garanzia-accordion__icon::before {
    transform: rotate(90deg);
}

.garanzia-accordion__body {
    display: none;
    padding: 0 0 1.25rem;
    color: #5a6870;
    line-height: 1.7;
    font-size: .9375rem;
}

.garanzia-accordion__body.is-open {
    display: block;
}

.garanzia-accordion__body p:last-child {
    margin-bottom: 0;
}

/* ---------- Registration form (plugin shortcode embed) ---------- */
.garanzia-form {
    padding: 3.5rem 0;
}

.garanzia-form__intro {
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.7;
}

.gform_required_legend {
    float: right;
}
/* ---------- Free post.content ---------- */
.garanzia-content {
    padding: 2rem 0 4rem;
}

@media (max-width: 767px) {
    .garanzia-benefits,
    .garanzia-accordion,
    .garanzia-form           { padding: 2.5rem 0; }
    .garanzia-section__title { font-size: 1.375rem; }
}

/* Container del form leggermente piu' stretto del .container Bootstrap (1170px);
   lo stile dei campi Gravity Forms vive in main.css (vale per tutti i form). */
.garanzia-form .container {
    max-width: 880px;
}

/* =========================================================================
   Pagina Contatti (hero + box informativi + form)
   Il form eredita lo stile Gravity Forms condiviso definito in main.css.
   ========================================================================= */

/* Titolo di sezione: stesso stile di quello della pagina Garanzia */
.contatti-section__title {
    margin: 0 0 2rem;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 300;
    text-align: left;
    color: #222;
}

/* ---------- Box informativi ---------- */
.contatti-boxes {
    padding: 3rem 0 1rem;
}

.contatti-box {
    max-width: 880px;
    margin: 0 auto 1.5rem;
    padding: 2.25rem 1.5rem;
    background: #f3f5f6;
    text-align: center;
    color: #5a6870;
}

.contatti-box:last-child {
    margin-bottom: 0;
}

.contatti-box__title {
    margin: 0 0 .5rem;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 300;
    color: #5a6870;
}

.contatti-box__text {
    margin: 0 auto;
    max-width: 640px;
    line-height: 1.6;
}

.contatti-box__text p:last-child {
    margin-bottom: 0;
}

.contatti-box__phone {
    display: inline-block;
    margin-top: .5rem;
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 300;
    color: #5a6870;
    text-decoration: none;
}

.contatti-box__phone:hover,
.contatti-box__phone:focus {
    color: #1ab3a3;
    text-decoration: none;
}

.contatti-box__cta {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 1rem 2rem;
    background: #1ab3a3;
    color: #fff;
    text-transform: uppercase;
    font-size: .875rem;
    line-height: 1;
    letter-spacing: .05em;
    text-decoration: none;
    border: 1px solid #1ab3a3;
    transition: background-color .15s ease, color .15s ease;
}

.contatti-box__cta:hover,
.contatti-box__cta:focus {
    background: #fff;
    color: #1ab3a3;
    text-decoration: none;
}

/* ---------- Form + contenuto libero ---------- */
.contatti-form {
    padding: 2.5rem 0 3.5rem;
}

/* Allinea intro e titolo alla larghezza del form (880px, come su Garanzia) */
.contatti-form .container {
    max-width: 880px;
}

.contatti-form__intro {
    margin-bottom: 2rem;
    color: #555;
    line-height: 1.7;
}

.contatti-content {
    padding: 0 0 3rem;
}

@media (max-width: 767px) {
    .contatti-boxes          { padding: 2rem 0 .5rem; }
    .contatti-form           { padding: 1.5rem 0 2.5rem; }
    .contatti-box            { padding: 1.5rem 1.25rem; }
    .contatti-box__title     { font-size: 1.375rem; }
    .contatti-box__phone     { font-size: 1.75rem; }
    .contatti-section__title { font-size: 1.375rem; }
}
