/*
Theme Name: Ricarica Clima Modena
Theme URI: https://ricarica-clima-modena.it
Description: Landing page ad alta conversione per assistenza climatizzatori a Modena e provincia
Version: 1.0
Author: Ricarica Clima
*/

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

:root {
    --deep: #0a1628;
    --navy: #0f1f3d;
    --copper: #e8611a;
    --copper-glow: rgba(232, 97, 26, 0.5);
    --cold: #06b6d4;
    --cold-glow: rgba(6, 182, 212, 0.4);
    --frost: rgba(255,255,255,0.06);
    --white: #f8fafc;
    --muted: rgba(248,250,252,0.7);
    --radius: 12px;
}

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap");

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: "Outfit", system-ui, sans-serif;
    background: var(--deep);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, #0a1628 0%, #0f1f3d 40%, #0a1628 100%);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(6,182,212,0.08) 0%, transparent 70%);
    animation: coldPulse 8s ease-in-out infinite;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,97,26,0.06) 0%, transparent 70%);
    animation: heatPulse 10s ease-in-out infinite;
}

@keyframes coldPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes heatPulse {
    0%, 100% { transform: scale(1.1); opacity: 0.4; }
    50% { transform: scale(0.9); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--frost);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--cold);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--copper) 0%, #f59e0b 50%, var(--cold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 500px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-phone {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--copper);
    color: #fff;
    padding: 1.25rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    box-shadow: 0 0 40px var(--copper-glow);
    animation: phonePulse 2s ease-in-out infinite;
}

@keyframes phonePulse {
    0%, 100% { box-shadow: 0 0 40px var(--copper-glow); }
    50% { box-shadow: 0 0 60px rgba(232, 97, 26, 0.7), 0 0 100px rgba(232, 97, 26, 0.3); }
}

.hero-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(232, 97, 26, 0.7);
}

.hero-phone .phone-icon {
    font-size: 1.8rem;
}

.hero-micro {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-micro .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Services */
.services {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0a1628 0%, #0d1a30 50%, #0a1628 100%);
}

.section-label {
    color: var(--cold);
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.services h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--frost);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cold), var(--copper));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card:hover::before { opacity: 1; }

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Trust */
.trust {
    padding: 5rem 0;
    background: var(--navy);
    text-align: center;
}

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

.trust-item .num {
    font-family: "JetBrains Mono", monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cold);
    margin-bottom: 0.5rem;
}

.trust-item .label {
    color: var(--muted);
    font-size: 0.9rem;
}

/* CTA */
.cta-section {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(180deg, #0a1628 0%, #0d1a30 50%, #0a1628 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6,182,212,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.cta-section .hero-phone {
    font-size: 1.4rem;
}

/* Footer */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-info span {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-copy {
    color: rgba(148,163,184,0.5);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 8rem 0 4rem; }
    .hero-phone { font-size: 1.3rem; padding: 1rem 1.5rem; width: 100%; justify-content: center; }
    .services-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr 1fr; }
}

/* Legal links */
.footer-legal-links {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
}
.footer-legal-links a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.footer-legal-links a:hover { color: var(--cold); }

/* Page template for legal pages */
.page-template-default .container {
    max-width: 700px;
    padding: 8rem 1.5rem 4rem;
}
.page-template-default h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2rem 0 1rem;
    color: var(--cold);
}
.page-template-default h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2rem 0 0.5rem;
}
.page-template-default p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}
.page-template-default a {
    color: var(--cold);
}
