/*
Theme Name: Meta-Touring - Travel & Adventure
Author: Meta-Touring Media
Description: Un portale dedicato ai viaggi, alle avventure e all'integrazione intelligente del betting sportivo nel turismo.
Version: 2.0.0
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;800&family=Lora:ital,wght@0,400;1,400&display=swap');

:root {
    --primary: #ff4757; /* Adventurous Red */
    --secondary: #2f3542; /* Deep Earth */
    --accent: #ffa502; /* Sunset Orange */
    --bg-main: #ffffff;
    --bg-soft: #f1f2f6;
    --white: #ffffff;
    --text-main: #2f3542;
    --text-muted: #747d8c;
    --border: rgba(47, 53, 66, 0.1);
    
    --container-width: 1320px;
    --content-width: 850px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

    --section-pad: clamp(4rem, 8vw, 7rem);
}

* { 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: 'Outfit', sans-serif;
    line-height: 1.7;
}

h1, h2, h3, .logo-text, .btn-tour {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-break: break-word;
}

h1 { font-size: clamp(2.5rem, 12vw, 7rem); color: var(--secondary); margin-bottom: 2rem; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 6vw, 3.5rem); margin-bottom: 3rem; position: relative; display: inline-block; }
h2::after { content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 4px; background: var(--primary); }
h3 { font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 1.2rem; }

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

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 2rem;
}

/* Axis 1: N-E Minimal Top-bar */
.site-header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--border);
    height: 70px;
    display: flex;
    align-items: center;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo {
    display: inline-block !important;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary) !important;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-decoration: none;
    min-width: 150px;
}
.logo span { color: var(--primary) !important; }

.main-nav ul { display: flex; list-style: none; gap: 2.5rem; }
.main-nav a { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--secondary); opacity: 0.7; }
.main-nav a:hover { opacity: 1; color: var(--primary); }

.nav-toggle { display: none; }

/* Axis 2: H-C Type-Only Hero (Text Focus) */
.hero-tour {
    padding: clamp(6rem, 15vh, 12rem) 0;
    background: var(--bg-soft);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-tour::before {
    content: 'EXPLORE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: var(--secondary);
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }

.btn-tour {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(255, 71, 87, 0.2);
    margin-top: 3rem;
}
.btn-tour:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(255, 71, 87, 0.3); }

/* Axis 3: F-B Cards in Grid (Features) */
.features-section { padding: var(--section-pad) 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.feature-card { padding: 3rem; background: var(--white); border: 1px solid var(--border); transition: var(--transition); }
.feature-card:hover { border-color: var(--primary); transform: translateY(-10px); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--accent); }

/* Axis 5: U-D Photo Strip (Gallery) */
.photo-strip { 
    display: flex; 
    width: 100%; 
    height: 400px; 
    overflow: hidden; 
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.strip-img { flex: 1; height: 100%; object-fit: cover; transition: 0.6s; filter: grayscale(100%); }
.strip-img:hover { flex: 2; filter: grayscale(0%); }

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

.post-card-tour { display: flex; flex-direction: column; height: 100%; }
.post-card-tour .thumb { height: 280px; overflow: hidden; margin-bottom: 1.5rem; position: relative; }
.post-card-tour .thumb img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.post-card-tour:hover .thumb img { transform: scale(1.1); }

.post-card-tour .meta { font-weight: 600; font-size: 0.75rem; color: var(--primary); margin-bottom: 0.5rem; text-transform: uppercase; }
.post-card-tour h3 { flex-grow: 1; font-size: 1.5rem; margin-bottom: 1rem; }
.post-card-tour p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.5rem; }

/* Axis 7: V-C Thin Dividers */
.divider-section { border-top: 1px solid var(--border); margin: 4rem 0; }

/* Axis 6: FT-D CTA-Footer */
.site-footer { background: var(--secondary); color: var(--white); padding: 8rem 0 4rem; }
.footer-cta { text-align: center; max-width: 800px; margin: 0 auto 6rem; }
.footer-cta h2 { color: var(--white); margin-bottom: 2rem; }
.footer-cta h2::after { left: 50%; transform: translateX(-50%); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 3rem; display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; align-items: flex-start; }
.footer-logo { font-size: 2.5rem; font-weight: 800; color: var(--white); text-transform: uppercase; }
.footer-logo span { color: var(--primary); }

.footer-nav ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-nav a { font-weight: 500; opacity: 0.6; text-transform: uppercase; font-size: 0.8rem; }
.footer-nav a:hover { opacity: 1; color: var(--primary); }

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

/* Rule 47: Footer Protection */
.site-main footer { margin-left: 0; width: 100%; }

@media (max-width: 1024px) {
    .features-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { grid-template-columns: 1fr; text-align: center; }
    .footer-nav ul { justify-items: center; }
}

@media (max-width: 768px) {
    .nav-toggle { 
        display: flex; flex-direction: column; gap: 5px; 
        padding: 10px; border: none; background: none; cursor: pointer; z-index: 10001; 
    }
    .nav-toggle span { width: 25px; height: 2px; background: var(--secondary); transition: 0.3s; }
    
    .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; }

    .posts-grid { grid-template-columns: 1fr; }
    .photo-strip { height: 200px; }
    .footer-nav ul { grid-template-columns: 1fr; }
}
