/*
Theme Name: ECIG360 Theme
Theme URI: https://ecig360.it
Description: Tema personalizzato per ECIG360 - Il primo gestionale web nativo per il settore del vaping
Author: Distribuzione Informatica
Author URI: https://distribuzioneinformatica.it
Template: agencygrove
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: ecig360-theme
Tags: vaping, gestionale, business, e-commerce
*/

/* Personalizzazioni colori brand ECIG360 */
:root {
    --ecig360-blue: #2b4c8f;
    --ecig360-blue-dark: #1e3a6f;
    --ecig360-yellow: #fbbf24;
    --ecig360-yellow-dark: #f59e0b;
    --ecig360-dark: #111827;
    --ecig360-light: #f9fafb;
    --ecig360-white: #ffffff;
}

/* Font globale */
body,
.wp-block-heading,
.wp-block-paragraph,
.wp-block-button__link {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Override colori tema con brand colors */
.has-primary-color {
    color: var(--ecig360-blue) !important;
}

.has-primary-background-color {
    background-color: var(--ecig360-blue) !important;
}

.has-secondary-color {
    color: var(--ecig360-yellow) !important;
}

.has-secondary-background-color {
    background-color: var(--ecig360-yellow) !important;
}

/* Link colors */
a {
    color: var(--ecig360-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--ecig360-yellow-dark);
}

/* Stili header personalizzati */
.site-header {
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 999;
    background: var(--ecig360-white) !important;
    padding: 0.75rem 0 !important;
}

.site-header .wp-block-group {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.wp-block-site-title {
    margin: 0 !important;
    line-height: 1 !important;
}

.wp-block-site-title a {
    color: var(--ecig360-blue);
    font-weight: 700;
}

.wp-block-site-logo img {
    max-height: 120px !important;
    width: auto !important;
}

.wp-block-navigation {
    margin: 0 !important;
}

.wp-block-navigation a {
    color: var(--ecig360-dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
}

.wp-block-navigation a:hover {
    color: var(--ecig360-blue);
}

/* Buttons */
.wp-block-button__link,
.wp-element-button {
    background-color: var(--ecig360-blue);
    color: var(--ecig360-white) !important;
    border-radius: 8px;
    padding: 14px 36px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid var(--ecig360-blue);
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: var(--ecig360-yellow);
    border-color: var(--ecig360-yellow);
    color: var(--ecig360-dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4);
}

.hero-section .is-style-outline .wp-block-button__link,
.is-style-outline .wp-block-button__link {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    color: #ffffff !important;
    backdrop-filter: blur(10px);
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.hero-section .is-style-outline .wp-block-button__link:hover,
.is-style-outline .wp-block-button__link:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-color: #ffffff !important;
    color: #2b4c8f !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4) !important;
    text-shadow: none !important;
}

/* Sezioni hero */
.hero-section {
    color: white;
    padding: 100px 20px !important;
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #1a1f3a 0%, #0d1b3e 50%, #132044 100%) !important;
    min-height: 500px;
    max-height: 700px;
}

.ecig360-particles-canvas {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    pointer-events: none !important;
    display: block;
}

.hero-section .wp-block-cover__background {
    display: none !important;
}

.hero-section .wp-block-cover__inner-container {
    position: relative;
    z-index: 2;
}

.hero-section::before {
    display: none;
}

.hero-section::after {
    display: none;
}

/* CTA section con particelle */
.ecig360-cta-section {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #1a1f3a 0%, #0d1b3e 50%, #132044 100%) !important;
}

.ecig360-cta-section > * {
    position: relative;
    z-index: 2;
}

.ecig360-cta-section h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.ecig360-cta-section p {
    color: #ffffff !important;
}

.ecig360-cta-section .is-style-outline .wp-block-button__link {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

.hero-section h1 {
    color: var(--ecig360-white) !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hero-section p {
    color: rgba(255,255,255,0.95) !important;
}

/* Cards funzionalità - Stile uniforme per tutto il sito */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(43, 76, 143, 0.12);
    border-color: rgba(251, 191, 36, 0.3);
}

.feature-icon {
    color: var(--ecig360-yellow);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    line-height: 1;
}

.feature-card h3 {
    color: var(--ecig360-blue) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.feature-card p {
    color: #4b5563;
    line-height: 1.6;
}

/* Footer personalizzato */
.site-footer .wp-block-separator,
.site-footer hr,
.site-footer .is-style-wide {
    display: none !important;
}

.site-footer {
    background-color: var(--ecig360-dark) !important;
    color: var(--ecig360-light) !important;
    padding: 60px 20px 30px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--ecig360-white) !important;
}

.site-footer a {
    color: var(--ecig360-light);
}

.site-footer a:hover {
    color: var(--ecig360-yellow);
}

.site-footer .wp-block-separator {
    border-color: rgba(255,255,255,0.1) !important;
}

/* Headings globali */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--ecig360-dark);
}

h2 {
    color: var(--ecig360-blue) !important;
}

/* Sezioni alternate */
.has-light-background-color {
    background-color: #f8fafc !important;
}

/* Hover zoom immagini */
#perche-ecig360 .wp-block-image {
    overflow: hidden;
    border-radius: 16px;
}

#perche-ecig360 .wp-block-image img {
    transition: transform 0.4s ease;
    border-radius: 16px;
}

#perche-ecig360 .wp-block-image:hover img {
    transform: scale(1.05);
}

/* WhatsApp button pulse animation */
@keyframes ecig360WaPulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Bottone torna su - responsive */
#ecig360-back-to-top {
    bottom: 30px;
    right: 30px;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.75rem !important;
    }
    
    .hero-section {
        padding: 80px 20px !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 16px !important;
    }
    
    .hero-section h1 {
        font-size: 2rem !important;
    }
    
    .hero-section p {
        font-size: 1rem !important;
    }
    
    h2.wp-block-heading {
        font-size: 2rem !important;
    }
    
    .feature-card {
        margin-bottom: 16px;
        padding: 24px 20px !important;
    }
    
    .wp-block-navigation a {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem !important;
    }
    
    .wp-block-site-logo img {
        max-height: 80px !important;
    }
    
    .site-footer {
        padding: 40px 16px 20px !important;
    }
}
