@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

.main-footer {
    background-color: #f7f9fc; /* Sfondo leggero */
    color: #4a4a4a; /* Testo più scuro per maggiore discrezione */
    font-family: 'Inter', sans-serif;
    padding: 30px 20px; /* RIDOTTO: Padding verticale del footer principale */
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03); /* Ombra più leggera */
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px; /* RIDOTTO: Spazio tra le sezioni del footer */
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px; /* RIDOTTO: Margine inferiore tra le sezioni */
}

.footer-title { /* Classe specifica per i titoli del footer */
    color: #666; /* Tono più discreto per i titoli */
    font-size: 1rem; /* RIDOTTO: Titoli leggermente più piccoli */
    margin-bottom: 10px; /* RIDOTTO: Margine sotto i titoli */
    font-weight: 600; /* Meno bold */
}

.footer-section p {
    font-size: 0.85rem; /* RIDOTTO: Testo del paragrafo più piccolo */
    line-height: 1.5; /* RIDOTTO: Line-height leggermente più compatto */
    margin-bottom: 8px; /* RIDOTTO: Margine sotto i paragrafi */
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 6px; /* RIDOTTO: Margine tra gli elementi della lista */
}

.footer-section a {
    color: #777; /* Colore link ancora più discreto */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #0066cc; /* Blue on hover per coerenza */
    text-decoration: underline;
}

/* --- STILI PULSANTE PWA INSTALL --- */
.pwa-install-wrapper {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

/* CTA footer: pill scura (come soft prompt) + flow lilac/home intorno */
.pwa-footer-install-cta {
    --pwa-lilac: #e3e8ff;
    --pwa-fuchsia: #eb7dff;
    --pwa-yellow: #ffcb64;
    --pwa-lime: #dcff90;
    --pwa-blue: #4f7cff;
    --pwa-spin: 0deg;
    position: relative;
    display: inline-flex;
    max-width: 100%;
    isolation: auto;
    overflow: visible;
    padding: 3px;
    border-radius: 999px;
}

.pwa-footer-install-cta__glow {
    position: absolute;
    inset: -8px;
    z-index: 0;
    border-radius: 999px;
    pointer-events: none;
    background: conic-gradient(
        from var(--pwa-spin, 0deg),
        transparent 0deg,
        transparent 200deg,
        color-mix(in srgb, var(--pwa-lilac) 70%, transparent) 230deg,
        color-mix(in srgb, var(--pwa-blue) 75%, transparent) 260deg,
        color-mix(in srgb, var(--pwa-fuchsia) 80%, transparent) 295deg,
        color-mix(in srgb, var(--pwa-yellow) 70%, transparent) 325deg,
        color-mix(in srgb, var(--pwa-lime) 55%, transparent) 345deg,
        transparent 360deg
    );
    filter: blur(12px);
    opacity: 0;
    animation:
        pwaPromptSpin 3.2s linear infinite,
        pwaPromptAuraDuty 14s ease-in-out infinite;
    animation-play-state: paused;
}

.pwa-footer-install-cta__ring {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 999px;
    padding: 1.5px;
    pointer-events: none;
    background: conic-gradient(
        from var(--pwa-spin, 0deg),
        transparent 0deg,
        transparent 195deg,
        var(--pwa-blue) 240deg,
        var(--pwa-fuchsia) 285deg,
        var(--pwa-yellow) 320deg,
        var(--pwa-lime) 345deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation:
        pwaPromptSpin 3.2s linear infinite,
        pwaPromptAuraDuty 14s ease-in-out infinite;
    animation-play-state: paused;
}

.pwa-footer-install-cta.is-in-view .pwa-footer-install-cta__glow,
.pwa-footer-install-cta.is-in-view .pwa-footer-install-cta__ring {
    animation-play-state: running;
}

.pwa-install-btn {
    flex-grow: 1;
    min-width: fit-content;
    padding: 15px 25px;
    font-size: 1.1em;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    color: #1a1a1a;
    font-weight: bold;
    position: relative;
    overflow: hidden;

    /* Background: vetro trasparente (fallback generico) */
    background: rgba(255, 255, 255, 0.0);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* Bordi di rifrazione */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.5);

    /* Shadow multiple per spessore */
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 1px 1px 1px rgba(255, 255, 255, 0.4),
        inset -1px -1px 2px rgba(0, 0, 0, 0.05);

    transition: background-color 0.3s ease, transform 0.2s ease,
        box-shadow 0.3s ease, opacity 0.3s ease;
}

.pwa-install-btn:hover {
    background: rgb(0 29 255 / 11%);
    transform: translateY(-2px);
}

.pwa-footer-install-btn.pwa-install-btn {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    overflow: visible;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    background: #0f172a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.pwa-footer-install-btn.pwa-install-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

@supports not (background: conic-gradient(from var(--pwa-spin), red, blue)) {
    .pwa-footer-install-cta__glow {
        animation: none;
        background: linear-gradient(135deg, rgba(227, 232, 255, 0.85), rgba(235, 125, 255, 0.45), rgba(255, 203, 100, 0.4));
        filter: blur(14px);
        opacity: 0.5;
    }
    .pwa-footer-install-cta__ring {
        animation: none;
        background: linear-gradient(135deg, #4f7cff, #eb7dff, #ffcb64);
        opacity: 0.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-footer-install-cta__glow,
    .pwa-footer-install-cta__ring {
        animation: none !important;
        opacity: 0.4;
        background: linear-gradient(135deg, rgba(79, 124, 255, 0.45), rgba(235, 125, 255, 0.35), rgba(255, 203, 100, 0.3));
    }
}

.pwa-install-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.pwa-install-snooze {
    background: transparent;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.95em;
    padding: 8px 4px;
    font-family: inherit;
}

.pwa-install-snooze:hover {
    color: #0066cc;
}

.pwa-footer-install-spontaneous .pwa-footer-install-lead {
    font-size: 0.95em;
    color: #555;
    margin: 0 0 14px 0;
    line-height: 1.45;
}

/*
 * Soft PWA + guida: apertura come platform review (backdrop + is-open),
 * grafica come referral panel, palette home/landing (lilac topbar + blob).
 */
.pwa-install-soft,
.pwa-install-guide {
    --pwa-lilac: #e3e8ff;
    --pwa-fuchsia: #eb7dff;
    --pwa-yellow: #ffcb64;
    --pwa-lime: #dcff90;
    --pwa-blue: #4f7cff;
    --pwa-spin: 0deg;
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    color: #0f172a;
}

.pwa-install-guide {
    z-index: 11020;
}

.pwa-install-soft[hidden],
.pwa-install-guide[hidden] {
    display: none !important;
}

.pwa-install-soft__backdrop,
.pwa-install-guide__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.28);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.pwa-install-soft.is-open .pwa-install-soft__backdrop,
.pwa-install-guide.is-open .pwa-install-guide__backdrop {
    opacity: 1;
}

.pwa-install-soft__panel,
.pwa-install-guide__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 400px;
    isolation: auto;
    overflow: visible;
    margin-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    opacity: 0;
    transform: translateY(22px) scale(0.97);
}

.pwa-install-soft.is-open .pwa-install-soft__panel,
.pwa-install-guide.is-open .pwa-install-guide__panel {
    animation: pwaPromptCardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

@keyframes pwaPromptCardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.pwa-install-soft__glow {
    position: absolute;
    inset: -10px;
    z-index: 0;
    border-radius: 28px;
    pointer-events: none;
    background: conic-gradient(
        from var(--pwa-spin, 0deg),
        transparent 0deg,
        transparent 200deg,
        color-mix(in srgb, var(--pwa-lilac) 70%, transparent) 230deg,
        color-mix(in srgb, var(--pwa-blue) 75%, transparent) 260deg,
        color-mix(in srgb, var(--pwa-fuchsia) 80%, transparent) 295deg,
        color-mix(in srgb, var(--pwa-yellow) 70%, transparent) 325deg,
        color-mix(in srgb, var(--pwa-lime) 55%, transparent) 345deg,
        transparent 360deg
    );
    filter: blur(14px);
    opacity: 0;
    animation:
        pwaPromptSpin 3.2s linear infinite,
        pwaPromptAuraDuty 14s ease-in-out infinite;
    animation-play-state: paused;
}

.pwa-install-soft.is-open .pwa-install-soft__glow,
.pwa-install-guide.is-open .pwa-install-soft__glow {
    animation-play-state: running;
}

.pwa-install-soft__surface {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 16px;
    pointer-events: none;
    background: color-mix(in srgb, #fff 55%, transparent);
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.pwa-install-soft__glass {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
}

.pwa-install-soft__glass-pan {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: 50% 50%;
    opacity: 0;
    will-change: background-position, background-size, transform, opacity;
    animation: pwaPromptGlassPan 26s linear 0.6s infinite;
    animation-play-state: paused;
}

.pwa-install-soft.is-open .pwa-install-soft__glass-pan,
.pwa-install-guide.is-open .pwa-install-soft__glass-pan {
    animation-play-state: running;
}

.pwa-install-soft__satin {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: color-mix(in srgb, var(--pwa-lilac) 42%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.pwa-install-soft__ring {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: 16px;
    padding: 1.5px;
    pointer-events: none;
    background: conic-gradient(
        from var(--pwa-spin, 0deg),
        transparent 0deg,
        transparent 195deg,
        var(--pwa-blue) 240deg,
        var(--pwa-fuchsia) 285deg,
        var(--pwa-yellow) 320deg,
        var(--pwa-lime) 345deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    animation:
        pwaPromptSpin 3.2s linear infinite,
        pwaPromptAuraDuty 14s ease-in-out infinite;
    animation-play-state: paused;
}

.pwa-install-soft.is-open .pwa-install-soft__ring,
.pwa-install-guide.is-open .pwa-install-soft__ring {
    animation-play-state: running;
}

@property --pwa-spin {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes pwaPromptSpin {
    to { --pwa-spin: 360deg; }
}

@keyframes pwaPromptAuraDuty {
    0%, 4% { opacity: 0; }
    10%, 32% { opacity: 0.95; }
    38%, 100% { opacity: 0; }
}

@keyframes pwaPromptGlassPan {
    0% {
        background-position: 50% 50%;
        background-size: 100% 100%;
        transform: scale(1);
        opacity: 0;
    }
    5% {
        background-position: 46% 48%;
        background-size: 150% 150%;
        transform: scale(1.1);
        opacity: 0.2;
    }
    10% {
        background-position: 54% 52%;
        background-size: 170% 170%;
        transform: scale(1.14);
        opacity: 0.28;
    }
    16% {
        background-position: 50% 50%;
        background-size: 100% 100%;
        transform: scale(1);
        opacity: 0;
    }
    40% { opacity: 0; }
    45% {
        background-position: 52% 46%;
        background-size: 145% 145%;
        transform: scale(1.08);
        opacity: 0.18;
    }
    52% {
        background-position: 48% 54%;
        background-size: 165% 165%;
        transform: scale(1.12);
        opacity: 0.26;
    }
    58% {
        background-position: 50% 50%;
        background-size: 100% 100%;
        transform: scale(1);
        opacity: 0;
    }
    100% { opacity: 0; }
}

.pwa-install-soft__inner,
.pwa-install-guide__inner,
.pwa-install-soft-inner {
    position: relative;
    z-index: 4;
    padding: 18px 18px 16px;
    box-sizing: border-box;
}

.pwa-install-soft__head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.pwa-install-soft__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9),
        0 6px 16px rgba(15, 23, 42, 0.1);
}

.pwa-install-soft__copy {
    min-width: 0;
    flex: 1;
}

.pwa-install-soft-text,
.pwa-install-guide__title {
    margin: 0 0 6px;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.pwa-install-soft-sub,
.pwa-install-guide__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #334155;
}

.pwa-install-soft .pwa-install-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.pwa-install-soft .pwa-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-grow: 0;
    width: 100%;
    min-width: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    white-space: nowrap;
    color: #fff;
    background: #0f172a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pwa-install-soft .pwa-install-btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}

.pwa-install-soft .pwa-install-snooze {
    appearance: none;
    display: block;
    width: 100%;
    margin: 4px 0 0;
    border: 0;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    padding: 10px 4px;
}

.pwa-install-soft .pwa-install-snooze:hover {
    color: #334155;
}

.pwa-install-guide__close {
    appearance: none;
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.pwa-install-guide__close:hover {
    background: #1e293b;
    color: #fff;
}

.pwa-install-guide__steps {
    margin: 0;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #334155;
}

.pwa-install-guide__steps li + li {
    margin-top: 8px;
}

.pwa-install-guide__alt {
    margin: 12px 0 0;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.pwa-install-guide__lead:empty {
    display: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .pwa-install-soft__satin {
        background: color-mix(in srgb, var(--pwa-lilac) 72%, #fff);
    }
}

@supports not (background: conic-gradient(from var(--pwa-spin), red, blue)) {
    .pwa-install-soft__glow {
        animation: none;
        background: linear-gradient(135deg, rgba(227, 232, 255, 0.85), rgba(235, 125, 255, 0.45), rgba(255, 203, 100, 0.4));
        filter: blur(18px);
        opacity: 0.45;
    }
    .pwa-install-soft__ring {
        animation: none;
        background: linear-gradient(135deg, #4f7cff, #eb7dff, #ffcb64);
        opacity: 0.55;
    }
}

@media (min-width: 769px) {
    .pwa-install-soft,
    .pwa-install-guide {
        align-items: center;
    }
}

/* Mobile: respiro sopra la pill navbar */
@media (max-width: 768px) {
    .pwa-install-soft,
    .pwa-install-guide {
        padding: 10px;
        padding-bottom: calc(10px + 65px + 12px + env(safe-area-inset-bottom, 0px));
    }

    body:has(.np-composer--with-bar) .pwa-install-soft,
    body:has(.np-composer--with-bar) .pwa-install-guide {
        padding-bottom: calc(10px + 65px + 56px + 21px + env(safe-area-inset-bottom, 0px));
    }

    body.np-composer-open .pwa-install-soft,
    body:has(.messages-widget-modal.is-open) .pwa-install-soft,
    body:has(.nav-notifs-sheet.is-open) .pwa-install-soft {
        visibility: hidden;
        pointer-events: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pwa-install-soft__backdrop,
    .pwa-install-guide__backdrop {
        transition: none;
        opacity: 1;
    }
    .pwa-install-soft.is-open .pwa-install-soft__panel,
    .pwa-install-guide.is-open .pwa-install-guide__panel {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .pwa-install-soft__glow,
    .pwa-install-soft__ring,
    .pwa-install-soft__glass-pan {
        animation: none !important;
    }
    .pwa-install-soft.is-open .pwa-install-soft__glow,
    .pwa-install-guide.is-open .pwa-install-soft__glow,
    .pwa-install-soft.is-open .pwa-install-soft__ring,
    .pwa-install-guide.is-open .pwa-install-soft__ring {
        opacity: 0.35;
        background: linear-gradient(135deg, rgba(79, 124, 255, 0.45), rgba(235, 125, 255, 0.35), rgba(255, 203, 100, 0.3));
    }
    .pwa-install-soft.is-open .pwa-install-soft__glass-pan,
    .pwa-install-guide.is-open .pwa-install-soft__glass-pan {
        opacity: 0.16;
        background-size: 120% 120%;
    }
}

.meedico-m-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff; /* Sfondo bianco per far risaltare la "m" */
    color: #0066cc; /* Il colore blu richiesto */
    font-weight: 800; /* Font molto spesso per renderla simile a un logo */
    font-size: 1.2rem;
    width: 24px;
    height: 24px;
    border-radius: 4px; /* Leggera smussatura, o 50% se la vuoi tonda */
    margin-right: 4px;
    font-family: 'Inter', sans-serif; /* Mantiene lo stesso font */
    line-height: 1;
    box-shadow:
        0 0px 20px rgba(0, 0, 0, 0.1);
}
/* ---------------------------------- */

/* Stili per i pulsanti di condivisione social */
.footer-social-share-buttons {
    display: flex;
    gap: 8px; /* RIDOTTO: Spazio ridotto tra i pulsanti */
    margin-top: 10px; /* RIDOTTO: Margine sopra i pulsanti */
    justify-content: flex-start; /* Allineati a sinistra */
}

.footer-social-share-buttons a {
    color: white;
}

.footer-social-share-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Allinea a sinistra il contenuto di questa sezione */
}

.footer-social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px; /* RIDOTTO: Dimensioni fisse per i pulsanti */
    height: 35px; /* RIDOTTO: Dimensioni fisse per i pulsanti */
    border-radius: 50%; /* Pulsanti rotondi per discrezione */
    text-decoration: none;
    font-size: 1rem; /* RIDOTTO: Dimensione icona */
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08); /* Ombra leggermente ridotta */
}

.social-share-btn i {
    margin: 0; /* Rimuovi margin-right */
    color: white;
}

.footer-whatsapp-btn { background-color: #25D366; }
.footer-whatsapp-btn:hover { background-color: #1DA851; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2); }

.footer-telegram-btn { background-color: #0088CC; }
.footer-telegram-btn:hover { background-color: #006AA7; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0, 136, 204, 0.2); }

.footer-facebook-btn { background-color: #3b5998; }
.footer-facebook-btn:hover { background-color: #2d4373; transform: translateY(-2px); box-shadow: 0 4px 8px rgba(59, 89, 152, 0.2); }

.contact-email {
    margin-top: 15px; /* RIDOTTO: Spazio tra i pulsanti social e l'email */
    font-size: 0.85rem; /* RIDOTTO: Dimensione font email */
    color: #4a4a4a;
}
.contact-email a {
    color: #0066cc; /* Colore link email */
    font-weight: 600;
}

/* Stili per l'animazione del testo nel footer-bottom */
.footer-bottom {
    text-align: center;
    margin-top: 30px; /* RIDOTTO: Margine superiore della sezione bottom */
    padding-top: 15px; /* RIDOTTO: Padding superiore della sezione bottom */
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem; /* RIDOTTO: Testo più piccolo per il copyright */
    color: #555;
    position: relative; /* Per posizionare correttamente lo span */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* Per gestire il testo su più righe se lo schermo è piccolo */
    gap: 4px; /* RIDOTTO: Spazio tra le parole */
}

/* Nuovo wrapper per la parola animata per un migliore allineamento */
.heart-text-container {
    display: inline-flex; /* Usa flex per centrare il testo al suo interno */
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1px 5px; /* RIDOTTO: Padding leggermente diminuito per lo sfondo */
    border-radius: 3px;
    background-color: var(--highlight-color, #f0f0f0); /* Colore di default, aggiornato via JS */
    overflow: hidden; /* Nasconde il testo quando scorre */
    vertical-align: baseline; 
    line-height: 1.2; 
    height: 1.3em; 
    min-width: 90px; /* RIDOTTO: Min-width del container animato */
    width: max-content; 
    text-align: center;
    transition: background-color 0.5s ease; 
}

.heart-text {
    display: block; 
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; 
    display: flex; 
    justify-content: center;
    align-items: center;
    transform: translateY(100%); 
    opacity: 0; 
    font-weight: 700;
    white-space: nowrap;
    color: #333; 
}

.heart-text.slide-in {
    animation: slideUp 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards; 
}

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

/* Suggerimenti / segnalazioni (allineato a card home feed) */
.footer-feedback {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
    max-width: 100%;
}

.footer-feedback-title {
    margin: 0 0 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    font-weight: 600;
    color: #475569;
}

.footer-feedback-message {
    margin: 0 0 10px;
}

.footer-feedback-success {
    margin: 0;
    color: #047857;
    font-size: 0.82rem;
    font-weight: 600;
}

.footer-feedback-error {
    margin: 0;
    color: #b91c1c;
    font-size: 0.82rem;
    font-weight: 600;
}

.footer-feedback-form {
    margin: 0;
}

.footer-feedback-box {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    max-width: 100%;
}

.footer-feedback-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 0.85rem;
    font-family: inherit;
    line-height: 1.35;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.footer-feedback-input::placeholder {
    color: #94a3b8;
}

.footer-feedback-input:focus {
    outline: none;
    border-color: rgba(0, 102, 204, 0.45);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.footer-feedback-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    background: #0066cc;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 102, 204, 0.22);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.footer-feedback-submit:hover {
    background: #0056b3;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.28);
}

.footer-feedback-submit:active {
    transform: translateY(1px);
}

.footer-feedback-submit i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .footer-feedback.mobile-only {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-feedback.mobile-only .footer-feedback-title,
    .footer-feedback.mobile-only .footer-feedback-message {
        text-align: center;
    }

    .footer-feedback.mobile-only .footer-feedback-form {
        text-align: left;
    }

    .footer-feedback.mobile-only .footer-feedback-submit {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .footer-feedback.mobile-only .footer-feedback-input {
        padding: 10px 10px;
        font-size: 0.8rem;
    }
}

/* Animazione di scorrimento verso l'alto */
@keyframes slideUp {
    0% { transform: translateY(100%); opacity: 0; } 
    30% { transform: translateY(0%); opacity: 1; } 
    70% { transform: translateY(0%); opacity: 1; } 
    100% { transform: translateY(-100%); opacity: 0; } 
}

/* Media Queries per schermi più piccoli */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px; 
    }
    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 10px; 
    }
    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-social-share-buttons {
        justify-content: center; 
        gap: 8px; 
        margin-top: 0px;
    }
    .footer-social-share-section {
        align-items: center; 
        border-top: 1px solid #e0e0e0;
        padding-top: 15px;
    }
    .contact-email {
        text-align: center; 
        margin-top: 15px; 
    }
    .footer-title {
        margin-bottom: 10px;
        display: none;
    }
    .footer-section p {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: 20px 10px; 
    }
    /* Nasconde titoli e descrizione sulla sezione 'about' */
    .footer-section.about .footer-title,
    .footer-section.about p {
        display: none;
    }
    /* Allinea la sezione 'about' per bilanciare lo spazio rimanente */
    .footer-section.about {
        margin-bottom: 0; 
    }
    /* Nasconde i titoli delle sezioni links e legal */
    .footer-section.links .footer-title,
    .footer-section.legal .footer-title,
    .footer-section.social-share-section .footer-title { 
        display: none;
    }
    .footer-section p, .footer-section a, .footer-bottom p {
        font-size: 0.78rem; 
    }
    .heart-text-container { 
        font-size: 0.8rem; 
        height: 1.1em; 
        min-width: 100px; 
        width: max-content; 
        padding: 1px 4px; 
    }
    .footer-bottom {
        padding-top: 20px;
        margin-top: 0px;
        gap: 3px; 
    }
    
    .footer-container {
        flex-direction: row; 
        flex-wrap: wrap; 
        justify-content: space-around; 
        align-items: flex-start; 
        gap: 15px; 
    }
    
    .footer-section.links, 
    .footer-section.legal {
        flex: 1 1 45%; 
        min-width: 140px; 
        margin-bottom: 0; 
        text-align: left; 
    }
    
    .footer-section.links ul,
    .footer-section.legal ul {
        align-items: flex-start; 
    }
    
    .footer-section.social-share-section {
        flex: 1 1 100%; 
        order: 3; 
        margin-top: 15px; 
        align-items: center; 
        border-top: 1px solid #e0e0e0;
    }
    
    .footer-social-share-buttons {
        justify-content: center; 
    }
    
    .contact-email {
        margin-top: 20px; 
    }
}