/* ===== FORNITORI PAGES COMMON STYLES ===== */

/* ===== HERO SECTION ===== */
.hero-card {
    position: relative;
    overflow: visible;
    min-height: 400px;
    display: flex;
    align-items: center;
    width: 100%;
    background: white !important;
    border: 2px solid #00BCA1 !important;
    padding: 3rem 1rem;
}

.hero-card .d-flex {
    width: 100%;
    align-items: center;
    justify-content: center;
}

.hero-card h1 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    width: 100%;
    color: #00BCA1;
    text-shadow: none;
}

.hero-card .lead {
    margin-bottom: 0;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
    width: 100%;
    color: #343a40;
    text-shadow: none;
    font-weight: 500;
}

.hero-card .row {
    width: 100%;
    margin: 0;
}

.hero-card .col-12 {
    width: 100%;
    padding: 0;
}

/* ===== LOGO SIZING ===== */
.logo-animated {
    max-height: 80px !important;
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-animated:hover {
    transform: scale(1.05);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 200px;
}

/* ===== TARIFFE CARDS ===== */
.tariffe-container {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: stretch;
}

.tariffa-card {
    flex: 1;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tariffa-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00BCA1 0%, #00A68A 100%);
}

.tariffa-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(0, 188, 161, 0.25);
    border-color: #00BCA1;
}

.tariffa-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.tariffa-icon.luce {
    color: #00BCA1;
}

.tariffa-icon.gas {
    color: #00A68A;
}

.tariffa-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.5rem;
    display: block;
}

.tariffa-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00BCA1;
    margin-bottom: 0.5rem;
    display: block;
}

.tariffa-note {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* ===== HERO TARIFFE FIX ===== */
.tariffe-hero .tariffa-hero-card {
    background: white !important;
    border: 2px solid #e9ecef;
    border-radius: 0;
    color: #343a40 !important;
}

.tariffe-hero .tariffa-hero-card h6 {
    color: #343a40 !important;
}

.tariffe-hero .tariffa-hero-card p {
    color: #00BCA1 !important;
    font-weight: 700;
}

/* ===== LINK UTILI CARDS ===== */
.link-utili-container {
    margin-bottom: 2rem;
}

.link-utili-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 220px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.link-utili-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 188, 161, 0.2);
    border-color: #00BCA1;
}

.link-utili-header {
    background: linear-gradient(135deg, #00BCA1 0%, #00A68A 100%);
    color: white;
    padding: 1.5rem;
    border: none;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.link-utili-header h5 {
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.link-utili-header i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.link-utili-body {
    padding: 0;
    min-height: 140px;
}

.link-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    text-decoration: none;
    color: #343a40;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
}

.link-item:last-child {
    border-bottom: none;
}

.link-item:hover {
    background-color: rgba(0, 188, 161, 0.05);
    color: #00BCA1;
    transform: translateX(5px);
}

.link-item:hover .link-icon {
    transform: scale(1.1);
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.link-icon.sito {
    background: linear-gradient(135deg, #00BCA1, #00A68A);
    color: white;
}

.link-icon.offerte {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.link-icon.assistenza {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

.link-icon.area-clienti {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.link-content {
    flex: 1;
    min-width: 0;
}

.link-content h6 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
}

.link-content small {
    color: #6c757d;
    font-size: 0.85rem;
    line-height: 1.3;
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .tariffe-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tariffa-card {
        padding: 1.5rem;
        min-height: 160px;
    }
    
    .link-utili-card {
        min-height: 200px;
    }
    
    .link-item {
        padding: 0.75rem 1rem;
    }
    
    .link-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    /* Logo responsive */
    .logo-animated {
        max-height: 60px !important;
        max-width: 150px !important;
    }
    
    .logo-container {
        min-width: 100px;
        max-width: 150px;
    }
    
    /* Hero section mobile fixes */
    .hero-card {
        padding: 3rem 1rem !important;
        margin-bottom: 1rem;
        min-height: 350px !important;
    }
    
    .hero-card h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
        word-break: break-word;
        font-weight: 800 !important;
        color: #00BCA1 !important;
        text-shadow: none !important;
    }
    
    .hero-card .lead {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
        color: #343a40 !important;
        text-shadow: none !important;
        font-weight: 500 !important;
    }
    
    .hero-card .d-flex {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .hero-card .logo-container {
        margin-bottom: 0.75rem !important;
        margin-right: 0 !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .hero-card .row {
        margin: 0 !important;
    }
    
    .hero-card .col-12 {
        padding: 0 !important;
    }
    
    /* Ensure hero content is always visible */
    .hero-card {
        min-height: 350px !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 3rem 1rem !important;
    }
    
    .hero-card .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .hero-card .col-12 {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .hero-card .d-flex {
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

@media (max-width: 576px) {
    .tariffa-card {
        padding: 1.25rem;
        min-height: 140px;
    }
    
    .tariffa-icon {
        font-size: 1.5rem;
    }
    
    .tariffa-price {
        font-size: 1.1rem;
    }
    
    .link-utili-header {
        padding: 1rem;
    }
    
    /* Logo extra small screens */
    .logo-animated {
        max-height: 50px !important;
        max-width: 120px !important;
    }
    
    .logo-container {
        min-width: 80px;
        max-width: 120px;
    }
    
    /* Hero section extra small screens */
    .hero-card {
        padding: 2.5rem 0.75rem !important;
        margin-bottom: 0.5rem;
        min-height: 320px !important;
    }
    
    .hero-card h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
        word-break: break-word;
        hyphens: auto;
        font-weight: 800 !important;
        color: #00BCA1 !important;
        text-shadow: none !important;
    }
    
    .hero-card .lead {
        font-size: 1rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        word-break: break-word;
        hyphens: auto;
        color: #343a40 !important;
        text-shadow: none !important;
        font-weight: 500 !important;
    }
    
    .hero-card .logo-container {
        margin-bottom: 0.5rem !important;
        display: flex !important;
        justify-content: center !important;
    }
    
    .hero-card .d-flex {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    /* Ensure hero content is always visible on extra small screens */
    .hero-card {
        min-height: 320px !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 2.5rem 0.75rem !important;
    }
    
    .hero-card .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .hero-card .col-12 {
        padding: 0 !important;
        width: 100% !important;
    }
    
    .hero-card .d-flex {
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tariffa-card,
.link-utili-card {
    animation: fadeInUp 0.6s ease-out;
}

.tariffa-card:nth-child(2) {
    animation-delay: 0.2s;
}

.link-utili-card {
    animation-delay: 0.4s;
}
