/*
Theme Name: One World Institute
Description: Tema personalizzato per la scuola di inglese One World Institute con sistema promozioni mensili
Version: 1.0.0
Author: One World Institute
Text Domain: oneworldinstitute
*/

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* Reset e base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lexend Deca', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; line-height: 1.1; }
h2 { font-size: 2.25rem; line-height: 1.2; }
h3 { font-size: 1.5rem; line-height: 1.3; }

/* Brand Colors CSS Variables */
:root {
    --color-primary: #25336B;
    --color-secondary: #929AB4;
    --color-accent-red: #CF152B;
    --color-pink: #E68C98;
    --color-orange: #F9B233;
    --color-beige: #FBD9A1;
    --color-light-gray: #DADADA;
    --color-dark-gray: #333333;
    --color-medium-gray: #999999;
}

/* Utility Classes */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent-red); }
.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent-red); }

/* Header Styles */
.owi-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    padding: 1rem 0;
}

.owi-top-bar {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    text-align: center;
}

.owi-logo-section {
    padding: 2rem 0;
    text-align: center;
    background: white;
}

.owi-logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.owi-logo-item img {
    max-height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.owi-logo-item img:hover {
    transform: scale(1.05);
}

/* Navigation */
.owi-nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

.owi-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.owi-nav a {
    color: var(--color-dark-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.owi-nav a:hover {
    background: var(--color-primary);
    color: white;
}

/* Hero Section */
.owi-hero {
    min-height: 70vh;
    background: linear-gradient(rgba(37, 51, 107, 0.85), rgba(37, 51, 107, 0.85)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23f0f0f0" width="1200" height="600"/><path fill="%23e0e0e0" d="M0,300 Q300,200 600,300 T1200,300 V600 H0 Z"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.owi-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.owi-hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.owi-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-orange);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.owi-btn:hover {
    background: var(--color-pink);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 178, 51, 0.4);
}

.owi-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.owi-btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* Cards */
.owi-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid var(--color-light-gray);
    text-align: center;
}

.owi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: var(--color-primary);
}

.owi-card-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.owi-card h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* Grid Layout */
.owi-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.owi-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.owi-grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.owi-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Sections */
.owi-section {
    padding: 4rem 0;
}

.owi-section-alt {
    background: var(--color-beige);
}

.owi-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-primary);
}

/* Footer */
.owi-footer {
    background: var(--color-primary);
    color: white;
    padding: 3rem 0 1rem;
}

.owi-footer h3 {
    color: var(--color-orange);
    margin-bottom: 1rem;
}

.owi-footer a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.owi-footer a:hover {
    color: var(--color-orange);
}

.owi-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.owi-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Social Links */
.owi-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.owi-social a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--color-orange);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.owi-social a:hover {
    background: var(--color-pink);
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .owi-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .owi-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .owi-logo-grid {
        flex-direction: column;
        gap: 1rem;
    }
    
    .owi-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .owi-grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .owi-hero-content h1 {
        font-size: 2rem;
    }
    
    .owi-hero-content p {
        font-size: 1rem;
    }
    
    .owi-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .owi-section {
        padding: 2rem 0;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owi-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Form Styles */
.owi-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.owi-form-group {
    margin-bottom: 1.5rem;
}

.owi-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
}

.owi-form input,
.owi-form textarea,
.owi-form select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--color-light-gray);
    border-radius: 5px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.owi-form input:focus,
.owi-form textarea:focus,
.owi-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}
