/* ==========================================================================
   SPUNTY S.r.l. - Foglio di Stile Sito Pubblico & Conformità GDPR
   ========================================================================== */

:root {
    --brand-primary: #b91c1c;
    --brand-primary-dark: #991b1b;
    --brand-accent: #15803d;
    --brand-dark: #0f172a;
    --brand-slate: #334155;
    --brand-light: #f8fafc;
    --brand-border: #e2e8f0;
    --radius: 12px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--brand-slate);
    background-color: var(--brand-light);
    line-height: 1.65;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--brand-primary-dark);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar & Header */
.topbar {
    background: var(--brand-dark);
    color: #cbd5e1;
    font-size: 0.85rem;
    padding: 8px 0;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar a {
    color: #f8fafc;
    font-weight: 600;
}

.topbar .private-btn {
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}

.topbar .private-btn:hover {
    background: var(--brand-primary);
    color: #fff;
}

.site-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-banner-wrap {
    text-align: center;
    padding: 14px 0 8px;
    background: #fff;
}

.logo-banner-wrap img {
    max-width: 580px;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.main-nav {
    border-top: 1px solid var(--brand-border);
    background: #ffffff;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
}

.nav-list li a {
    display: block;
    padding: 9px 18px;
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 8px;
}

.nav-list li a:hover,
.nav-list li a.active {
    background: var(--brand-primary);
    color: #ffffff;
}

/* Page Title Banner */
.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 36px 0;
    margin-bottom: 36px;
    border-bottom: 4px solid var(--brand-primary);
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.page-hero p {
    color: #94a3b8;
    margin-top: 6px;
    font-size: 1.05rem;
}

/* Layout Content + Sidebar */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-bottom: 50px;
}

@media (max-width: 960px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
}

.content-card {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-border);
}

.section-badge {
    display: inline-block;
    background: #fee2e2;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 99px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Product Grid (Distributori / Caffè / Macchine) */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.product-item {
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.product-thumb {
    background: #fff;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 290px;
}

.product-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-body {
    padding: 16px;
    background: #f8fafc;
    border-top: 1px solid var(--brand-border);
    text-align: center;
    margin-top: auto;
}

.product-title {
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1.05rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.btn-outline,
.btn-primary {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    color: #fff;
}

.btn-outline {
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: #fff;
}

/* Feature List & Espresso Box */
.feature-list {
    list-style: none;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.feature-list li {
    background: #f8fafc;
    border-left: 4px solid var(--brand-accent);
    padding: 12px 16px;
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    color: var(--brand-dark);
}

/* Sidebar */
.sidebar-widget {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--brand-border);
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 1.15rem;
    color: var(--brand-dark);
    border-bottom: 2px solid var(--brand-primary);
    padding-bottom: 10px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.contact-info-list {
    list-style: none;
}

.contact-info-list li {
    margin-bottom: 14px;
}

.contact-info-list strong {
    display: block;
    color: var(--brand-dark);
    font-size: 0.9rem;
    text-transform: uppercase;
}

/* Modulo Contatti */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--brand-dark);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.98rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.15);
}

/* Footer */
.site-footer {
    background: var(--brand-dark);
    color: #cbd5e1;
    padding: 48px 0 24px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Cookie Banner GDPR */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    max-width: 580px;
    background: #0f172a;
    color: #f8fafc;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid #334155;
    z-index: 9999;
    display: none;
}

.cookie-banner h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: #fff;
}

.cookie-banner p {
    font-size: 0.88rem;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
