/*
Theme Name: Iniziosubito
Description: portale informativo, analisi delle scommesse, guide, recensioni
Version: 1.0.0
*/

:root {
    --primary: #1e293b;
    --secondary: #f97316;
    --accent: #334155;
    --bg-main: #f8fafc;
    --text-main: #0f172a;
    --border: #f97316;
    
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0,0,0,0.05);
}

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

body {
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Noto Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* N-C Navigation */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10001;
    padding: 1.5rem 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: #fff;
    z-index: 10001;
    position: relative;
}
.logo span { color: var(--secondary); font-weight: 400; }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    position: relative;
    padding: 10px;
}
.nav-toggle span {
    width: 30px; height: 3px;
    background: #fff;
    transition: var(--transition);
}

body.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); background: #fff; }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(6px, -7px); background: #fff; }
body.menu-open .logo { color: #fff; }

.overlay-menu-container {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, 0.98);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 10000;
}

body.menu-open .overlay-menu-container {
    opacity: 1;
    pointer-events: auto;
}

.main-nav ul {
    list-style: none;
    text-align: center;
}
.main-nav li { margin-bottom: 2rem; }
.main-nav a {
    font-family: 'Sora', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
}
.main-nav a:hover { color: var(--secondary); }

/* H-A Hero Full Bleed Overlay 0.8 */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-bg img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 41, 59, 0.8);
}

.hero-content {
    max-width: 800px;
}
.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* Decor D-D */
.decor-svg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e293b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

/* U-B Method + Visual */
.method-section {
    padding: 8rem 0;
    background: var(--white);
    position: relative;
}
.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.method-content h2 { margin-bottom: 1.5rem; font-size: 2.5rem; color: var(--primary); }
.method-content p { margin-bottom: 1.5rem; font-size: 1.1rem; color: var(--accent); }
.method-visual img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
}

/* C-F Timeline Cards */
.timeline-section {
    padding: 8rem 0;
    background: var(--bg-main);
    position: relative;
}
.timeline-section h2 { text-align: center; margin-bottom: 4rem; font-size: 2.5rem; color: var(--primary); }
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.timeline-card {
    position: relative;
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 3px solid var(--border);
    display: flex;
    flex-direction: column;
}
.timeline-card::before {
    content: '';
    position: absolute;
    left: -9px; top: 2.5rem;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: var(--secondary);
}
.timeline-card .thumb {
    margin-bottom: 1.5rem;
    display: block;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius);
}
.timeline-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: var(--transition);
}
.timeline-card:hover .thumb img { transform: scale(1.05); }
.timeline-card h3 { margin-bottom: 1rem; font-size: 1.4rem; color: var(--primary); }
.timeline-card .meta { font-size: 0.85rem; color: var(--secondary); margin-bottom: 1rem; font-weight: bold; text-transform: uppercase; }
.timeline-card p { color: var(--accent); margin-bottom: 1.5rem; flex-grow: 1; }
.btn-read { color: var(--secondary); font-weight: bold; font-family: 'Sora', sans-serif; display: inline-block; }
.btn-read:hover { color: var(--primary); }

/* FT-A Minimalist single row footer */
.site-footer {
    background: var(--primary);
    color: #fff;
    padding: 3rem 0;
}
.footer-single-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-logo { font-family: 'Sora'; font-size: 1.5rem; font-weight: 800; color: #fff; }
.footer-logo span { color: var(--secondary); font-weight: 400; }
.footer-nav ul { list-style: none; display: flex; gap: 2rem; }
.footer-nav a { font-size: 0.9rem; text-transform: uppercase; font-weight: 600; }
.footer-nav a:hover { color: var(--secondary); }
.footer-copy { font-size: 0.85rem; text-align: right; color: #94a3b8; }
.footer-copy p { margin-top: 5px; color: #64748b; }

@media (max-width: 992px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .method-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
    .footer-single-row { flex-direction: column; text-align: center; }
    .footer-nav ul { flex-direction: column; gap: 1rem; }
    .footer-copy { text-align: center; }
}

.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 4rem; }
.pagination .page-numbers { padding: 0.8rem 1.2rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); font-weight: bold; color: var(--primary); }
.pagination .current { background: var(--secondary); color: #fff; }

/* RULE 21 FIX */
.post-card-arc {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.post-card-arc .thumb {
    display: block !important;
    height: clamp(180px, 25vw, 300px) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.post-card-arc .thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.post-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.post-card-content h3 {
    flex-grow: 1 !important;
}
.btn-read, .read-more-link {
    margin-top: auto !important;
}

.logo, .footer-logo { flex-wrap: wrap !important; }
