/* ========================================
   MODERN KENMA DOJO - CSS STYLESHEET
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Palette ispirata all'aikido */
    --primary: #1a1a2e;
    --secondary: #c7956d;
    --accent: #8b4513;
    --text-dark: #2d2d2d;
    --text-light: #6b6b6b;
    --text-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-heading: 'Cormorant', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

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

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

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-white);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: var(--transition);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    background-image: 
        linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(45, 45, 68, 0.9) 100%),
        url('images/aikido-hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-white);
    max-width: 900px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-subtitle {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 10px;
}

.hero-description {
    font-size: clamp(18px, 2vw, 24px);
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-line {
    width: 2px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--secondary);
    color: var(--text-white);
    border-color: var(--secondary);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(199, 149, 109, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 20px 50px;
    font-size: 16px;
}

/* ========================================
   SECTIONS
   ======================================== */

.intro-section,
.philosophy-section,
.dynamics-section {
    padding: var(--section-padding) 0;
    background: var(--bg-white);
    position: relative;
}

.section-header {
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    color: var(--primary);
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
}

/* ========================================
   INTRO SECTION
   ======================================== */

.intro-section {
    background: var(--bg-white);
    position: relative;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.intro-text {
    font-size: 17px;
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.lead-text {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.intro-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.intro-image .image-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.intro-image:hover img {
    transform: scale(1.05);
}

/* ========================================
   PHILOSOPHY SECTION
   ======================================== */

.philosophy-section {
    background: var(--bg-light);
}

.philosophy-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 80px;
    align-items: start;
}

.philosophy-image {
    position: sticky;
    top: 120px;
}

.philosophy-image .image-placeholder {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    margin-bottom: 20px;
}

.philosophy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    font-size: 14px;
    text-align: center;
    color: var(--text-light);
    line-height: 1.5;
}

.image-caption span {
    display: block;
    font-size: 13px;
    margin-top: 5px;
}

.philosophy-text h3 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 30px;
}

.philosophy-text p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ========================================
   DYNAMICS SECTION
   ======================================== */

.dynamics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.dynamic-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.dynamic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 30px;
    color: var(--secondary);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.dynamic-card h4 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 15px;
}

.dynamic-card p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-light);
}

/* ========================================
   QUOTE SECTION
   ======================================== */

.quote-section {
    padding: 100px 0;
    background: var(--primary);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(199, 149, 109, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.main-quote {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.main-quote p {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.95;
}

/* ========================================
   CTA SECTION
   ======================================== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    text-align: center;
    color: var(--text-white);
}

.cta-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 600;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: var(--text-white);
    color: var(--secondary);
    border-color: var(--text-white);
}

.cta-section .btn-primary:hover {
    background: transparent;
    color: var(--text-white);
    border-color: var(--text-white);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.footer-section p {
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-section ul a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.6;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 40px 20px;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .intro-grid,
    .philosophy-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .philosophy-image {
        position: static;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .dynamics-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   CONTACT FORM 7 - STYLING PERSONALIZZATO
   ============================================ */

/* Container form */
.wpcf7 {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Titolo sopra il form */
.wpcf7 h2 {
    font-family: var(--font-heading);
    font-size: 32px;
    color: #1a1a2e;
    margin-bottom: 30px;
}

/* Label */
.wpcf7 label {
    display: block;
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
}

/* Input e textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: 8px;
    background: #fff;
}

/* Focus state */
.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(199, 149, 109, 0.1);
}

/* Textarea */
.wpcf7 textarea {
    resize: vertical;
    min-height: 150px;
}

/* Bottone Submit */
.wpcf7 input[type="submit"],
.wpcf7 .wpcf7-submit {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 .wpcf7-submit:hover {
    background: transparent;
    color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(199, 149, 109, 0.2);
}

/* Messaggi di risposta */
.wpcf7-response-output {
    border: none !important;
    padding: 20px !important;
    margin: 20px 0 0 0 !important;
    border-radius: 8px !important;
    font-size: 15px !important;
}

/* Messaggio di successo */
.wpcf7-mail-sent-ok {
    background: #d4edda !important;
    color: #155724 !important;
    border-left: 4px solid #28a745 !important;
}

/* Messaggio di errore */
.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background: #f8d7da !important;
    color: #721c24 !important;
    border-left: 4px solid #dc3545 !important;
}

/* Errori validazione singoli campi */
.wpcf7-not-valid-tip {
    color: #dc3545;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc3545 !important;
}

/* Spinner loading */
.wpcf7 .ajax-loader {
    display: none;
}

.wpcf7-spinner {
    visibility: hidden;
}

.wpcf7 form.submitting .wpcf7-submit {
    opacity: 0.6;
    cursor: wait;
}

/* Layout a 2 colonne (opzionale) */
@media (min-width: 768px) {
    .wpcf7-form-control-wrap {
        display: block;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wpcf7 {
        padding: 30px 20px;
    }
    
    .wpcf7 h2 {
        font-size: 24px;
    }
}

