@charset "UTF-8";

.footer {
    background: linear-gradient(160deg, var(--color-onaccent) 0, var(--bg-info-2) 100%);
    border-top: 1px solid var(--color-primary);
    padding: 20px 10px 0;
    color: var(--color-text-dark);
    box-shadow: inset 0 10px 20px rgba(3, 125, 211, 0.03);
    overflow: hidden;
    margin-top: 10px;
    text-align: center;
}

.footer__top-section {
    margin: 0 0 10px 0;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}

.footer__middle-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 0 0 40px 0;
}

.footer__columns-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.footer__social {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.footer .mobile-only { display:block; }
.footer .desktop-only { display:none; }

.footer-social-link {
    display: inline-block;
    margin: 0 5px;
    transition: transform 0.3s;
}

.footer-social-link a {
    display: block;
    transition: opacity 0.3s;
}

.footer-social-link svg {
    width: 24px;
    height: 24px;
    fill: var(--color-primary);
    transition: fill 0.3s, transform 0.3s;
}

.footer-social-link:hover {
    transform: scale(1.1);
}



/* Facebook - Blu Navy profondo */
.footer-social-link.facebook:hover svg {
    fill: #0866FF !important; 
}

/* LinkedIn - Blu Enterprise (più saturo) */
.footer-social-link a[href*="linkedin"]:hover svg {
    fill: #0077B5 !important;
}

/* Instagram (usa la classe .instagram) */

.footer-social-link.instagram:hover svg { fill: #E4405F !important; }

/* YouTube (non ha classe, usiamo il selettore per l'attributo href) */
.footer-social-link a[href*="youtube"]:hover svg {
    fill: #FF0000 !important;
}

/* TikTok (non ha classe, usiamo il selettore per l'attributo href) */
.footer-social-link a[href*="tiktok"]:hover svg {
    fill: #000000 !important;
}

/* Forza la fluidità della transizione */
.footer-social-link svg {
    transition: fill 0.3s ease-in-out, transform 0.3s ease !important;
}

.footer__column {
    width: 100%;
    background-color: var(--bg-info);
    padding: 15px;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 6px rgba(3, 125, 211, 0.08);
    margin-bottom: 10px;
}

.footer__menu-title, 
.footer__contact-title {
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    padding: 12px;
    padding-right: 25px;
    border-radius: var(--radius);
    background-color: transparent;
    text-align: center;
}

.footer__contact-title::after,
.footer__menu-title::after {
    content: "▼";
    font-size: 14px;
    transition: transform 0.3s;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.footer__contact-title.active::after,
.footer__menu-title.active::after {
    transform: translateY(-50%) rotate(180deg);
}

.footer__column-content {
    display: none;
    padding: 10px;
}

.footer__menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__menu-item {
    margin-bottom: 8px;
}

.footer__menu-item a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s, padding 0.3s;
    opacity: 0.9;
    display: block;
    padding: 5px 0;
}

.footer__menu-item a:hover {
    color: var(--color-primary);
    opacity: 1;
    padding-left: 5px;
}

.footer__contact-item {
    gap: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 5px 0;
}

.contact-icon {
    width: 16px;
    height: 16px;
}

.footer__contact-item a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer__contact-item a:hover {
    color: var(--color-primary);
}

.footer__bottom-bar {
    padding: 4px 0;
    background: linear-gradient(160deg, var(--color-onaccent) 0, var(--bg-info-2) 100%);
}

.footer__bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
}

.footer__aicel {
    display: flex;
    gap: 10px;
}

.footer__payments {
    display: flex;
    gap: 10px;
    justify-content: center;   
}

.footer__legal {
    background-color: transparent;
    color: var(--color-text-dark);
    padding: 0;
    text-align: center;
    font-size: 5px;
    border-top: none;
    order: 2;
    max-width: 100%;
}

.footer__legal-text {
    margin: 0;
    line-height: 1.2;
      white-space: nowrap;        
    overflow: hidden;           
    text-overflow: ellipsis;
}
.footer__legal p {
    display: inline;
    margin: 0;
    padding: 0;
}

.footer__aicel {
    order: 1;
}
.footer__aicel img {
    max-width: 120px;
    height: auto;
}
.footer__payment-logos {
    flex-wrap: wrap;
}
.footer__payment-logos .product__payments_cards {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px;
    line-height: 0;
}
.footer__payment-logos .product__payments_cards img {
    max-width: 28px;
    max-height: 20px;
    height: auto;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s, filter 0.3s;
}

.footer__payment-logos .product__payments_cards img:hover {
    transform: scale(1.12);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2)) brightness(1.2);
}


/* ============================================
   NEWSLETTER POPUP - Blocco completo e definitivo
   ============================================ */

/* Overlay */
.newsletter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-overlay-gallery);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* Container principale */
.newsletter-popup-container {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-info) 100%);
    border-radius: var(--radius-lg);
    max-width: 90%;
    width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(3, 125, 211, 0.3);
    border: 2px solid var(--color-accent);
}

/* Bottone chiusura */
.newsletter-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    background: var(--color-accent);
    color: var(--color-onaccent);
    border: none;
    border-radius: var(--radius-circle);
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    font-weight: 300;
    box-shadow: 0 4px 12px rgba(3, 125, 211, 0.2);
}

.newsletter-popup-close:hover {
    background: var(--color-primary);
    transform: rotate(90deg) scale(1.1);
}

/* Form wrapper */
.newsletter-popup-form {
    padding: 50px 40px 40px;
}


/* Form */
.newsletter-popup-form #newsletter-form-popup {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Input email */
.newsletter-popup-form #newsletter-email-popup {
    padding: 10px 40px;
    margin: 10px 0;
    border: 2px solid var(--border-info);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-primary);
    color: var(--color-text-dark);
    width: 100%;
    box-sizing: border-box;
}
.newsletter-popup-form #newsletter-email-popup:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(3, 125, 211, 0.1);
    transform: translateY(-2px);
}

.newsletter-popup-form #newsletter-email-popup::placeholder {
    color: var(--color-gray);
}

/* Checkbox consenso */
.newsletter-popup-form .fake-consent {
    font-size: 14px;
    color: var(--color-text-dark);
    user-select: none;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.newsletter-popup-form .fake-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--color-primary);
}

.newsletter-popup-form .fake-consent span {
    flex: 1;
}

/* Bottone submit */
.newsletter-popup-form #newsletter-submit-btn-popup {
    font-size: 16px;
    color: var(--color-onaccent);
    border: none;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(3, 125, 211, 0.25);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.newsletter-popup-form #newsletter-submit-btn-popup:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(3, 125, 211, 0.4);
}

.newsletter-popup-form #newsletter-submit-btn-popup:active {
    transform: translateY(-1px);
}

/* Stato disabilitato */
.newsletter-popup-form #newsletter-submit-btn-popup[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
}

/* Icona bottone */
.newsletter-popup-form .button-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    margin-right: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.newsletter-popup-form #newsletter-submit-btn-popup:hover .button-icon {
    transform: translateX(5px);
}

.newsletter-popup-form #btn-text-popup {
    position: relative;
    z-index: 1;
}

/* Messaggi */
.newsletter-popup-form #newsletter-message-popup {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.newsletter-popup-form #newsletter-message-popup.success {
    background: linear-gradient(135deg, var(--bg-success) 0%, var(--bg-success) 100%);
    color: var(--color-success);
    border: 2px solid var(--color-success);
    box-shadow: 0 4px 12px rgba(0, 118, 0, 0.2);
}

.newsletter-popup-form #newsletter-message-popup.error {
    background: linear-gradient(135deg, var(--bg-danger) 0%, var(--bg-danger) 100%);
    color: var(--color-danger);
    border: 2px solid var(--color-danger);
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.2);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .newsletter-popup-container {
        max-width: 95%;
        margin: 10px;
    }
    
    .newsletter-popup-form {
        padding: 40px 25px 30px;
    }
    .newsletter-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
    
    .newsletter-popup-form #newsletter-email-popup {
        padding: 10px 30px;
        margin: 10px 0;
        font-size: 15px;
    }
    
    .newsletter-popup-form #newsletter-submit-btn-popup {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .newsletter-popup-form .fake-consent {
        font-size: 13px;
    }
}
/* Newsletter Button Styles */
.footer-newsletter-content .footer-newsletter-right {
    justify-content: center;
    margin-top: 20px;
}

.footer-newsletter-content .footer-newsletter-right a {
    font-size: 14px;
    color: var(--text-input-submit);
    border: 2px solid var(--color-accent);
    background: var(--color-accent);
    padding: 8px 20px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    width: 30vh;
}


.footer-newsletter-content .footer-newsletter-right a:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    color: var(--color-onaccent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(3, 125, 211, 0.35);
    border-color: var(--color-primary);
}

.footer-newsletter-content .footer-newsletter-right a:active {
    transform: translateY(-1px) scale(1.01);
    transition: all 0.1s ease;
}

.button-icon {
    width: 16px;
    height: 16px;
    fill: var(--text-input-submit);
    margin-right: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-newsletter-content .footer-newsletter-right a:hover .button-icon {
    fill: var(--color-onaccent);
    transform: translateX(4px) rotate(10deg);
}

@media (min-width: 480px) {
    .footer {
        padding: 30px 15px 0;
    }
    
    .footer-social-link svg {
        width: 28px;
        height: 28px;
    }
    
    .footer__contact-title,
    .footer__menu-title {
        font-size: 17px;
    }
    
    .footer__contact-item a,
    .footer__menu-item a {
        font-size: 15px;
    }
    
    .footer__legal {
        font-size: 8px;
        padding: 10px 15px;
    }
    
    .footer__aicel img {
        max-width: 150px;
    }
    
    .footer__payment-logos .product__payments_cards img {
        max-width: 32px;
        max-height: 24px;
        margin: 0 5px;
    }
    
    .footer__bottom-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0;
        gap: 8px;
    }
    
    .footer__legal {
        font-size: 6px;
        order: 2;
        flex: 0 1 auto;
        max-width: 40%;
        padding: 0 15px;
    }
    
    .footer__aicel {
        order: 1;
        flex: 0 0 auto;
    }
}


@media (min-width: 1024px) {
  .footer .mobile-only { display:none; }
  .footer .desktop-only { display:block; }
    
    .footer__legal {
        font-size: 9px;
    }
    
    .footer__payment-logos .product__payments_cards img {
        max-width: 35px;
        max-height: 25px;
    }
    .footer {
        padding: 10px 0;
        text-align: left;
    }
    
    .footer__top-section {
        justify-content: flex-start;
        flex-direction: row;
        text-align: left;
    }
    
    .footer__middle-section {
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer__columns-container {
        flex-direction: row;
        gap: 20px;
    }
    
    .footer__column {
        flex: 1;
        padding: 0 20px;
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    
    .footer__menu-title, 
    .footer__contact-title {
        font-size: 18px;
        margin-bottom: 15px;
        cursor: default;
        padding: 0;
        text-align: left;
    }
    
    .footer__contact-title::after,
    .footer__menu-title::after {
        display: none;
    }
    
    .footer__column-content {
        display: block;
        padding: 0;
    }
    
    .footer__menu-list {
        gap: 0;
    }
    
    .footer__menu-item a {
        padding: 0;
    }
    
    .footer__contact-item {
        padding: 0;
        text-align: left;
    }
    
    .footer__social {
        justify-content: flex-start;
    }
    
    .footer__bottom-content {
        flex-direction: row;
        justify-content: space-between;
        padding: 0;
    }

    .footer__middle-section {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: row;
        gap: 30px;
    }
    
    .footer__columns-container {
        flex: 3;
        gap: 30px;
    }
    
    .footer__contact-social-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
    }
    
    .footer__contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .footer__social {
        margin-top: 20px;
    }
    
    .footer__column--contacts {
        padding-bottom: 40px;
    }
}
@media (min-width: 1400px) {
    .footer__columns-container {
        gap: 40px;
    }
    
    .footer__column {
        padding: 0 30px;
    }
}


/* Newsletter Popup Form Styles */
.newsletter-popup-form {
    padding: 30px;
}

.newsletter-popup-form #newsletter-form-popup {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

.newsletter-popup-form #newsletter-email-popup {
    padding: 12px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 16px;
    transition: border-color 0.3s;
}

.newsletter-popup-form #newsletter-email-popup:focus {
    outline: none;
    border-color: var(--color-primary);
}

.newsletter-popup-form .fake-consent {
    font-size: 14px;
    color: var(--color-text-dark);
    user-select: none;
}

.newsletter-popup-form .fake-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.newsletter-popup-form #newsletter-submit-btn-popup {
    font-size: 16px;
    color: var(--text-input-submit);
    border: 2px solid var(--color-accent);
    background: var(--color-accent);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.newsletter-popup-form #newsletter-submit-btn-popup:hover {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--color-primary) 100%);
    color: var(--color-onaccent);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(3, 125, 211, 0.35);
    border-color: var(--color-primary);
}

.newsletter-popup-form #newsletter-submit-btn-popup[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-popup-form #newsletter-message-popup {
    padding: 12px;
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.newsletter-popup-form #newsletter-message-popup.success {
    background: var(--bg-success);
    color: var(--color-success);
    border: 1px solid var(--bg-success);
}

.newsletter-popup-form #newsletter-message-popup.error {
    background: var(--bg-danger);
    color: var(--color-danger);
    border: 1px solid var(--bg-danger);
}

.newsletter-popup-form .button-icon {
    width: 18px;
    height: 18px;
    fill: var(--text-input-submit);
    margin-right: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter-popup-form #newsletter-submit-btn-popup:hover .button-icon {
    fill: var(--color-onaccent);
    transform: translateX(4px) rotate(10deg);
}

/* Newsletter item nel footer */
.footer__contact-item--newsletter {
    background: linear-gradient(135deg, rgba(3, 125, 211, 0.05) 0%, rgba(3, 125, 211, 0.1) 100%);
    border-radius: var(--radius-md);
    padding: 12px !important;
    margin-top: 15px;
    border: 1px solid rgba(3, 125, 211, 0.2);
    transition: all 0.3s ease;
}

.footer__contact-item--newsletter:hover {
    background: linear-gradient(135deg, rgba(3, 125, 211, 0.1) 0%, rgba(3, 125, 211, 0.15) 100%);
    border-color: var(--color-primary);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(3, 125, 211, 0.15);
}

.footer__contact-item--newsletter .contact-icon svg {
    width: 18px;
    height: 18px;
}

.footer__contact-item--newsletter .footer-newsletter-link {
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
    transition: color 0.3s;
}

.footer__contact-item--newsletter:hover .footer-newsletter-link {
    color: var(--color-primary);
}

.footer__contact-item--newsletter .newsletter-footer-text strong {
    color: var(--color-primary);
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

@media (max-width: 1023px) {
    .footer__contact-item--newsletter {
        padding: 10px !important;
    }
    
    .footer__contact-item--newsletter .footer-newsletter-link {
        font-size: 13px;
    }
}
/* Container base: aggiungiamo un padding e border-radius per il gradiente */
.footer-social-link.instagram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* Arrotonda gli angoli dello sfondo */
    transition: background 0.4s ease, transform 0.3s ease;
    width: 36px;  /* Leggermente più grande dell'icona */
    height: 36px;
}

/* Hover: Appare il gradiente originale sullo sfondo */
.footer-social-link.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
    transform: scale(1.1);
}

/* Hover: L'icona SVG (tracciati) diventa bianca sopra il gradiente */
.footer-social-link.instagram:hover svg path {
    fill: #ffffff !important;
}

/* Transizione fluida per il colore dell'icona */
.footer-social-link.instagram svg path {
    transition: fill 0.3s ease;
}
.footer__cookie-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: inherit;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer__cookie-btn:hover {
    color: var(--color-primary-hover);
}