/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.0
Author: Lista Civica Ispica
Description: Child theme per Lista Civica Ispica
Text Domain: hello-elementor-child
*/

/* =============================================
   VARIABILI COLORE - Tema istituzionale
   Blu + Verde + Oro
   ============================================= */
:root {
    --lc-blu:       #1a3a6b;
    --lc-blu-dark:  #0f2347;
    --lc-verde:     #2d6a4f;
    --lc-oro:       #c9a84c;
    --lc-chiaro:    #f5f7fa;
    --lc-testo:     #222831;
    --lc-grigio:    #6c757d;
    --lc-bianco:    #ffffff;
}

/* =============================================
   TIPOGRAFIA BASE
   ============================================= */
body {
    font-family: 'Lora', Georgia, serif;
    color: var(--lc-testo);
    line-height: 1.75;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--lc-blu);
    font-weight: 700;
}

/* =============================================
   HEADER / NAVIGAZIONE
   ============================================= */
.site-header,
.elementor-location-header {
    background-color: var(--lc-blu) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-navigation a,
.elementor-nav-menu a {
    color: var(--lc-bianco) !important;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    transition: color 0.2s;
}
.main-navigation a:hover,
.elementor-nav-menu a:hover {
    color: var(--lc-oro) !important;
}

/* =============================================
   HERO SEZIONE HOME
   ============================================= */
.lc-hero {
    background: linear-gradient(135deg, var(--lc-blu-dark) 0%, var(--lc-blu) 60%, var(--lc-verde) 100%);
    color: var(--lc-bianco);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.lc-hero h1 {
    color: var(--lc-bianco);
    font-size: clamp(32px, 5vw, 64px);
    margin-bottom: 16px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.lc-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 680px;
    margin: 0 auto 32px;
}
.lc-btn-primario {
    display: inline-block;
    background: var(--lc-oro);
    color: var(--lc-blu-dark) !important;
    padding: 14px 36px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.25s, transform 0.2s;
    margin: 4px;
}
.lc-btn-primario:hover {
    background: #e8c46a;
    transform: translateY(-2px);
}

/* =============================================
   SEZIONI GENERALI
   ============================================= */
.lc-sezione {
    padding: 80px 20px;
}
.lc-sezione-chiara {
    background: var(--lc-chiaro);
}
.lc-sezione-blu {
    background: var(--lc-blu);
    color: var(--lc-bianco);
}
.lc-sezione-blu h2,
.lc-sezione-blu h3,
.lc-sezione-blu p {
    color: var(--lc-bianco);
}
.lc-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.lc-sezione-titolo {
    text-align: center;
    margin-bottom: 48px;
}
.lc-sezione-titolo h2 {
    font-size: clamp(28px, 4vw, 42px);
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
}
.lc-sezione-titolo h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--lc-oro);
    border-radius: 2px;
}

/* =============================================
   CHI SIAMO - GRIGLIA 2 COLONNE
   ============================================= */
.lc-chi-siamo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) {
    .lc-chi-siamo-grid { grid-template-columns: 1fr; gap: 30px; }
}
.lc-chi-siamo-testo p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}
.lc-valori-lista {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}
.lc-valori-lista li {
    padding: 8px 0 8px 28px;
    position: relative;
    font-size: 15px;
    color: var(--lc-testo);
}
.lc-valori-lista li::before {
    content: '\2726';
    position: absolute;
    left: 0;
    color: var(--lc-oro);
    font-size: 12px;
    top: 10px;
}

/* =============================================
   GALLERIA FOTO
   ============================================= */
.lc-galleria {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.lc-galleria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.lc-galleria img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.lc-galleria img:first-child {
    grid-column: span 2;
    height: 300px;
}
@media (max-width: 600px) {
    .lc-galleria { grid-template-columns: 1fr; }
    .lc-galleria img:first-child { grid-column: span 1; height: 200px; }
}

/* =============================================
   SEZIONE CONTATTACI (banner)
   ============================================= */
.lc-contatto-home {
    background: linear-gradient(135deg, var(--lc-blu) 0%, var(--lc-verde) 100%);
    color: var(--lc-bianco);
    padding: 80px 20px;
    text-align: center;
}
.lc-contatto-home h2 {
    color: var(--lc-bianco);
    font-size: 36px;
    margin-bottom: 16px;
}
.lc-contatto-home p {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* =============================================
   CANDIDATI - GRIGLIA SCHEDE
   ============================================= */
.lc-candidati-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}
.lc-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #e8ecef;
}
.lc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
}
.lc-card-foto {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #1a3a6b 0%, #2d6a4f 100%);
    overflow: hidden;
}
.lc-card-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.lc-no-foto {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lc-no-foto span {
    font-size: 56px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    font-family: Georgia, serif;
}
.lc-numero {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    color: #1a3a6b;
    font-weight: 700;
    font-size: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.lc-card-body {
    padding: 20px;
}
.lc-nome {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a3a6b !important;
    margin: 0 0 10px !important;
    line-height: 1.3 !important;
}
.lc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.lc-eta, .lc-ruolo {
    font-size: 13px;
    color: #555;
    background: #f0f4f8;
    padding: 3px 10px;
    border-radius: 20px;
}
.lc-bio {
    font-size: 13.5px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
}
.lc-cv-btn {
    display: inline-block;
    background: #1a3a6b;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}
.lc-cv-btn:hover {
    background: #2d6a4f;
}
.lc-no-candidates {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 40px;
}
@media (max-width: 600px) {
    .lc-candidati-grid { grid-template-columns: 1fr; }
}

/* =============================================
   PAGINA HERO (Candidati / Contatti)
   ============================================= */
.lc-page-hero {
    background: var(--lc-blu);
    color: white;
    padding: 60px 20px;
    text-align: center;
}
.lc-page-hero h1 {
    color: white;
    font-size: clamp(28px, 4vw, 48px);
    margin-bottom: 12px;
}
.lc-page-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 17px;
}

/* =============================================
   CONTATTI - INFO CARDS
   ============================================= */
.lc-mappa-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    border: 3px solid var(--lc-blu);
}
.lc-info-contatti {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.lc-info-card {
    background: var(--lc-chiaro);
    border-radius: 10px;
    padding: 24px;
    text-align: center;
    border-left: 4px solid var(--lc-oro);
}
.lc-info-card .icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.lc-info-card h4 {
    color: var(--lc-blu);
    font-size: 16px;
    margin-bottom: 6px;
}
.lc-info-card p {
    color: var(--lc-grigio);
    font-size: 14px;
    margin: 0;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer,
.elementor-location-footer {
    background: var(--lc-blu-dark) !important;
    color: rgba(255,255,255,0.75) !important;
    padding: 48px 20px 24px !important;
}
.site-footer h3,
.elementor-location-footer h3 {
    color: var(--lc-oro) !important;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.site-footer a,
.elementor-location-footer a {
    color: rgba(255,255,255,0.65) !important;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover,
.elementor-location-footer a:hover {
    color: var(--lc-oro) !important;
}
.lc-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 32px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
}

/* =============================================
   UTILITIES
   ============================================= */
.lc-text-center { text-align: center; }
.lc-mt-40 { margin-top: 40px; }
.lc-mb-40 { margin-bottom: 40px; }
