/*
 Theme Name:   Hello Elementor Child - GenTech e CoSe
 Theme URI:    https://www.gentechefacose.it
 Description:  Child theme per Hello Elementor - Brand GenTech e CoSe con L'Editoriale di EllePi
 Author:       GenTech e CoSe
 Author URI:   https://www.gentechefacose.it
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ============================================================
   COLOR PALETTE - GenTech e CoSe
   ============================================================ */

:root {
    /* Primary Colors */
    --gentech-navy: #1e3a8a;
    --gentech-navy-dark: #1e3a8a;
    --gentech-navy-light: #2563eb;

    /* Secondary Color */
    --gentech-orange: #f97316;
    --gentech-orange-dark: #ea580c;
    --gentech-orange-light: #fb923c;

    /* Accent Color */
    --gentech-emerald: #10b981;
    --gentech-emerald-dark: #059669;
    --gentech-emerald-light: #34d399;

    /* Neutral Colors */
    --gentech-bg-white: #ffffff;
    --gentech-bg-light: #f8fafc;
    --gentech-text-dark: #1e293b;
    --gentech-text-gray: #64748b;
    --gentech-text-light: #94a3b8;

    /* Typography */
    --gentech-font-heading: 'Montserrat', sans-serif;
    --gentech-font-body: 'Inter', sans-serif;
    --gentech-font-mono: 'Space Mono', monospace;
}

/* ============================================================
   BASE STYLES
   ============================================================ */

body {
    font-family: var(--gentech-font-body);
    color: var(--gentech-text-dark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--gentech-font-heading);
    font-weight: 600;
    color: var(--gentech-navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

a {
    color: var(--gentech-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gentech-orange);
}

/* ============================================================
   ELLEPI EDITORIAL STYLES
   ============================================================ */

/* EllePi Logo Container */
.ellepi-logo {
    display: inline-block;
    vertical-align: middle;
}

.ellepi-logo svg {
    width: auto;
    height: 50px;
}

/* Editorial Header */
.editorial-header {
    background: linear-gradient(135deg, var(--gentech-navy) 0%, #1e40af 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.editorial-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 40%;
    height: 200%;
    background: rgba(255, 255, 255, 0.03);
    transform: rotate(15deg);
}

.editorial-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.editorial-header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Editorial Meta */
.editorial-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.85;
}

.editorial-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Article Card */
.editorial-card {
    background: var(--gentech-bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.editorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.editorial-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.editorial-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.editorial-card:hover .editorial-card-image img {
    transform: scale(1.05);
}

.editorial-card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gentech-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editorial-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.editorial-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gentech-navy);
    line-height: 1.4;
}

.editorial-card-excerpt {
    color: var(--gentech-text-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.editorial-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.85rem;
    color: var(--gentech-text-gray);
}

.editorial-card-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editorial-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editorial-card-author::before {
    content: 'EllePi';
    background: linear-gradient(135deg, var(--gentech-navy), var(--gentech-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Single Article Styles */
.single-editorial .entry-header {
    text-align: center;
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, var(--gentech-bg-light) 0%, white 100%);
    margin-bottom: 2rem;
}

.single-editorial .entry-title {
    font-size: 2.5rem;
    color: var(--gentech-navy);
    margin-bottom: 1rem;
}

.single-editorial .entry-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: var(--gentech-text-gray);
}

.single-editorial .featured-image {
    max-width: 1200px;
    margin: -2rem auto 2rem;
    padding: 0 1rem;
}

.single-editorial .featured-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.single-editorial .entry-content {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 1rem 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.single-editorial .entry-content h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gentech-navy);
}

.single-editorial .entry-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--gentech-navy);
}

.single-editorial .entry-content p {
    margin-bottom: 1.5rem;
}

/* Category Tags */
.category-tag {
    display: inline-block;
    background: var(--gentech-bg-light);
    color: var(--gentech-navy);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.category-tag:hover {
    background: var(--gentech-navy);
    color: white;
}

/* Filter Buttons */
.editorial-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: var(--gentech-text-gray);
    padding: 0.6rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gentech-navy);
    border-color: var(--gentech-navy);
    color: white;
}

/* Load More Button */
.load-more-btn {
    display: inline-block;
    background: var(--gentech-navy);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    margin: 2rem auto 0;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.load-more-btn:hover {
    background: var(--gentech-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

/* Social Share */
.social-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.social-share-label {
    font-weight: 600;
    color: var(--gentech-text-gray);
}

.social-share-links {
    display: flex;
    gap: 0.75rem;
}

.social-share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gentech-bg-light);
    color: var(--gentech-navy);
    transition: all 0.3s ease;
}

.social-share-links a:hover {
    background: var(--gentech-orange);
    color: white;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .editorial-header {
        padding: 2rem 0;
    }

    .editorial-header h1 {
        font-size: 2rem;
    }

    .single-editorial .entry-title {
        font-size: 1.75rem;
    }

    .single-editorial .entry-content {
        font-size: 1rem;
    }

    .editorial-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .editorial-filters {
        justify-content: flex-start;
    }
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.gentech-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.gentech-section {
    padding: 4rem 0;
}

.gentech-gradient-text {
    background: linear-gradient(135deg, var(--gentech-navy), var(--gentech-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gentech-btn {
    display: inline-block;
    background: var(--gentech-navy);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.gentech-btn:hover {
    background: var(--gentech-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

.gentech-btn-secondary {
    background: var(--gentech-orange);
}

.gentech-btn-secondary:hover {
    background: var(--gentech-orange-dark);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.editorial-card {
    animation: fadeInUp 0.6s ease-out;
}

/* EllePi Signature */
.ellepi-signature {
    font-family: var(--gentech-font-mono);
    font-size: 0.85rem;
    color: var(--gentech-text-gray);
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}

.ellepi-signature::before {
    content: '_';
    color: var(--gentech-orange);
}
