/*
Theme Name: StratIT Advisory
Description: A professional WordPress theme for StratIT Advisory - Strategic IT Leadership & Cybersecurity consulting.
Author: Roberto Consiglio
Version: 1.0.0
License: GPL v2 or later
Text Domain: stratit
*/

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

body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* WordPress specific styles */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.9em;
    color: #666;
    margin-top: 0.5em;
}

.alignleft {
    float: left;
    margin: 0 1em 1em 0;
}

.alignright {
    float: right;
    margin: 0 0 1em 1em;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Add padding to body to account for fixed header */
body {
    font-family: 'Lato', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 120px; /* Adjust based on header height */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
    max-width: 350px;
}

.logo-icon {
    width: 100%;
    height: auto;
    max-width: 350px;
    max-height: 100px;
    transition: all 0.3s ease;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-button {
    background: none;
    border: 2px solid #20b2aa;
    color: #20b2aa;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.lang-button.active {
    background: #20b2aa;
    color: white;
}

.lang-button:hover {
    background: #20b2aa;
    color: white;
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

/* Ensure both language menus are visible on desktop */
.nav-menu[data-nav="en"],
.nav-menu[data-nav="it"] {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #20b2aa;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #1e3a5f;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%);
    transition: all 0.4s ease;
    z-index: 999;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-nav-menu {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-nav-menu li {
    margin: 2rem 0;
}

.mobile-nav-menu a {
    color: white;
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}

.mobile-nav-menu a:hover {
    color: #40e0d0;
    transform: scale(1.1);
}

.mobile-lang-switcher {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.mobile-lang-switcher .lang-button {
    border-color: white;
    color: white;
}

.mobile-lang-switcher .lang-button.active {
    background: white;
    color: #1e3a5f;
}

.mobile-lang-switcher .lang-button:hover {
    background: white;
    color: #1e3a5f;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e3a5f 0%, #20b2aa 50%, #40e0d0 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin-top: -120px;
    padding-top: 120px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero .tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
}

.hero p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Pillars Section */
.pillars-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: #f8f9fb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pillar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--pillar-color);
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.pillar-card.strategy {
    --pillar-color: linear-gradient(135deg, #1e3a5f, #20b2aa);
}

.pillar-card.security {
    --pillar-color: linear-gradient(135deg, #20b2aa, #40e0d0);
}

.pillar-card.operations {
    --pillar-color: linear-gradient(135deg, #40e0d0, #1e3a5f);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    background: var(--pillar-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.pillar-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.pillar-card p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.pillar-features {
    list-style: none;
}

.pillar-features li {
    color: #555;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
}

.pillar-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #20b2aa;
    font-weight: bold;
}

/* About Section */
.about-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1e3a5f;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    margin-bottom: 1.5rem;
}

.credentials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.credential {
    background: #f8f9fb;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border-left: 4px solid #20b2aa;
}

.credential-title {
    font-size: 0.9rem;
    color: #20b2aa;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.credential-value {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #1e3a5f;
    font-weight: 700;
}

/* Experience Section */
.experience-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #1e3a5f 0%, #20b2aa 100%);
    color: white;
}

.experience-section .section-header h2 {
    color: white;
}

.experience-section .section-header p {
    color: rgba(255, 255, 255, 0.9);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.experience-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.experience-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.experience-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 0.5rem;
}

.experience-card .company {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin-bottom: 1rem;
}

.experience-card .achievement {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-section {
    padding: clamp(3rem, 8vw, 6rem) 0;
    background: #E5E7EB;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #1e3a5f;
    margin-bottom: 1rem;
}

.contact-content p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: #666;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #20b2aa;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-item h3 {
    font-family: 'Montserrat', sans-serif;
    color: #1e3a5f;
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.contact-item a {
    color: #20b2aa;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.contact-item a:hover {
    color: #40e0d0;
}

.contact-item p {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e3a5f;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #20b2aa;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: #20b2aa;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #1a9999;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 178, 170, 0.3);
}

/* Footer */
.footer {
    background: #1e3a5f;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.footer p:first-child {
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.footer p:last-child {
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(0.8rem, 1.3vw, 0.9rem);
}

/* Hidden sections for language toggle */
.content {
    display: none;
}

.content.active {
    display: block;
}

.brand-accent {
    color: #20b2aa;
}

.text-primary {
    color: #1e3a5f;
}

.text-secondary {
    color: #20b2aa;
}

/* WordPress specific message styles */
.contact-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.contact-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        padding-top: 100px;
    }
    
    .hero {
        margin-top: -100px;
        padding-top: 100px;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo {
        max-width: 280px;
    }
    
    .logo-icon {
        max-width: 280px;
        max-height: 80px;
    }
    
    .pillars-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .hero-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 90px;
    }
    
    .hero {
        margin-top: -90px;
        padding-top: 90px;
        min-height: 90vh;
    }
    
    .navbar {
        padding: 0.3rem 0;
    }
    
    /* Hide ALL navigation menus on mobile */
    .nav-menu,
    .nav-menu[data-nav="en"],
    .nav-menu[data-nav="it"] {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo {
        max-width: 220px;
    }
    
    .logo-icon {
        max-width: 220px;
        max-height: 63px;
    }
    
    .language-switcher {
        display: none;
    }
    
    .hero-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pillar-card {
        padding: 2rem 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .credentials {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }
    
    .hero {
        margin-top: -80px;
        padding-top: 80px;
        min-height: 85vh;
    }
    
    .navbar {
        padding: 0.2rem 0;
    }
    
    .logo {
        max-width: 180px;
    }
    
    .logo-icon {
        max-width: 180px;
        max-height: 51px;
    }
    
    .pillar-card {
        padding: 1.5rem 1rem;
    }
    
    .pillar-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .experience-card {
        padding: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem 1rem;
    }
    
    .credentials {
        grid-template-columns: 1fr;
    }
    
    .mobile-nav-menu a {
        font-size: 1.8rem;
    }
    
    .mobile-nav-menu li {
        margin: 1.5rem 0;
    }
}

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

.pillar-card {
    animation: fadeInUp 0.6s ease forwards;
}

.pillar-card:nth-child(2) {
    animation-delay: 0.1s;
}

.pillar-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for better accessibility */
.hamburger:focus,
.nav-menu a:focus,
.mobile-nav-menu a:focus,
.cta-button:focus,
.contact-item a:focus,
.lang-button:focus,
.submit-button:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid #20b2aa;
    outline-offset: 2px;
}