/*
 * Footer del sito ufficiale (OOR_Piede): fascia newsletter, colonne, riga della tessera, fondo.
 * Fondo inchiostro #0b2f40, accenti blu #035F83 / azzurro #bfe3f1.
 */

.footer {
    --pd-fondo: #0b2f40;
    --pd-testo: rgba(255, 255, 255, .72);
    --pd-chiaro: #fff;
    --pd-linea: rgba(255, 255, 255, .12);
    --pd-accento: #bfe3f1;
    background: var(--pd-fondo) !important;
    color: var(--pd-testo);
    font-family: "Jost", Arial, sans-serif;
}
.footer a { color: var(--pd-testo); }

/* --- Newsletter ---------------------------------------------------------- */
.footer .footer-top { padding: 56px 0 0 !important; background: transparent !important; border: 0 !important; }
.footer .footer-subscribe {
    position: relative;
    padding: 36px 40px !important;
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(191, 227, 241, .22), transparent 50%),
        linear-gradient(135deg, #035F83 0%, #024963 100%) !important;
    overflow: hidden;
}
.footer .footer-subscribe > .elementor-container { align-items: center; gap: 32px; }
.footer .footer-subscribe .elementor-column { width: auto !important; flex: 1 1 0; }
.footer .footer-subscribe h4.elementor-heading-title {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-family: "Jost", Arial, sans-serif !important;
    font-size: clamp(22px, 2.4vw, 28px) !important;
    font-weight: 500 !important;
    letter-spacing: -.01em;
}
.footer .footer-subscribe p.elementor-heading-title {
    color: rgba(255, 255, 255, .85) !important;
    font-family: "Jost", Arial, sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}
.footer .footer-subscribe .elementor-invisible { visibility: visible !important; }
.footer .tnp-subscription form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 8px;
    margin: 0;
}
.footer .tnp-subscription .tnp-field { margin: 0 !important; }
.footer .tnp-subscription .tnp-field-email { grid-column: 1; grid-row: 1; }
.footer .tnp-subscription .tnp-field-button { grid-column: 2; grid-row: 1; }
.footer .tnp-subscription .tnp-privacy-field { grid-column: 1 / -1; grid-row: 2; }
.footer .tnp-subscription input.tnp-email {
    width: 100%;
    height: 54px;
    padding: 0 22px !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .1) !important;
    color: #fff !important;
    font-size: 15.5px !important;
}
.footer .tnp-subscription input.tnp-email::placeholder { color: rgba(255, 255, 255, .65); }
.footer .tnp-subscription input.tnp-email:focus { background: rgba(255, 255, 255, .16) !important; border-color: #fff !important; outline: 0; }
.footer .tnp-subscription input.tnp-submit {
    height: 54px;
    padding: 0 30px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #035F83 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.footer .tnp-subscription input.tnp-submit:hover { background: var(--pd-accento) !important; transform: translateY(-1px); }
.footer .tnp-subscription .tnp-privacy-field label { display: flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .8); font-size: 13px; }
.footer .tnp-subscription .tnp-privacy-field a { color: rgba(255, 255, 255, .85) !important; text-decoration: underline; }
.footer .tnp-subscription input.tnp-privacy { width: 16px; height: 16px; accent-color: #fff; margin: 0; }

/* --- Colonne ------------------------------------------------------------- */
.footer .footer-main { padding: 56px 0 24px !important; border: 0 !important; background: transparent !important; }
.footer .footer-main .row > div:first-child { flex: 0 0 34%; max-width: 34%; }
.footer .footer-main .row > div:not(:first-child) { flex: 0 0 22%; max-width: 22%; }
.footer .widget-title {
    margin-bottom: 18px !important;
    color: var(--pd-accento) !important;
    font-family: "Jost", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.footer .widget_nav_menu ul { margin: 0; padding: 0; list-style: none; }
.footer .widget_nav_menu li { margin: 0 0 10px; }
.footer .widget_nav_menu a {
    color: var(--pd-testo) !important;
    font-size: 15px;
    transition: color .2s ease, padding .2s ease;
}
.footer .widget_nav_menu a:hover { color: #fff !important; padding-left: 4px; }

/* Blocco del marchio */
.oor-piede-marchio__logo img { width: 190px; height: auto; margin-bottom: 18px; }
.oor-piede-marchio p { max-width: 340px; margin: 0 0 20px; color: var(--pd-testo); font-size: 15px; line-height: 1.65; }
.oor-piede-contatti { margin: 0 0 22px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.oor-piede-contatti li { margin: 0; }
.oor-piede-contatti a { display: inline-flex; align-items: center; gap: 10px; color: var(--pd-testo) !important; font-size: 14.5px; }
.oor-piede-contatti a:hover { color: #fff !important; }
.oor-piede-contatti svg { flex: none; width: 18px; height: 18px; color: var(--pd-accento); }
.oor-piede-social { display: flex; gap: 10px; }
.oor-piede-social a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    transition: background .2s ease, transform .2s ease;
}
.oor-piede-social a:hover { background: #035F83; transform: translateY(-2px); }
.oor-piede-social .oor-piede-social__whatsapp:hover { background: #1a9e50; }
.oor-piede-social svg { width: 19px; height: 19px; }

/* --- Riga della tessera e fondo ----------------------------------------- */
.footer .footer-bottom { padding: 0 0 28px !important; border: 0 !important; background: transparent !important; }
.footer .footer-bottom .inner-wrap { border-top: 1px solid var(--pd-linea) !important; padding-top: 26px; }
.footer .footer-bottom .footer-right { display: none; }   /* i social ora sono nel blocco del marchio */
.footer .oor-piede-tessera { background: rgba(255, 255, 255, .05); border-color: var(--pd-linea); margin-bottom: 22px; }
.footer .footer-copyright {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    margin: 0;
    color: rgba(255, 255, 255, .55) !important;
    font-size: 13px !important;
    line-height: 1.6;
}
.footer .footer-copyright .oor-firma { display: inline; margin: 0; font-size: 13px; opacity: 1; color: rgba(255, 255, 255, .55); }
.footer .footer-copyright .oor-firma a { color: rgba(255, 255, 255, .8) !important; }

/* --- Tablet e smartphone ------------------------------------------------- */
@media (max-width: 991px) {
    .footer .footer-main .row > div:first-child { flex: 0 0 100%; max-width: 100%; margin-bottom: 28px; }
    .footer .footer-main .row > div:not(:first-child) { flex: 0 0 33.333%; max-width: 33.333%; }
    .footer .footer-subscribe > .elementor-container { flex-direction: column; align-items: stretch; gap: 20px; }
}
@media (max-width: 767px) {
    .footer .footer-top { padding-top: 32px !important; }
    .footer .footer-subscribe { padding: 26px 20px !important; border-radius: 20px; margin: 0 4px; }
    .footer .footer-subscribe .elementor-widget-heading { text-align: left !important; }
    .footer .footer-subscribe h4.elementor-heading-title,
    .footer .footer-subscribe p.elementor-heading-title { text-align: left !important; }
    .footer .tnp-subscription form { grid-template-columns: minmax(0, 1fr); }
    .footer .tnp-subscription .tnp-field-button { grid-column: 1; grid-row: 2; }
    .footer .tnp-subscription .tnp-privacy-field { grid-row: 3; }
    .footer .tnp-subscription input.tnp-submit { width: 100%; }
    .footer .footer-main { padding-top: 40px !important; }
    .footer .footer-main .row > div:not(:first-child) { flex: 0 0 50%; max-width: 50%; margin-bottom: 18px; }
    .footer .footer-main .row > div:last-child { flex-basis: 100%; max-width: 100%; }
    .footer .footer-copyright { flex-direction: column; align-items: flex-start; }
}

/* Il carrello e' nascosto in modalita' catalogo: niente buco nella colonna */
.footer .widget_nav_menu li:has(> a[href*="/carrello"]) { display: none; }

/* --- Due tonalità: fascia newsletter nel blu del marchio, resto nel blu scuro --- */
.footer .footer-top {
    padding: 52px 0 !important;
    background:
        radial-gradient(circle at 85% 0%, rgba(191, 227, 241, .18), transparent 45%),
        linear-gradient(135deg, #035F83 0%, #02506f 100%) !important;
}
/* Dentro la fascia la newsletter non e' piu' una scheda: sta direttamente sul blu */
.footer .footer-subscribe {
    padding: 0 !important;
    border-radius: 0;
    background: transparent !important;
    overflow: visible;
}
.footer .tnp-subscription input.tnp-email { background: rgba(11, 47, 64, .28) !important; border-color: rgba(255, 255, 255, .3) !important; }
.footer .tnp-subscription input.tnp-email:focus { background: rgba(11, 47, 64, .4) !important; }
.footer .tnp-subscription input.tnp-submit { background: #0b2f40 !important; color: #fff !important; }
.footer .tnp-subscription input.tnp-submit:hover { background: #fff !important; color: #035F83 !important; }

/* Nel blu scuro gli accenti tornano al blu del marchio */
.footer .footer-main { padding-top: 60px !important; }
.oor-piede-social a { background: rgba(3, 95, 131, .55); }
.oor-piede-social a:hover { background: #035F83; }
.footer .oor-piede-tessera { background: rgba(3, 95, 131, .35); border-color: rgba(191, 227, 241, .18); }
.footer .footer-bottom .inner-wrap { border-top-color: rgba(191, 227, 241, .14) !important; }

@media (max-width: 767px) {
    .footer .footer-top { padding: 36px 0 !important; }
    .footer .footer-subscribe { padding: 0 !important; margin: 0; }
}
@media (max-width: 991px) {
    /* Con le colonne una sotto l'altra, flex-basis 0 le schiacciava a 1px: altezza naturale */
    .footer .footer-subscribe .elementor-column { flex: none !important; width: 100% !important; }
    .footer .footer-subscribe > .elementor-container { flex-wrap: wrap; }
}
@media (max-width: 767px) {
    .footer .footer-top .footer-subscribe { padding: 0 12px !important; }
}
