/*
Theme Name: AskThankReportRepeat - Corporate Innovation
Author: ATRR Media
Description: Un portale informativo dedicato alle ultime tendenze nel mondo della comunicazione aziendale, innovazione e strategie di betting.
Version: 1.6.0
*/

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;500;700&family=Inter:wght@400;600&display=swap');

:root {
    --primary: #4834d4; /* Indigo */
    --secondary: #130f40; /* Dark Indigo */
    --accent: #badc58; /* Lime Green */
    --bg-main: #ffffff;
    --bg-alt: #f9f9ff;
    --text-main: #130f40;
    --text-muted: #535c68;
    --white: #ffffff;
    --border: #dcdde1;
    
    --container-width: 1200px;
    --content-width: 850px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

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

/* Axis 8: D-D SVG Pattern Pattern */
.pattern-bg {
    background-image: radial-gradient(var(--primary) 0.5px, transparent 0.5px), radial-gradient(var(--primary) 0.5px, var(--bg-alt) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    opacity: 0.05;
    position: absolute; inset: 0; pointer-events: none;
}

* { 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.7;
}

/* Axis 7: V-C Thin line-separators */
h1, h2, h3, .logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(1.8rem, 8vw, 4.5rem); line-height: 1; margin-bottom: 2rem; color: var(--secondary); }
h2 { font-size: clamp(1.6rem, 6vw, 3.2rem); line-height: 1.1; margin-bottom: 3rem; }
h3 { font-size: clamp(1.2rem, 4vw, 2.2rem); margin-bottom: 1.5rem; }

.mono { font-family: 'Space Grotesk', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.8rem; color: var(--primary); }

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

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

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

/* Axis 1: N-E Minimal Top-bar */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    height: 60px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 9999;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 4rem;
}
.logo {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--secondary);
    white-space: nowrap;
    flex-shrink: 0;
}
.logo span { color: var(--primary); border-bottom: 2px solid var(--accent); }

.main-nav ul { display: flex; list-style: none; gap: 3rem; }
.main-nav a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.main-nav a:hover { color: var(--primary); }

.nav-toggle { display: none; }

/* Axis 2: H-B Split-screen 50/50 */
.hero-atrr { min-height: 80vh; display: flex; background: var(--bg-alt); position: relative; overflow: hidden; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.hero-text { padding: clamp(2rem, 8vw, 6rem); display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.hero-image { overflow: hidden; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

.btn-atrr {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    color: var(--white);
    font-family: 'Space Grotesk';
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
}
.btn-atrr::after {
    content: '';
    position: absolute;
    bottom: -5px; right: -5px;
    width: 100%; height: 100%;
    border: 1px solid var(--primary);
    z-index: -1;
    transition: 0.2s;
}
.btn-atrr:hover::after { bottom: 0; right: 0; }

/* Axis 3: F-B Feature Cards Grid */
.features-atrr { padding: var(--section-pad) 0; position: relative; background: var(--white); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.feature-card { background: var(--white); padding: 4rem; transition: var(--transition); }
.feature-card:hover { background: var(--bg-alt); }
.feature-card h3 { color: var(--primary); margin-bottom: 1.5rem; }
.feature-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Axis 5: U-F Textual Manifesto */
.manifesto-section { padding: var(--section-pad) 0; background: var(--secondary); color: var(--white); text-align: center; }
.manifesto-content { max-width: 900px; margin: 0 auto; }
.manifesto-title { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 3rem; color: var(--accent); }
.manifesto-text { font-family: 'Space Grotesk'; font-size: clamp(1.2rem, 3vw, 1.8rem); line-height: 1.4; opacity: 0.9; }

/* Axis 4 & 20: C-B Horizontal Post Cards */
.posts-section { padding: var(--section-pad) 0; background: var(--white); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; margin-bottom: 6rem; }

.post-card-horiz { display: flex; flex-direction: column; height: 100%; border-bottom: 1px solid var(--border); padding-bottom: 2rem; }
.post-card-horiz .thumb { height: 200px; overflow: hidden; margin-bottom: 2rem; }
.post-card-horiz .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: 0.5s; }
.post-card-horiz:hover .thumb img { filter: grayscale(0); transform: scale(1.05); }

.post-card-content { flex-grow: 1; display: flex; flex-direction: column; }
.post-card-content h3 { font-size: 1.4rem; flex-grow: 1; margin-bottom: 1.5rem; }
.post-card-content .meta { font-size: 0.75rem; font-weight: 600; color: var(--primary); text-transform: uppercase; margin-bottom: 1rem; }

/* Golden Standard Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin: 5rem 0; flex-wrap: wrap; }
.pagination .page-numbers { 
    display: flex; align-items: center; justify-content: center; 
    min-width: 45px; height: 45px; padding: 0 8px;
    text-decoration: none; font-weight: 700; border: 1px solid var(--border);
    transition: 0.3s;
    font-family: 'Space Grotesk';
}
.pagination .page-numbers.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .page-numbers.dots { border: none; background: transparent; cursor: default; }
.pagination .page-numbers:hover:not(.current):not(.dots) { background: var(--accent); color: var(--secondary); border-color: var(--secondary); }

/* Axis 6: FT-B Two-column Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--border); padding: 6rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6rem; margin-bottom: 4rem; }
.footer-logo { font-size: clamp(1.2rem, 4vw, 1.8rem); margin-bottom: 2rem; }
.footer-logo span { border-bottom: 2px solid var(--accent); }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; max-width: 450px; }

.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.footer-nav a { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; }
.footer-nav a:hover { color: var(--primary); }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* Single Content */
.post-main { max-width: var(--content-width); margin: 6rem auto; padding: 0 2rem; }
.post-content { font-size: 1.15rem; line-height: 1.8; color: var(--text-main); }
.post-content h2, .post-content h3 { margin-top: 4rem; margin-bottom: 2rem; color: var(--primary); }
.post-content table { width: 100%; border-collapse: collapse; margin: 4rem 0; border: 1px solid var(--border); }
.post-content th { background: var(--bg-alt); padding: 1.5rem; text-align: left; border-bottom: 2px solid var(--primary); }
.post-content td { padding: 1.5rem; border-bottom: 1px solid var(--border); }

/* Mobile Menu */
@media (max-width: 1024px) {
    .header-inner { gap: 1rem; }
    .main-nav { 
        display: block !important; position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
        background: var(--white); z-index: 10000; padding: 8rem 2rem;
        transform: translateY(-100%); transition: transform 0.4s ease; visibility: hidden;
    }
    body.menu-open .main-nav { transform: translateY(0); visibility: visible; }
    .main-nav ul { flex-direction: column; text-align: center; gap: 2rem; }
    .main-nav a { font-size: 1.5rem; }

    .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; z-index: 10001; padding: 10px; }
    .nav-toggle span { width: 25px; height: 2px; background: var(--secondary); transition: 0.3s; }
    body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
    body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .hero-split { grid-template-columns: 1fr; }
    .hero-image { height: 400px; order: -1; }
    .feature-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding: 0 1.5rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 4rem; }
    .footer-bottom { flex-direction: column; gap: 2rem; text-align: center; }
}
