/*
Theme Name: Ricarica Clima Reggio Emilia
Theme URI: https://ricarica-clima-reggio.it
Description: Landing page ad alta conversione per assistenza climatizzatori a Reggio Emilia 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);
}

/* Hub sections */
.hub-section { padding: 4rem 0; }
.hub-section h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 2rem; }
.hub-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hub-link {
    display: inline-block;
    background: var(--frost);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--muted);
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.hub-link:hover {
    background: rgba(6,182,212,0.12);
    border-color: var(--cold);
    color: var(--cold);
    transform: translateY(-1px);
}

/* Footer nav */
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-nav-col strong { display: block; color: var(--cold); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-nav-col { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-nav-col .hub-link { font-size: 0.8rem; padding: 0.4rem 0.9rem; }
@media (max-width: 768px) { .footer-nav { grid-template-columns: 1fr; } }

/* Brand Grid */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 768px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .brand-grid { grid-template-columns: 1fr 1fr; } }

.brand-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.75rem; padding: 1.5rem 1rem;
    background: var(--frost); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); text-decoration: none;
    transition: all 0.3s ease; min-height: 140px;
}
.brand-card:hover { border-color: var(--cold); background: rgba(6,182,212,0.08); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.brand-logo { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; filter: none; opacity: 1; opacity: 0.8; transition: filter 0.3s ease; }
.brand-card:hover .brand-logo img { filter: none; opacity: 1; }
.brand-name { font-size: 0.9rem; font-weight: 600; color: var(--muted); text-align: center; transition: color 0.3s ease; }
.brand-card:hover .brand-name { color: var(--cold); }

/* Zone cards */
.zone-card { min-height: 80px; padding: 1.2rem; }
.zone-card .brand-name { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.zone-card:hover .brand-name { color: var(--cold); }
.zone-card .brand-name svg { flex-shrink: 0; stroke: var(--muted); transition: stroke 0.3s; }
.zone-card:hover .brand-name svg { stroke: var(--cold); }

/* Gas type badges */
.gas-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.2rem 0.6rem; border-radius: 4px;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
    margin-right: 0.3rem;
}
.gas-r32 { background: rgba(6,182,212,0.15); color: #06b6d4; border: 1px solid rgba(6,182,212,0.3); }
.gas-r410a { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.gas-r290 { background: rgba(34,197,94,0.15); color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }

/* === BRAND CARDS V2 — Frosted Glass Industrial === */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 768px) {
    .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

.brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0.8rem;
    background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    text-decoration: none;
    cursor: pointer;
    min-height: 150px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.brand-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 40%, rgba(6,182,212,0.03) 100%);
    border-radius: inherit;
    z-index: 0;
    transition: opacity 0.4s ease;
}
.brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6,182,212,0.4);
    box-shadow: 0 0 0 1px rgba(6,182,212,0.12), 0 0 35px rgba(6,182,212,0.12), 0 10px 40px rgba(0,0,0,0.4);
}
.brand-card:hover::before { opacity: 0.3; }
.brand-card:active { transform: scale(0.97); }

.brand-logo {
    width: 90px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.brand-logo img, .brand-logo svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(0.8);
    transition: filter 0.3s ease;
}
.brand-card:hover .brand-logo img,
.brand-card:hover .brand-logo svg { filter: none; }

.brand-name {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #94a3b8;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}
.brand-card:hover .brand-name {
    color: #22d3ee;
    text-shadow: 0 0 10px rgba(6,182,212,0.3);
}

.brand-tags {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.gas-tag {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.gas-r32  { background: rgba(6,182,212,0.15); color: #06b6d4; }
.gas-r410a { background: rgba(245,158,11,0.15); color: #f59e0b; }
.gas-r290 { background: rgba(34,197,94,0.15); color: #22c55e; }

/* Stagger animation */
.brand-card {
    animation: cardReveal 0.5s ease-out forwards;
    opacity: 0;
}
.brand-card:nth-child(1) { animation-delay: 0.03s; }
.brand-card:nth-child(2) { animation-delay: 0.08s; }
.brand-card:nth-child(3) { animation-delay: 0.13s; }
.brand-card:nth-child(4) { animation-delay: 0.18s; }
.brand-card:nth-child(5) { animation-delay: 0.23s; }
.brand-card:nth-child(6) { animation-delay: 0.28s; }
.brand-card:nth-child(7) { animation-delay: 0.33s; }
.brand-card:nth-child(8) { animation-delay: 0.38s; }

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

/* === ZONE CARDS V2 — Map pin, white text, bigger === */
.zone-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
}
@media (max-width: 768px) {
    .zone-grid { grid-template-columns: repeat(2, 1fr); }
}

.zone-card {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.zone-card:hover {
    border-color: rgba(6,182,212,0.3);
    background: rgba(6,182,212,0.06);
    transform: translateY(-2px);
}
.zone-card .zone-pin {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #ef4444;
}
.zone-card .zone-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #f1f5f9;
}
.zone-card:hover .zone-name { color: #fff; }

/* Hub section spacing */
.hub-section { padding: 3.5rem 0; }
.hub-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 2rem; }

/* Logo normalization */
.brand-logo img, .brand-logo svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
/* Toshiba PNG might need special handling */
.brand-logo img[src*="toshiba"] {
    max-height: 36px;
}
