/*
Theme Name: AdVentureAI Theme
Description: Tema WordPress minimalista e vintage per agenzia di media buying AdVentureAI
Author: AdVentureAI
Version: 1.0
*/

/* Import Google Fonts - Vintage e eleganti */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lora:wght@300;400;500&family=Open+Sans:wght@300;400;600&display=swap');

/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lora', serif;
    background-color: #ffffff;
    color: #4a4a4a;
    line-height: 1.6;
    font-weight: 400;
}

/* Palette colori vintage minimalista */
:root {
    --primary-white: #ffffff;
    --cream: #f8f6f0;
    --olive-green: #8fa68e;
    --light-brown: #c4a484;
    --warm-gray: #9b9b9b;
    --dark-text: #4a4a4a;
    --vintage-beige: #f5f2e8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

p, li {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
}

/* Container e layout */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-white);
    padding: 120px 0 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Immagine di sfondo Hero (applicata tramite inline style) */
.hero-section.has-background-image {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-section.has-background-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: auto;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-title.has-logo {
    font-size: 2.8rem;
    margin-top: 1rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--dark-text); /* Fallback per browser non compatibili */
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    position: relative;
    background: linear-gradient(90deg, var(--dark-text) 0%, var(--olive-green) 50%, var(--dark-text) 100%);
    background-size: 200% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shine 3s ease-in-out infinite;
}

/* Fallback per browser che non supportano background-clip */
@supports not (-webkit-background-clip: text) {
    .hero-subtitle {
        color: var(--dark-text);
        background: none;
        -webkit-text-fill-color: initial;
        animation: none;
    }
}

@keyframes text-shine {
    0%, 100% {
        background-position: 200% center;
    }
    50% {
        background-position: -200% center;
    }
}

.cta-button {
    background-color: var(--olive-green);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-family: 'Lora', serif;
    font-weight: 400;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background-color: #7a8f79;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(143, 166, 142, 0.3);
}

/* Contact Section */
.contact-section {
    background-color: var(--cream);
    padding: 100px 0;
}

.contact-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 3rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Lora', serif;
    font-weight: 400;
    color: var(--dark-text);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.form-control:focus {
    outline: none;
    border-color: var(--olive-green);
    background-color: white;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background-color: var(--light-brown);
    color: white;
    border: none;
    padding: 15px 35px;
    font-size: 1rem;
    font-family: 'Lora', serif;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.submit-button:hover {
    background-color: #b39872;
    transform: translateY(-1px);
}

.contact-info {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.contact-info h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.contact-details p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: var(--warm-gray);
}

/* Footer */
.footer-section {
    background-color: var(--vintage-beige);
    padding: 60px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.footer-graphics {
    position: relative;
    height: 120px;
    margin-bottom: 30px;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
}

.star {
    position: absolute;
    color: var(--olive-green);
    font-size: 12px;
    opacity: 0.6;
}

.star:nth-child(1) { left: 15%; top: 10px; }
.star:nth-child(2) { left: 35%; top: 5px; }
.star:nth-child(3) { left: 65%; top: 15px; }
.star:nth-child(4) { left: 85%; top: 8px; }
.star:nth-child(5) { left: 25%; top: 25px; }
.star:nth-child(6) { left: 75%; top: 22px; }

.pine-trees {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 100"><polygon points="100,100 120,20 140,100" fill="%23698269"/><polygon points="200,100 220,30 240,100" fill="%23698269"/><polygon points="350,100 375,25 400,100" fill="%23698269"/><polygon points="500,100 520,28 540,100" fill="%23698269"/><polygon points="700,100 720,30 740,100" fill="%23698269"/><polygon points="850,100 875,18 900,100" fill="%23698269"/><polygon points="1000,100 1025,24 1050,100" fill="%23698269"/></svg>') repeat-x bottom;
    background-size: 1200px 100px;
}

.footer-copyright {
    text-align: center;
    font-size: 0.95rem;
    color: var(--warm-gray);
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    margin-top: 20px;
}

/* Partners Section */
.partners-section {
    background-color: var(--primary-white);
    padding: 80px 0;
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    font-family: 'Playfair Display', serif;
}

.partners-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

.partners-carousel {
    position: relative;
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 15%, white 85%, transparent);
}

.partners-track {
    display: flex;
    animation: scroll-partners 30s linear infinite;
    gap: 4rem;
    align-items: center;
}

.partner-item {
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--warm-gray);
    font-family: 'Lora', serif;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    white-space: nowrap;
    opacity: 0.8;
}

.partner-item:hover {
    color: var(--olive-green);
    opacity: 1;
}

.partner-item.featured {
    color: var(--olive-green);
    font-weight: 600;
    font-size: 1.4rem;
    opacity: 1;
}

@keyframes scroll-partners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Stats Section - solo montagne pulite */
.stats-section {
    background-color: var(--cream);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* Montagne pulite - sfondo semplice */
.stats-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    right: 0;
    bottom: 20%;
    background-color: var(--olive-green);
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
    clip-path: polygon(
        0% 80%, 
        8% 70%, 
        15% 45%, 
        22% 35%, 
        28% 55%, 
        35% 25%, 
        42% 40%, 
        48% 20%, 
        55% 35%, 
        62% 15%, 
        68% 30%, 
        75% 10%, 
        82% 25%, 
        88% 5%, 
        95% 20%, 
        100% 15%, 
        100% 100%, 
        0% 100%
    );
}

.stats-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-text);
    font-family: 'Playfair Display', serif;
    position: relative;
    z-index: 2;
}

.stats-section .container {
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    width: 100%;
    position: relative;
    height: 100%;
    z-index: 3;
    margin-bottom: 2rem;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--olive-green);
    font-family: 'Open Sans', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
    animation: gentle-float 3s ease-in-out infinite;
    line-height: 1;
    font-variant: normal;
    font-feature-settings: "lnum" 1, "tnum" 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--warm-gray);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Open Sans', sans-serif;
}

.live-counter {
    color: var(--olive-green);
    position: relative;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Sezione Cosa Compriamo */
.what-we-buy-section {
    background-color: var(--primary-white);
    padding: 80px 0;
    position: relative;
}

.what-we-buy-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.what-we-buy-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--warm-gray);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.format-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--olive-green);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.format-card:hover::before {
    transform: scaleX(1);
}

.format-card:hover {
    transform: translateY(-8px);
    border-color: var(--olive-green);
    box-shadow: 0 12px 40px rgba(143, 166, 142, 0.15);
}

.format-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--vintage-beige);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--olive-green);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Icona con immagine personalizzata */
.format-icon.has-custom-image {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.format-icon.has-custom-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(143, 166, 142, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.format-card:hover .format-icon.has-custom-image::after {
    opacity: 1;
}

/* Fallback per icone emoji quando non c'è immagine */
.format-icon:not(.has-custom-image) {
    background: var(--vintage-beige);
}

.format-card:hover .format-icon:not(.has-custom-image) {
    background: var(--olive-green);
    color: white;
    transform: scale(1.1);
}

.format-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.format-description {
    font-size: 1rem;
    color: var(--warm-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
}

.format-cta {
    font-size: 0.9rem;
    color: var(--olive-green);
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--olive-green);
    border-radius: 25px;
    display: inline-block;
    transition: all 0.3s ease;
    background: transparent;
}

.format-cta:hover {
    background: var(--olive-green);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(143, 166, 142, 0.3);
}

/* Responsive Design Migliorato */
@media (max-width: 768px) {
    /* Mantieni immagine Hero sempre centrata su tablet */
    .hero-section.has-background-image {
        background-position: center center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .hero-section {
        padding: 80px 0 60px 0;
    }
    
    .partners-section, .stats-section {
        padding: 60px 0;
    }
    
    .partners-title, .stats-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .partners-track {
        gap: 3rem;
    }
    
    .partner-item {
        font-size: 1.1rem;
    }
    
    .partner-item.featured {
        font-size: 1.2rem;
    }
    
    .stat-item {
        padding: 2.5rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    /* Mantieni immagine Hero sempre centrata su mobile */
    .hero-section.has-background-image {
        background-position: center center;
    }
    
    .stats-section {
        padding: 40px 0;
    }
    
    /* Montagne semplificate per mobile */
    .stats-section::before {
        top: 10%;
        bottom: 10%;
        clip-path: polygon(
            0% 90%, 
            15% 80%, 
            25% 60%, 
            40% 50%, 
            55% 70%, 
            70% 40%, 
            85% 60%, 
            100% 35%, 
            100% 100%, 
            0% 100%
        );
        opacity: 0.04;
    }
    
    .stats-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        padding: 0 15px;
    }
    
    /* Cards più orizzontali e compatte per mobile */
    .stat-item {
        padding: 1.8rem 1.2rem;
        margin-bottom: 1.2rem;
        border-radius: 6px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 140px;
        max-height: 160px;
    }
    
    .stat-number {
        font-size: 2.8rem;
        margin-bottom: 0.4rem;
        line-height: 0.9;
    }
    
    .stat-label {
        font-size: 1rem;
        line-height: 1.2;
        text-align: center;
        font-weight: 500;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
    
    .partners-section {
        padding: 40px 0;
    }
    
    .partners-title {
        font-size: 1.8rem;
    }
    
    .partners-track {
        gap: 2rem;
    }
    
    .partner-item {
        font-size: 1rem;
    }
    
    .partner-item.featured {
        font-size: 1.1rem;
    }
    
    .contact-title {
        font-size: 1.8rem;
    }
}

/* Extra small devices - layout ancora più ottimizzato */
@media (max-width: 480px) {
    /* Mantieni immagine Hero sempre centrata anche su schermi piccoli */
    .hero-section.has-background-image {
        background-position: center center;
    }
    
    .stats-section::before {
        clip-path: polygon(
            0% 95%, 
            20% 85%, 
            40% 75%, 
            60% 80%, 
            80% 70%, 
            100% 60%, 
            100% 100%, 
            0% 100%
        );
        opacity: 0.03;
    }
    
    /* Cards ultra-compatte ma ben visibili */
    .stat-item {
        padding: 1.5rem 1rem;
        min-height: 120px;
        max-height: 140px;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2.4rem;
        margin-bottom: 0.3rem;
        font-weight: 800;
    }
    
    .stat-label {
        font-size: 0.95rem;
        font-weight: 600;
        letter-spacing: 0.05em;
    }
}

/* Landscape mobile - layout orizzontale ottimizzato */
@media (max-width: 896px) and (orientation: landscape) {
    .stat-item {
        padding: 1.5rem 1rem;
        min-height: 100px;
        max-height: 120px;
    }
    
    .stat-number {
        font-size: 2.2rem;
        line-height: 0.8;
    }
    
    .stat-label {
        font-size: 0.9rem;
        line-height: 1.1;
    }
}

/* Responsive per Cosa Compriamo */
@media (max-width: 768px) {
    .what-we-buy-section {
        padding: 60px 0;
    }
    
    .what-we-buy-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .what-we-buy-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
        padding: 0 20px;
    }
    
    .format-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 20px;
    }
    
    .format-card {
        padding: 2rem 1.2rem;
    }
    
    .format-icon {
        width: 70px;
        height: 70px;
        font-size: 2.2rem;
    }
    
    .format-name {
        font-size: 1.3rem;
    }
    
    .format-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .what-we-buy-section {
        padding: 40px 0;
    }
    
    .what-we-buy-title {
        font-size: 1.8rem;
        padding: 0 15px;
    }
    
    .what-we-buy-subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .format-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 0 15px;
    }
    
    .format-card {
        padding: 1.8rem 1rem;
    }
    
    .format-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        margin-bottom: 1.2rem;
    }
    
    .format-name {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    .format-description {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }
    
    .format-cta {
        font-size: 0.85rem;
        padding: 0.7rem 1.3rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 2rem;
} 