/* =========================================================
   FOOTER MODERNO PISCINE ITALIA
   ========================================================= */

#pi-footer,
#pi-footer * {
    box-sizing: border-box;
}

#pi-footer {
    --pi-footer-blue: #087c96;
    --pi-footer-blue-dark: #07384a;
    --pi-footer-blue-deep: #034e66;
    --pi-footer-cyan: #15a6c2;
    --pi-footer-soft: #eef8fb;
    --pi-footer-border: #dce9ee;
    --pi-footer-text: #082f3f;
    --pi-footer-muted: #5e7380;
    --pi-footer-black: #171717;

    width: 100%;
    margin: 0px;
    background: #ffffff;
    color: var(--pi-footer-text);
    font-family: Lato, "Segoe UI", Helvetica, Arial, sans-serif;
}

#pi-footer button,
#pi-footer input,
#pi-footer select,
#pi-footer textarea {
    font-family: inherit;
}

#pi-footer a {
    color: inherit;
    text-decoration: none;
}

#pi-footer a:hover,
#pi-footer a:focus {
    outline: none;
}

/* =========================================================
   ALTRI SITI
   ========================================================= */

#pi-footer .pi-footer-sites {
    width: 100%;
    padding: 14px 30px;
    background: #ffffff;
    border-top: 1px solid #edf3f5;
    border-bottom: 1px solid #edf3f5;
}

#pi-footer .pi-footer-sites details {
    width: 100%;
}

#pi-footer .pi-footer-sites summary {
    min-height: 44px;
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--pi-footer-text);
    font-size: 16px;
    font-weight: 900;
}

#pi-footer .pi-footer-sites summary::-webkit-details-marker {
    display: none;
}

#pi-footer .pi-footer-sites summary::after {
    content: "+";
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ffffff;
    border: 1px solid var(--pi-footer-border);
    color: var(--pi-footer-blue);
    font-size: 22px;
    line-height: 1;
}

#pi-footer .pi-footer-sites details[open] summary::after {
    content: "−";
}

#pi-footer .pi-footer-sites__grid {
    padding-top: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

#pi-footer .pi-footer-site {
    position: relative;
    min-height: 138px;
    padding: 15px;
    border-radius: 20px;
    overflow: hidden;
    background:
        /*linear-gradient(180deg, rgba(3,56,74,.08) 0%, rgba(3,56,74,.45) 48%, rgba(3,56,74,.88) 100%),*/
        var(--pi-site-bg),
        linear-gradient(135deg, #087c96 0%, #034e66 100%);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(8,124,150,.18);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 12px 28px rgba(7,56,74,.08);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

#pi-footer .pi-footer-site::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transform: scale(1.01);
    transition: transform .24s ease;
    z-index: 0;
}

#pi-footer .pi-footer-site::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3,56,74,.05) 0%, rgba(3,56,74,.34) 42%, rgba(3,56,74,.88) 100%);
    z-index: 1;
}

#pi-footer .pi-footer-site:hover,
#pi-footer .pi-footer-site:focus {
    border-color: rgba(8,124,150,.45);
    box-shadow: 0 18px 36px rgba(7,56,74,.14);
    transform: translateY(-2px);
    outline: none;
}

#pi-footer .pi-footer-site:hover::before,
#pi-footer .pi-footer-site:focus::before {
    transform: scale(1.06);
}

#pi-footer .pi-footer-site__title,
#pi-footer .pi-footer-site__domain {
    position: relative;
    z-index: 2;
}

#pi-footer .pi-footer-site__title {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -.02em;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0,0,0,.38);
}

#pi-footer .pi-footer-site__domain {
    color: #9ee5f5;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    word-break: break-word;
    text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

/* =========================================================
   FASCIA BLU
   ========================================================= */

#pi-footer .pi-footer-main {
    width: 100%;
    padding: 38px 30px 34px;
    background:
        radial-gradient(circle at 12% 0%, rgba(255,255,255,.20), rgba(255,255,255,0) 34%),
        linear-gradient(115deg, #16a9c5 0%, var(--pi-footer-blue) 48%, var(--pi-footer-blue-deep) 100%);
    color: #ffffff;
}

#pi-footer .pi-footer-main__inner {
    width: 100%;
    display: grid;
    grid-template-columns:
        minmax(230px, 1fr)
        minmax(180px, .8fr)
        minmax(180px, .8fr)
        minmax(180px, .8fr)
        minmax(180px, .8fr)
        minmax(280px, 1fr);
    gap: 26px;
    align-items: start;
}

#pi-footer .pi-footer-brand__logo {
    display: block;
    max-width: 230px;
    height: auto;
    margin-bottom: 18px;
}

#pi-footer .pi-footer-company {
    color: rgba(255,255,255,.90);
    font-size: 14px;
    line-height: 1.58;
    font-weight: 500;
}

#pi-footer .pi-footer-company strong {
    color: #ffffff;
    font-weight: 900;
}

#pi-footer .pi-footer-company a {
    color: #ffffff;
    font-weight: 800;
}

#pi-footer .pi-footer-company a:hover,
#pi-footer .pi-footer-company a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Colonne */
#pi-footer .pi-footer-group {
    color: #ffffff;
}

#pi-footer .pi-footer-group summary {
    list-style: none;
    cursor: default;
}

#pi-footer .pi-footer-group summary::-webkit-details-marker {
    display: none;
}

#pi-footer .pi-footer-title {
    display: block;
    margin: 0 0 15px;
    padding-bottom: 11px;
    border-bottom: 1px solid rgba(255,255,255,.30);
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

#pi-footer .pi-footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 9px;
}

#pi-footer .pi-footer-list a {
    color: rgba(255,255,255,.92);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

#pi-footer .pi-footer-list a::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    flex: 0 0 auto;
}

#pi-footer .pi-footer-list a:hover,
#pi-footer .pi-footer-list a:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Colonna servizi nuova */
#pi-footer .pi-footer-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 13px;
}

#pi-footer .pi-footer-service-list li {
    padding: 0;
    margin: 0;
}

#pi-footer .pi-footer-service-list a {
    display: block;
    color: rgba(255,255,255,.92);
}


#pi-footer .pi-footer-service-list a:hover,
#pi-footer .pi-footer-service-list a:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#pi-footer .pi-footer-service-list strong {
    display: block;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.22;
    font-weight: 900;
    margin-bottom: 3px;
}

#pi-footer .pi-footer-service-list span {
    display: block;
    color: rgba(255,255,255,.78);
    font-size: 12.8px;
    line-height: 1.38;
    font-weight: 600;
}

/* Social */
#pi-footer .pi-footer-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#pi-footer .pi-footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    color: #ffffff;
    font-weight: 900;
    transition: background .18s ease, transform .18s ease;
}

#pi-footer .pi-footer-social a:hover,
#pi-footer .pi-footer-social a:focus {
    background: rgba(255,255,255,.24);
    transform: translateY(-1px);
}

/* Newsletter */
#pi-footer .pi-footer-newsletter {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
}

#pi-footer .pi-footer-newsletter__title {
    display: block;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.025em;
    margin-bottom: 8px;
}

#pi-footer .pi-footer-newsletter__text {
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.45;
    margin: 0 0 15px;
}

#pi-footer .pi-footer-newsletter__form-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-bottom: 10px;
}

#pi-footer .pi-footer-newsletter input[type="email"] {
    width: 100%;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #16313d;
    padding: 0 16px;
    font-family: inherit;
    font-size: 14px;
}

#pi-footer .pi-footer-newsletter button {
    height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: #ffffff;
    color: var(--pi-footer-blue-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, transform .18s ease;
}

#pi-footer .pi-footer-newsletter button:hover,
#pi-footer .pi-footer-newsletter button:focus {
    background: #dff6fb;
    transform: translateY(-1px);
}

#pi-footer .pi-footer-newsletter__privacy {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    color: rgba(255,255,255,.82);
    font-size: 11.5px;
    line-height: 1.38;
}

#pi-footer .pi-footer-newsletter__privacy input {
    margin-top: 2px;
}

#pi-footer .pi-footer-newsletter__privacy a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* =========================================================
   BARRA NERA UNICA
   ========================================================= */

#pi-footer .pi-footer-legal {
    width: 100%;
    background: #171717;
    color: #ffffff;
    padding: 14px 30px;
}

#pi-footer .pi-footer-legal__inner {
    width: 100%;
    display: grid;

    /*
     * SX: copyright può essere più compatto
     * CENTRO: manteniamo spazio ai pagamenti
     * DX: allarghiamo i link e riserviamo spazio al robot
     */
    grid-template-columns:
        minmax(270px, .72fr)
        minmax(420px, 1.25fr)
        minmax(350px, 1fr);

    align-items: center;
    gap: 18px;
}

#pi-footer .pi-footer-legal__copy {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.35;
    padding-left: 58px; /* evita sovrapposizione con widget cookie */
}

#pi-footer .pi-footer-legal__payments {
    min-width: 0;
    display: flex;
    justify-content: center;
}

#pi-footer .pi-footer-paystrip {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

#pi-footer .pi-footer-paystrip__label {
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.16);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
}

#pi-footer .pi-footer-paystrip__icon {
    width: 15px;
    height: 15px;
    display: grid;
    place-items: center;
    color: #9ee5f5;
}

#pi-footer .pi-footer-paystrip__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#pi-footer .pi-footer-paybadge {
    min-height: 28px;
    padding: 0 10px;
    border-radius: 8px;
    background: #ffffff;
    color: #182b35;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    font-weight: 950;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
}

#pi-footer .pi-footer-paybadge--visa {
    color: #174a9c;
}

#pi-footer .pi-footer-paybadge--mastercard {
    color: #111111;
}

#pi-footer .pi-footer-paybadge--maestro {
    color: #1b4f9c;
}

#pi-footer .pi-footer-paybadge--paypal {
    color: #003087;
}

#pi-footer .pi-footer-paybadge--postepay {
    background: #ffdf35;
    color: #153b7c;
}

#pi-footer .pi-footer-paybadge--bank {
    background: #eef8fb;
    color: #07384a;
}

#pi-footer .pi-footer-paybadge--cash {
    background: #f4f6f7;
    color: #24333a;
}

#pi-footer .pi-footer-paybadge--rate {
    background: #dff6fb;
    color: #087c96;
}

#pi-footer .pi-footer-legal__links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;

    padding-right: 78px; /* spazio riservato al widget robot */
}

#pi-footer .pi-footer-legal__links a {
    color: rgba(255,255,255,.88);
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
}

#pi-footer .pi-footer-legal__links a:hover,
#pi-footer .pi-footer-legal__links a:focus {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1380px) {
    #pi-footer .pi-footer-main__inner {
        grid-template-columns:
            minmax(220px, .95fr)
            repeat(4, minmax(150px, .75fr))
            minmax(270px, .95fr);
        gap: 22px;
    }

    #pi-footer .pi-footer-brand__logo {
        max-width: 200px;
    }
}

@media (max-width: 1180px) {
    #pi-footer .pi-footer-sites {
        padding: 18px 16px;
    }

    #pi-footer .pi-footer-sites__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #pi-footer .pi-footer-site {
        min-height: 150px;
    }

    #pi-footer .pi-footer-main {
        padding: 34px 16px 30px;
    }

    #pi-footer .pi-footer-main__inner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px;
    }

    #pi-footer .pi-footer-brand,
    #pi-footer .pi-footer-newsletter {
        grid-column: span 3;
    }

    #pi-footer .pi-footer-brand__logo {
        max-width: 220px;
    }

    #pi-footer .pi-footer-legal {
        padding-left: 16px;
        padding-right: 16px;
    }

    #pi-footer .pi-footer-legal__inner {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }

    #pi-footer .pi-footer-legal__copy {
        padding-left: 0;
    }

    #pi-footer .pi-footer-legal__links {
        justify-content: center;
        padding-right: 0;
    }
}

@media (max-width: 760px) {
    #pi-footer .pi-footer-sites__grid {
        grid-template-columns: 1fr;
    }
	
    #pi-footer .pi-footer-site {
        min-height: 155px;
    }

    #pi-footer .pi-footer-main {
        padding: 30px 16px 26px;
    }

    #pi-footer .pi-footer-main__inner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    #pi-footer .pi-footer-brand,
    #pi-footer .pi-footer-newsletter {
        grid-column: auto;
    }

    #pi-footer .pi-footer-brand {
        margin-bottom: 12px;
    }

    #pi-footer .pi-footer-group {
        border-top: 1px solid rgba(255,255,255,.20);
    }

    #pi-footer .pi-footer-group summary {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    #pi-footer .pi-footer-group summary::after {
        content: "+";
        font-size: 24px;
        line-height: 1;
        font-weight: 700;
        color: rgba(255,255,255,.88);
    }

    #pi-footer .pi-footer-group[open] summary::after {
        content: "−";
    }

    #pi-footer .pi-footer-title {
        margin: 0;
        padding: 0;
        border-bottom: 0;
    }

    #pi-footer .pi-footer-list,
    #pi-footer .pi-footer-service-list {
        padding: 0 0 18px;
    }

    #pi-footer .pi-footer-newsletter {
        margin-top: 14px;
        padding: 18px;
    }

    #pi-footer .pi-footer-newsletter__form-row {
        grid-template-columns: 1fr;
    }

    #pi-footer .pi-footer-newsletter button {
        width: 100%;
    }

    #pi-footer .pi-footer-newsletter__privacy {
        font-size: 11px;
    }

    #pi-footer .pi-footer-legal__links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #pi-footer .pi-footer-paybadge {
        font-size: 10px;
        padding: 0 8px;
    }
}

@media (max-width: 420px) {
    #pi-footer .pi-footer-sites,
    #pi-footer .pi-footer-main,
    #pi-footer .pi-footer-legal {
        padding-left: 10px;
        padding-right: 10px;
    }

    #pi-footer .pi-footer-brand__logo {
        max-width: 190px;
    }

    #pi-footer .pi-footer-sites summary {
        font-size: 15px;
    }
}