/*
Theme Name: LUMINA GROUP
Description: Tema WordPress completo per LUMINA GROUP - E.S.C.O. Energy Service Company
Version: 1.0
Author: LUMINA GROUP
License: GPL v2 or later
Text Domain: lumina-group
*/

:root {
    --lumina-navy: #1e3a5f;
    --lumina-gold: #f4c430;
    --lumina-teal: #20b2aa;
    --lumina-white: #ffffff;
    --lumina-light: #f8fafc;
    --lumina-gray: #64748b;
    --lumina-dark: #1a202c;
    --lumina-success: #10b981;
    --lumina-error: #ef4444;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--lumina-dark);
    background: var(--lumina-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--lumina-teal);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--lumina-navy);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--lumina-gold), #ffeb3b);
    color: var(--lumina-navy);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(244, 196, 48, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--lumina-white);
    border: 2px solid var(--lumina-white);
}

.btn-outline:hover {
    background: var(--lumina-white);
    color: var(--lumina-navy);
}

.btn-secondary {
    background: var(--lumina-teal);
    color: var(--lumina-white);
}

.btn-secondary:hover {
    background: #1a9b95;
    transform: translateY(-2px);
}

/* Header */
.site-header {
    background: linear-gradient(135deg, var(--lumina-navy), var(--lumina-dark));
    color: var(--lumina-white);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(30, 58, 95, 0.95);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--lumina-white);
    text-decoration: none;
    font-weight: bold;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--lumina-gold), #ffeb3b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--lumina-navy);
    transition: transform 0.3s;
}

.site-logo:hover .logo-icon {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-tagline {
    font-size: 0.8rem;
    opacity: 0.8;
    font-weight: normal;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.main-navigation a {
    color: var(--lumina-white);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
    position: relative;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lumina-gold);
    transition: width 0.3s;
}

.main-navigation a:hover::after {
    width: 100%;
}

.main-navigation a:hover {
    color: var(--lumina-gold);
}

.header-cta {
    background: var(--lumina-gold);
    color: var(--lumina-navy);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s;
}

.header-cta:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 196, 48, 0.3);
}

/* Main Content */
.site-main {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(30, 58, 95, 0.9), rgba(26, 32, 44, 0.8)),
                url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><radialGradient id="grad1" cx="20%" cy="20%" r="30%"><stop offset="0%" style="stop-color:%23f4c430;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%23f4c430;stop-opacity:0" /></radialGradient><radialGradient id="grad2" cx="80%" cy="70%" r="40%"><stop offset="0%" style="stop-color:%2320b2aa;stop-opacity:0.1" /><stop offset="100%" style="stop-color:%2320b2aa;stop-opacity:0" /></radialGradient></defs><rect fill="url(%23grad1)" width="1200" height="600"/><rect fill="url(%23grad2)" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    color: var(--lumina-white);
    text-align: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Section Styles */
.section-title {
    text-align: center;
    color: var(--lumina-navy);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--lumina-gold), var(--lumina-teal));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--lumina-gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Calculator Section */
.calculator-section {
    background: var(--lumina-light);
    padding: 80px 0;
}

.calculator-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.energy-calculator {
    background: var(--lumina-white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--lumina-navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--lumina-teal);
    box-shadow: 0 0 0 3px rgba(32, 178, 170, 0.1);
}

.form-group input.valid {
    border-color: var(--lumina-success);
}

.form-group input.error {
    border-color: var(--lumina-error);
}

.field-error {
    color: var(--lumina-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.savings-result {
    background: linear-gradient(135deg, var(--lumina-success), #059669);
    color: var(--lumina-white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 2rem;
}

.savings-highlight {
    margin: 1rem 0;
}

.main-savings {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--lumina-gold);
    margin-bottom: 0.5rem;
}

.monthly-savings {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.percentage-savings {
    font-size: 1rem;
    color: var(--lumina-white);
    opacity: 0.9;
}

.current-spending {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

.result-note {
    font-size: 0.875rem;
    opacity: 0.8;
    margin: 1rem 0;
    font-style: italic;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--lumina-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--lumina-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--lumina-gold), var(--lumina-teal));
    transition: left 0.3s;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover,
.service-card.hovered {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--lumina-navy);
}

.service-card p {
    color: var(--lumina-gray);
    line-height: 1.6;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: var(--lumina-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: transform 0.3s;
}

.feature-item:hover,
.feature-item.hovered {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--lumina-gold), #ffeb3b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--lumina-navy);
    transition: transform 0.3s;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

.feature-item h3 {
    color: var(--lumina-navy);
    margin-bottom: 1rem;
}

.feature-item p {
    color: var(--lumina-gray);
    line-height: 1.6;
}

/* CER Section */
.cer-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--lumina-navy), var(--lumina-dark));
    color: var(--lumina-white);
}

.cer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cer-text h2 {
    color: var(--lumina-gold);
    margin-bottom: 1.5rem;
}

.cer-text ul {
    list-style: none;
    margin: 2rem 0;
}

.cer-text li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.cer-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cer-placeholder {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--lumina-teal), #1a9b95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--lumina-white);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--lumina-white);
}

.contact-form-wrapper {
    max-width: 800px;
    margin: 0 auto 3rem;
}

.lead-form {
    background: var(--lumina-light);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.privacy-note {
    font-size: 0.875rem;
    color: var(--lumina-gray);
    text-align: center;
    margin-top: 1rem;
    line-height: 1.4;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--lumina-light);
    border-radius: 15px;
}

.contact-item h4 {
    color: var(--lumina-navy);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-item p {
    color: var(--lumina-gray);
    line-height: 1.6;
}

.contact-item a {
    color: var(--lumina-teal);
    font-weight: 600;
}

/* Footer */
.site-footer {
    background: var(--lumina-dark);
    color: var(--lumina-white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: var(--lumina-gold);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.25rem 0;
    color: #cbd5e0;
}

.footer-section a {
    color: #cbd5e0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--lumina-gold);
}

.company-info {
    color: #a0aec0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.why-list li {
    color: #cbd5e0;
    padding: 0.25rem 0;
}

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-links span {
    color: #4a5568;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--lumina-white);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left: 4px solid var(--lumina-success);
}

.notification-error {
    border-left: 4px solid var(--lumina-error);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-message {
    flex: 1;
    color: var(--lumina-dark);
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--lumina-gray);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.notification-close:hover {
    background: #f1f5f9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--lumina-navy);
        padding: 1rem 0;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .cer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .energy-calculator {
        padding: 2rem 1.5rem;
    }
    
    .lead-form {
        padding: 2rem 1.5rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .energy-calculator,
    .lead-form {
        padding: 1.5rem 1rem;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .notification {
        display: none !important;
    }
    
    .site-main {
        margin-top: 0;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.hidden { display: none; }
.visible { display: block; }

/* Accessibilità */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles per accessibilità */
*:focus {
    outline: 2px solid var(--lumina-teal);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--lumina-teal);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--lumina-navy);
}

/* Fix scroll offset per header fisso */
#calculator {
    padding-top: 120px;
    margin-top: -60px;
}

/* Fix scroll desktop - LUMINA GROUP */
@media (min-width: 768px) {
    #calculator {
        scroll-margin-top: 120px;
    }
}