/*
Theme Name: Affaridargento
Author: Icon-arc Creative
Description: Portale informativo, analisi delle scommesse, guide, recensioni.
Version: 1.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --primary: #0a1628;
    --secondary: #d4a012;
    --accent: #1a3050;
    --bg-main: #faf9f6;
    --white: #ffffff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: #d4a012;
    
    --container-width: 1280px;
    --content-width: 800px;
    --transition: all 0.3s ease;
    --radius: 0px;

    --section-pad: clamp(5rem, 12vw, 10rem);
}

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

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, .logo, .btn-arc {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(1.8rem, 8vw, 6rem); margin-bottom: 2rem; word-break: break-word; }
h2 { font-size: clamp(1.6rem, 5vw, 3rem); margin-bottom: 4rem; text-align: left; word-break: break-word; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }

img { max-width: 100%; height: auto; display: block; }

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

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

/* Navigation (N-E): Minimal top-bar, height <= 50px */
.site-header {
    height: 50px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.logo {
    display: inline-flex !important;
    align-items: center;
    font-size: 1.5rem !important;
    color: var(--primary) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.logo span { color: var(--secondary); }

.main-nav ul { display: flex; list-style: none; gap: 2rem; }
.main-nav a { font-size: 0.8rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-main); }
.main-nav a:hover { color: var(--secondary); }

.nav-toggle { display: none; }

/* Hero (H-D): Asymmetric breakout — image overflows container, text shifted. */
.hero-arc {
    padding-top: 50px; /* offset header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--primary);
    color: var(--white);
    overflow: hidden;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 4rem 0;
    margin-left: 5%;
}
.hero-image-breakout {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 55%;
    height: 80%;
    z-index: 1;
}
.hero-image-breakout img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-arc {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    border: none;
    cursor: pointer;
}
.btn-arc:hover { background: var(--white); color: var(--primary); }

/* Features (F-F): Numeric counters */
.features-section { padding: var(--section-pad) 0; background: var(--bg-main); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.feature-item { padding: 2rem 0; }
.feature-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    line-height: 1;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}
.feature-item h3 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; }

/* Unique Block (U-F): Text manifesto "Chi siamo" */
.manifesto-section {
    padding: var(--section-pad) 0;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80vh;
}
.manifesto-content {
    max-width: 900px;
}
.manifesto-content h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
}
.manifesto-content p {
    font-size: 1.5rem;
    line-height: 1.8;
}

/* Cards (C-E): Numbered card */
.posts-section { padding: var(--section-pad) 0; background: var(--bg-main); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }

.post-card-arc {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    background: transparent;
    transition: var(--transition);
}
.post-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1;
}
.post-card-content {
    flex: 1;
}
.post-card-content h3 { font-size: 1.4rem; color: var(--text-main); margin-bottom: 1rem; }
.post-card-content p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.meta-tag {
    font-size: 0.75rem; font-weight: 600; color: var(--accent); text-transform: uppercase;
    display: block; margin-bottom: 0.5rem;
}

.read-more-link {
    font-weight: 600; font-size: 0.85rem; color: var(--primary); text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.5rem;
}
.read-more-link:hover { color: var(--secondary); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 1rem; margin: 6rem 0; }
.pagination .page-numbers { 
    width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: transparent; font-weight: 600; color: var(--text-main); border: 1px solid var(--border);
}
.pagination .page-numbers.current { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Visual (V-D): Alternating colored section backgrounds, no borders */
.alt-bg { background: #f0eee9; }
.no-border { border: none !important; }

/* Footer (FT-C): Three-column */
.site-footer { background: var(--primary); color: var(--white); padding: 6rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; }

.footer-logo { 
    display: inline-flex !important;
    align-items: center;
    font-size: 2rem; 
    margin-bottom: 1.5rem; 
    color: var(--secondary);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    text-transform: uppercase;
}
.footer-logo span { color: var(--white); }
.footer-desc { color: rgba(255,255,255,0.7); line-height: 1.8; font-size: 0.9rem; }

.footer-nav ul { list-style: none; }
.footer-nav li { margin-bottom: 1rem; }
.footer-nav a { color: var(--white); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-nav a:hover { color: var(--secondary); }

.footer-contact h4 { color: var(--secondary); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-contact p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0.5rem; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 4rem; padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* Decor (D-C): Whitespace — max air, no decorative elements */
/* Eliminated all shadows, borders, dots */

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .hero-image-breakout { position: relative; width: 100%; height: 400px; top: 0; right: 0; margin-top: 2rem; }
    .hero-content { margin-left: 0; padding: 2rem; }
    .hero-arc { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
    .main-nav { display: none; }
    .nav-toggle { 
        display: flex; flex-direction: column; gap: 4px; cursor: pointer; z-index: 10001; 
        background: none; border: none; padding: 10px;
    }
    .nav-toggle span { width: 25px; height: 2px; background: var(--text-main); transition: 0.3s; }
    
    body.menu-open .nav-toggle span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); background: var(--text-main); }
    body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .nav-toggle span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); background: var(--text-main); }

    body.menu-open .main-nav { 
        display: flex; position: fixed; inset: 0; background: var(--bg-main); 
        z-index: 10000; align-items: center; justify-content: center;
    }
    body.menu-open .main-nav ul { flex-direction: column; text-align: center; gap: 2rem; }
    body.menu-open .main-nav a { font-size: 1.5rem; color: var(--text-main); }

    .features-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .post-card-arc { flex-direction: column; gap: 1rem; }
}
