/*
Theme Name: Studyvant - Education & Betting Hub
Author: Studyvant Media
Description: Un portale informativo dedicato all'apprendimento, allo sviluppo personale e all'analisi responsabile delle scommesse sportive.
Version: 1.4.0
*/

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

:root {
    --primary: #2d3436; /* Charcoal */
    --secondary: #fdfbf7; /* Paper */
    --accent: #0984e3; /* Education Blue */
    --text-main: #2d3436;
    --text-muted: #636e72;
    --bg-main: #fdfbf7;
    --white: #ffffff;
    --border: #dcdde1;
    
    --container-width: 1200px;
    --content-width: 800px;
    --transition: all 0.3s ease;

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

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

/* Axis 7: V-C Thin line-separators, Typographic focus */
h1, h2, h3, .logo-text {
    font-family: 'Crimson Pro', serif;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(2rem, 10vw, 5.5rem); margin-bottom: 2rem; font-style: italic; }
h2 { font-size: clamp(1.8rem, 7vw, 3.8rem); margin-bottom: 3rem; }
h3 { font-size: clamp(1.4rem, 4vw, 2.2rem); margin-bottom: 1.5rem; }

.mono { font-family: 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.7rem; color: var(--accent); font-weight: 600; }

img { max-width: 100%; height: auto; display: block; filter: contrast(1.05) sepia(5%); }

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

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

/* Axis 1: N-C Hamburger Always (Minimal Top Bar) */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    z-index: 9999;
}

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

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    font-family: 'Crimson Pro';
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10001;
    padding: 10px;
}
.nav-toggle span { width: 24px; height: 1.5px; background: var(--primary); transition: 0.3s; }

/* Menu Overlay */
.main-nav {
    position: fixed;
    top: 0; right: 0; width: 100%; height: 100vh;
    background: var(--bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden;
}
body.menu-open .main-nav { transform: translateX(0); visibility: visible; }
.main-nav ul { list-style: none; text-align: center; }
.main-nav li { margin-bottom: 2rem; }
.main-nav a { font-family: 'Crimson Pro'; font-size: clamp(2rem, 8vw, 4rem); color: var(--primary); }
.main-nav a:hover { color: var(--accent); font-style: italic; }

/* Hamburger to X */
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Axis 2: H-C Type-Only Hero */
.hero-type {
    padding: var(--hero-pad) 0;
    text-align: center;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
}
.hero-type h1 { max-width: 900px; margin: 0 auto 3rem; }
.hero-type p { max-width: 600px; margin: 0 auto; font-size: 1.2rem; color: var(--text-muted); }

/* Axis 3: F-C Accordion (Academic Style) */
.features-accordion { padding: var(--section-pad) 0; border-bottom: 1px solid var(--border); }
.accordion-item { border-top: 1px solid var(--border); padding: 2rem 0; cursor: pointer; }
.accordion-item:last-child { border-bottom: 1px solid var(--border); }
.accordion-header { display: flex; justify-content: space-between; align-items: center; }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.accordion-item.active .accordion-content { max-height: 200px; padding-top: 2rem; }
.accordion-item.active .plus-icon { transform: rotate(45deg); }
.plus-icon { font-size: 1.5rem; transition: 0.3s; }

/* Axis 5: U-B Method & Visual */
.method-section { padding: var(--section-pad) 0; border-bottom: 1px solid var(--border); }
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.method-image { border: 1px solid var(--border); padding: 1rem; background: var(--white); }
.method-step { margin-bottom: 3rem; position: relative; padding-left: 4rem; }
.method-num { position: absolute; left: 0; top: 0; font-family: 'Crimson Pro'; font-size: 2.5rem; color: var(--accent); opacity: 0.3; }

/* Posts Grid (Standard 3x3 with Axis 4: C-D Minimal Textual) */
.posts-section { padding: var(--section-pad) 0; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; margin-bottom: 6rem; }
.post-card-minimal { border-top: 1px solid var(--primary); padding-top: 2rem; display: flex; flex-direction: column; height: 100%; }
.post-card-minimal h3 { font-size: 1.6rem; flex-grow: 1; margin-bottom: 2rem; }
.post-card-minimal .meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.btn-read { font-family: 'Crimson Pro'; font-size: 1.1rem; border-bottom: 1px solid var(--primary); width: fit-content; font-style: italic; }

/* Axis 6: FT-A Minimalist One-line */
.site-footer { padding: 4rem 0; border-top: 1px solid var(--border); background: var(--bg-main); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-size: clamp(1.2rem, 5vw, 1.8rem); font-family: 'Crimson Pro'; overflow-wrap: anywhere; }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }

/* Responsive */
@media (max-width: 1024px) {
    .method-grid { grid-template-columns: 1fr; gap: 4rem; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

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