/* =========================================================
   Blog Sagre Estive Sicilia 2026 — CSS dedicato
   Pattern: light theme, alta leggibilità (WCAG AA+)
   ========================================================= */

:root {
    --c-text:      #111827;
    --c-text-2:    #1f2937;
    --c-muted:     #4b5563;
    --c-accent:    #1e3a8a;
    --c-accent-2:  #c2410c;
    --c-bg:        #fdfdfb;
    --c-card-bg:   #ffffff;
    --c-card-bd:   #e2e8f0;
    --c-card-sh:   0 2px 8px rgba(15,23,42,.06), 0 12px 32px rgba(15,23,42,.06);
    --c-divider:   #fde68a;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif !important;
    background: var(--c-bg) !important;
    color: var(--c-text) !important;
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 900px) {
    .container { padding: 0 32px; }
}

nav { background: #0f172a; color: #fff; padding: 14px 0; position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0; }
.nav-links a { color: #e2e8f0; text-decoration: none; font-weight: 500; font-size: 0.92rem; transition: color .15s; }
.nav-links a:hover { color: #fbbf24; }

.breadcrumb-nav { padding: 10px 24px; font-size: 0.88rem; color: #64748b; background: #f1f5f9; border-bottom: 1px solid #e2e8f0; }
.breadcrumb-nav a { color: var(--c-accent); text-decoration: none; font-weight: 500; }
.breadcrumb-nav a:hover { text-decoration: underline; }
.breadcrumb-nav .sep { margin: 0 8px; color: #94a3b8; }

article { padding: 40px 0 60px; }

article h1, .container h1, body h1 {
    font-size: clamp(2rem, 4.4vw, 2.7rem) !important;
    line-height: 1.2 !important;
    color: #c2410c !important;
    -webkit-text-fill-color: #c2410c !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    font-weight: 800 !important;
    margin: 8px 0 24px !important;
    letter-spacing: -0.01em !important;
    text-shadow: none !important;
}

article h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    line-height: 1.3;
    color: var(--c-accent);
    font-weight: 700;
    margin: 56px 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--c-divider);
}

article h3 {
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--c-text);
    font-weight: 700;
    margin: 24px 0 10px;
}

article p {
    color: var(--c-text);
    font-size: 1.1rem;
    line-height: 1.75;
    margin: 14px 0;
}

article p strong, article li strong { color: var(--c-text); font-weight: 700; }

article a {
    color: var(--c-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: color .15s;
}
article a:hover { color: var(--c-accent-2); text-decoration-thickness: 2px; }

article ul, article ol {
    padding-left: 22px;
    margin: 14px 0 20px;
}
article ul li, article ol li {
    margin: 10px 0;
    font-size: 1.06rem;
    line-height: 1.7;
    color: var(--c-text);
}

article img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(15,23,42,.12);
}

article h2:not(:first-of-type) { margin-top: 64px; }

.sagre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin: 24px 0 32px;
}

.sagra-card {
    background: var(--c-card-bg);
    border: 1px solid var(--c-card-bd);
    border-radius: 16px;
    padding: 22px 22px 20px;
    box-shadow: var(--c-card-sh);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}

.sagra-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(15,23,42,.08), 0 20px 40px rgba(15,23,42,.10);
}

.sagra-card h3 {
    margin: 6px 0 12px !important;
    color: var(--c-accent) !important;
    font-size: 1.18rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.sagra-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.sagra-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.4;
}

.tag-data { background: #fef3c7; color: #78350f; }
.tag-prov { background: #dbeafe; color: #1e3a8a; }
.tag-kids { background: #d1fae5; color: #065f46; }
.tag-warn { background: #fee2e2; color: #991b1b; }

.sagra-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text-2);
    margin: 8px 0;
}

.sagra-card p.why {
    font-style: normal;
    color: var(--c-text);
    font-size: 0.97rem;
    margin-top: 12px;
    padding: 12px 14px;
    background: #fffbeb;
    border-left: 3px solid #fbbf24;
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

.sagra-card p.why strong { color: #78350f; }

.sagra-card .src {
    font-size: 0.85rem;
    color: var(--c-muted);
    margin-top: auto;
    padding-top: 12px;
    line-height: 1.5;
}
.sagra-card .src a { color: var(--c-accent); }

.babysit-cta {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 50%, #f59e0b 100%);
    color: #fff;
    padding: 28px 24px;
    border-radius: 20px;
    margin: 36px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(194,65,12,.30);
}
.babysit-cta h3 {
    color: #fff !important;
    margin: 0 0 10px !important;
    font-size: 1.45rem !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
}
.babysit-cta p {
    color: #fff7ed !important;
    margin: 6px 0 18px !important;
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
    opacity: 1;
}
.babysit-cta p strong { color: #fff !important; }
.babysit-cta .btn {
    display: inline-block;
    background: #fff;
    color: #c2410c;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.02rem;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,0,0,.18);
    transition: transform .15s, box-shadow .15s;
}
.babysit-cta .btn:hover {
    background: #fef3c7;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
    color: #c2410c;
}

.faq-container { margin: 24px 0 32px; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
    background: #f8fafc;
    border: 1px solid var(--c-card-bd);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 16px 20px;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
    cursor: pointer;
    line-height: 1.4;
}
.faq-question:hover { background: #f1f5f9; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    padding: 0 20px;
}
.faq-answer.active {
    max-height: 600px;
    padding: 0 20px 16px;
}
.faq-answer p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--c-text-2);
    margin: 0 0 4px;
}

.credits-box {
    background: #f1f5f9;
    border-left: 4px solid #94a3b8;
    padding: 16px 20px;
    margin: 36px 0 20px;
    border-radius: 0 10px 10px 0;
    font-size: 0.92rem;
    color: var(--c-muted);
    line-height: 1.6;
}
.credits-box strong { color: var(--c-text); }
.credits-box a { color: var(--c-accent); text-decoration: underline; }

footer { background: #0f172a; color: #94a3b8; padding: 32px 16px 16px; margin-top: 40px; }
footer p { color: #cbd5e1; margin: 4px 0; font-size: 0.92rem; }
.footer-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 18px; }
.footer-links a { color: #fbbf24; text-decoration: none; font-size: 0.88rem; }
.footer-links a:hover { text-decoration: underline; }

.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
    z-index: 9998;
    transition: transform .15s;
}
.whatsapp-float:hover { transform: scale(1.08); }

@media (max-width: 720px) {
    body { font-size: 16px; }
    article { padding: 24px 0 48px; }
    article h1 { font-size: 1.7rem; margin: 4px 0 18px; }
    article h2 { font-size: 1.3rem; margin: 40px 0 14px; }
    article p { font-size: 1.05rem; }
    .sagre-grid { grid-template-columns: 1fr; gap: 18px; }
    .sagra-card { padding: 18px; }
    .babysit-cta { padding: 22px 18px; }
    .babysit-cta h3 { font-size: 1.25rem !important; }
    .babysit-cta .btn { padding: 12px 22px; font-size: 0.98rem; }
    .nav-links { gap: 12px; font-size: 0.85rem; }
    .nav-links a { font-size: 0.85rem; }
}

@media print {
    nav, .whatsapp-float, .babysit-cta .btn { display: none; }
    body { background: #fff; color: #000; }
    article a { color: #000; text-decoration: underline; }
    .sagra-card { break-inside: avoid; box-shadow: none; border: 1px solid #999; }
}
