/* ============================================================
   SGF – Serigest Footer – Frontend Styles
   ============================================================ */

.sgf-footer *,
.sgf-footer *::before,
.sgf-footer *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.sgf-footer {
    --sgf-bg:          #111111;
    --sgf-text:        #ffffff;
    --sgf-muted:       rgba(255,255,255,.5);
    --sgf-border:      rgba(255,255,255,.1);
    --sgf-link-hover:  rgba(255,255,255,.85);
    --sgf-inner-max:   1440px;
    --sgf-padding:     0 24px;

    background: var(--sgf-bg);
    color: var(--sgf-text);
    font-size: .875rem;
    line-height: 1.6;
}

.sgf-footer__inner {
    max-width: var(--sgf-inner-max);
    margin: 0 auto;
    padding: var(--sgf-padding);
}

/* ── Body (logo + colonne) ───────────────────────────────── */
.sgf-footer__body {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--sgf-border);
}

.sgf-footer__body .sgf-footer__inner {
    display: grid;
    grid-template-columns: 260px repeat(auto-fit, minmax(140px, 1fr));
    gap: 40px 32px;
    align-items: start;
}

.sgf-footer__inner--no-cols {
    grid-template-columns: 1fr;
}

/* ── Brand (logo + desc) ─────────────────────────────────── */
.sgf-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sgf-footer__logo {
    display: inline-block;
    text-decoration: none;
    flex-shrink: 0;
}

.sgf-footer__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.sgf-footer__logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--sgf-text);
    text-decoration: none;
    letter-spacing: -.02em;
}

.sgf-footer__desc {
    font-size: .8rem;
    color: var(--sgf-muted);
    line-height: 1.65;
    max-width: 220px;
}

/* ── Columns ─────────────────────────────────────────────── */
.sgf-footer__col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sgf-footer__col-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sgf-text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sgf-border);
}

/* Immagine opzionale sotto il titolo */
.sgf-footer__col-media {
    margin: 0 0 4px;
    border-radius: 8px;
    overflow: hidden;
    max-width: 220px;
}

.sgf-footer__col-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    filter: brightness(1.02);
}

/* Link column */
.sgf-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sgf-footer__links a {
    color: var(--sgf-muted);
    text-decoration: none;
    font-size: .8375rem;
    transition: color .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.sgf-footer__links a:hover {
    color: var(--sgf-link-hover);
}

/* Text column */
.sgf-footer__text {
    font-size: .8375rem;
    color: var(--sgf-muted);
    line-height: 1.7;
}

.sgf-footer__text a {
    color: var(--sgf-muted);
    text-decoration: underline;
    transition: color .15s ease;
}

.sgf-footer__text a:hover {
    color: var(--sgf-link-hover);
}

/* ── Bottom bar ──────────────────────────────────────────── */
.sgf-footer__bottom {
    padding: 18px 0;
}

.sgf-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.sgf-footer__bottom-media {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.sgf-footer__bottom-media img {
    display: block;
    max-width: min(100%, 360px);
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.92;
}

.sgf-footer__bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.sgf-footer__copyright {
    font-size: .775rem;
    color: var(--sgf-muted);
}

.sgf-footer__bottom-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.sgf-footer__bottom-nav a {
    font-size: .775rem;
    color: var(--sgf-muted);
    text-decoration: none;
    transition: color .15s ease;
}

.sgf-footer__bottom-nav a:hover {
    color: var(--sgf-link-hover);
}

/* ── Social ──────────────────────────────────────────────── */
.sgf-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.sgf-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    color: var(--sgf-text);
    transition: background .2s ease, transform .2s ease;
    text-decoration: none;
}

.sgf-footer__social-link:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-2px);
    color: var(--sgf-text);
}

.sgf-footer__social-link svg {
    width: 18px;
    height: 18px;
    display: block;
}

.sgf-footer__social-link--instagram:hover {
    background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.sgf-footer__social-link--facebook:hover {
    background: #1877f2;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .sgf-footer__body .sgf-footer__inner {
        grid-template-columns: 1fr 1fr;
    }
    .sgf-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .sgf-footer__body .sgf-footer__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .sgf-footer__body {
        padding: 36px 0 32px;
    }
    .sgf-footer__bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .sgf-footer__inner {
        padding: 0 16px;
    }
}
