/*
Theme Name: Osservatorio Theme
Description: Tema personalizzato premium per Osservatorio Scelte. Costruito da zero.
Author: Antigravity
Version: 1.1
*/

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0;
    color: #22303f; background-color: #f3f7f8;
    -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
a { color: #0d6b75; text-decoration: none; transition: all 0.2s ease; }
a:hover { color: #0a4e56; }

/* Typhography */
h1, h2, h3, h4, h5, h6 { font-weight: 800; color: #17212b; letter-spacing: 0; }

/* Header Restyle */
.site-header { 
    background: rgba(255,255,255,0.94);
    position: sticky; top:0; z-index: 100; border-bottom: 1px solid #d9e6e7;
    padding: 0; box-shadow: 0 10px 30px rgba(22,42,54,0.07);
    backdrop-filter: blur(14px);
}
.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 78px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap: 28px;
    padding: 0 20px;
}
.site-logo {
    display:flex;
    align-items:center;
    gap: 12px;
    color: #17212b !important;
}
.site-logo__mark {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display:grid;
    place-items:center;
    background: #0d6b75;
    color:#fff !important;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(13,107,117,0.25);
}
.site-logo__text {
    display:flex;
    flex-direction:column;
    line-height:1;
    color:#17212b !important;
    font-size: 14px;
    font-weight: 700;
}
.site-logo__text strong {
    display:block;
    margin-top: 3px;
    color:#0d6b75;
    font-size: 24px;
    font-weight: 900;
}
.site-nav { flex: 1; display:flex; justify-content:center; }
.primary-menu { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; align-items:center; flex-wrap:wrap; justify-content:center; }
.primary-menu li a {
    color: #40515d !important;
    font-weight: 700;
    font-size:14px;
    padding: 10px 12px;
    border-radius: 8px;
}
.primary-menu li a:hover { color: #0d6b75 !important; background:#e7f3f4; }
.header-cta {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height: 42px;
    padding: 0 16px;
    background:#17212b;
    color:#fff !important;
    font-weight:800;
    border-radius:8px;
    white-space:nowrap;
}
.header-cta:hover { background:#0d6b75; color:#fff !important; }

/* Main layout constraints */
.site-content { max-width:1200px; margin:40px auto; padding:0 20px; min-height:60vh; }
body.home .site-content { max-width:none; margin:0; padding:0; }
.home-main { padding-bottom: 60px; }
.home-band { max-width:1200px; margin:72px auto; padding:0 20px; }
.section-title { 
    font-size: 34px;
    display: block;
    margin: 0;
    line-height: 1.15;
}
.section-heading { margin-bottom: 30px; }
.eyebrow {
    display:inline-flex;
    align-items:center;
    min-height: 28px;
    padding: 0 10px;
    margin-bottom: 12px;
    color:#0d6b75;
    background:#dff0f1;
    border:1px solid #c4e3e5;
    border-radius:8px;
    font-size:12px;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:0;
}

.hero-section {
    position:relative;
    min-height: 560px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 40px;
    padding: 96px max(20px, calc((100vw - 1200px) / 2 + 20px));
    color:#fff;
    overflow:hidden;
    background:
        linear-gradient(90deg, rgba(15,33,38,0.94), rgba(15,33,38,0.74)),
        var(--hero-image) center/cover no-repeat;
}
.hero-section__content { max-width: 720px; position:relative; z-index:1; }
.hero-section h1 {
    max-width: 760px;
    margin: 0 0 22px;
    color:#fff;
    font-size: 58px;
    line-height: 1.02;
    font-weight: 900;
}
.hero-section p {
    max-width: 690px;
    margin:0;
    color:#dcebee;
    font-size: 21px;
    line-height: 1.55;
}
.hero-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:30px; }
.hero-primary,
.hero-secondary {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 18px;
    border-radius:8px;
    font-weight:900;
}
.hero-primary { background:#ffffff; color:#17212b !important; }
.hero-primary:hover { background:#dff0f1; color:#0d6b75 !important; }
.hero-secondary { color:#fff !important; border:1px solid rgba(255,255,255,0.42); }
.hero-secondary:hover { background:rgba(255,255,255,0.12); color:#fff !important; }
.hero-section__panel {
    width: 230px;
    min-height: 180px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding: 24px;
    border:1px solid rgba(255,255,255,0.28);
    border-radius:8px;
    background:rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    position:relative;
    z-index:1;
}
.hero-section__panel span { font-size:56px; font-weight:900; line-height:1; }
.hero-section__panel strong { margin-top:8px; color:#fff; font-size:18px; }
.hero-section__panel small { margin-top:10px; color:#dcebee; line-height:1.4; }

.ad-container {
    width:100%;
    overflow:hidden;
    border-radius:8px;
    box-shadow:0 18px 38px rgba(22,42,54,0.12);
    border:1px solid #d9e6e7;
}
.articles-grid {
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:24px;
}

/* Premium Cards */
.premium-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(22,42,54,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #dce8ea;
    overflow: hidden;
    display:flex;
    flex-direction:column;
}
.premium-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(22,42,54,0.12); }
.premium-card__media { display:block; background:#dff0f1; }
.premium-card__media img { width:100%; height:190px; object-fit:cover; display:block; }
.card-inner { padding: 22px; display: flex; flex-direction: column; height: 100%; }
.card-meta {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
    color:#6a7a84;
    font-size:12px;
    font-weight:800;
    text-transform:uppercase;
}
.card-meta a { color:#0d6b75; font-weight:900; }
.card-inner h3 { margin: 0 0 12px; font-size: 21px; line-height: 1.25; }
.card-inner h3 a { color: #17212b; }
.card-inner p { color: #52636d; font-size: 15px; line-height: 1.55; flex-grow: 1; margin:0; }
.read-more-btn { 
    display: inline-flex;
    align-items:center;
    justify-content:center;
    min-height: 42px;
    padding: 0 16px;
    background: #0d6b75;
    color: #fff !important;
    font-weight: 800;
    border-radius: 8px;
    text-align: center;
    margin-top: 18px;
    width: 100%;
}
.read-more-btn:hover { background: #17212b; color:#fff !important; }

/* Category Banners */
.promo-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:24px; }
.square-banner-box { position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 18px 38px rgba(22,42,54,0.12); }
.square-banner-box a { display:block; position:relative; color:#17212b !important; }
.square-banner-box img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 2/1; transition: transform 0.5s; display: block;}
.square-banner-box:hover img { transform: scale(1.05); }
.promo-banner-copy {
    position:absolute;
    left:32px;
    top:50%;
    transform:translateY(-50%);
    max-width:58%;
    z-index:2;
    display:flex;
    flex-direction:column;
    gap:8px;
    pointer-events:none;
}
.promo-banner-copy strong {
    color:#17212b;
    font-size:40px;
    font-weight:900;
    line-height:1.02;
}
.promo-banner-copy small {
    color:#40515d;
    font-size:16px;
    font-weight:800;
    line-height:1.35;
}

/* Pages */
.page-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 64px;
}
.page-article {
    background: #fff;
    border: 1px solid #dce8ea;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(22,42,54,0.08);
    padding: 42px;
}
.page-header {
    margin-bottom: 28px;
}
.page-header .entry-title {
    margin: 0;
    font-size: 44px;
    line-height: 1.08;
}
.page-content {
    color: #344955;
    font-size: 18px;
    line-height: 1.75;
}
.page-content h2 {
    margin-top: 34px;
    font-size: 28px;
}
.page-content .wpcf7 {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid #dce8ea;
}
.page-content .wpcf7 label {
    display: block;
    margin-bottom: 16px;
    color: #17212b;
    font-size: 15px;
    font-weight: 800;
}
.page-content .wpcf7 input[type="text"],
.page-content .wpcf7 input[type="email"],
.page-content .wpcf7 textarea {
    width: 100%;
    margin-top: 8px;
    padding: 13px 14px;
    border: 1px solid #bed3d6;
    border-radius: 8px;
    color: #17212b;
    font: inherit;
    background: #f8fbfb;
}
.page-content .wpcf7 textarea {
    min-height: 150px;
    resize: vertical;
}
.page-content .wpcf7 input[type="submit"] {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #0d6b75;
    color: #fff;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}
.page-content .wpcf7 input[type="submit"]:hover {
    background: #17212b;
}

/* Footer Restyle */
.site-footer { background: #17212b; color: #fff; padding: 60px 0 30px; margin-top:0 !important; }
.site-footer .container { max-width:1200px; margin:0 auto; padding:0 20px; }
.site-footer a { color: #94a3b8; transition: color 0.2s;}
.site-footer a:hover { color: #fff; }
.site-footer .footer-category-title { color: #fff !important; border-bottom: 2px solid #1e293b !important; padding-bottom: 10px; margin-bottom:15px; }
.footer-bottom { text-align:center; padding-top:30px; margin-top:40px; color:#9fb0bb; border-top:1px solid #293846; font-size:14px; }
.footer-legal {
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:10px;
    margin-top:10px;
}
.footer-legal a {
    font-weight:700;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header { position:relative; }
    .site-header__inner { min-height:auto; padding:14px 18px; align-items:flex-start; flex-direction:column; gap:14px; }
    .site-nav { width:100%; justify-content:flex-start; overflow-x:auto; }
    .primary-menu { justify-content:flex-start; flex-wrap:nowrap; min-width:max-content; }
    .header-cta { display:none; }
    .hero-section { min-height:auto; padding:70px 20px; flex-direction:column; align-items:flex-start; }
    .hero-section h1 { font-size: 38px; }
    .hero-section p { font-size: 18px; }
    .hero-section__panel { width:100%; min-height:140px; }
    .articles-grid { grid-template-columns:1fr; }
    .promo-grid { grid-template-columns:1fr; }
    .promo-banner-copy { left:22px; max-width:62%; }
    .promo-banner-copy strong { font-size:30px; }
    .promo-banner-copy small { font-size:14px; }
    .section-title { font-size:28px; }
    .page-article { padding:28px 20px; }
    .page-header .entry-title { font-size:34px; }
}
