/* Home page - layout moderno (FASE 05)
 * Hero "Presenti" + cards categoriche + tabella apparati
 */

/* ========== Section title ========== */
.home-section-title {
    font-family: TitilliumWeb-Bold, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 18px 0 10px 4px;
}
.home-section-title .material-symbols-outlined {
    font-size: 1.4rem !important;
    color: #84BD00;
}

/* ========== HERO Presenti ========== */
.home-hero {
    display: flex;
    align-items: center;
    padding: 24px 28px;
    border-radius: 18px;
    text-decoration: none !important;
    color: white;
    box-shadow: 0 8px 24px rgba(69, 130, 58, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 140px;
    background: linear-gradient(135deg, #45823a 0%, #84BD00 100%);
    position: relative;
    overflow: hidden;
}
.home-hero::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -40px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.home-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(69, 130, 58, 0.35);
    color: white;
}
.home-hero-icon {
    flex: 0 0 auto;
    margin-right: 24px;
    width: 88px;
    height: 88px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.home-hero-icon .material-symbols-outlined {
    font-size: 60px !important;
    color: white;
    line-height: 1;
    display: block;
}
.home-hero-body {
    flex: 1 1 auto;
    z-index: 1;
}
.home-hero-value {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    font-family: TitilliumWeb-Bold, sans-serif;
}
.home-hero-label {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-top: 4px;
}
.home-hero-cta {
    flex: 0 0 auto;
    z-index: 1;
}
.home-hero-cta .material-symbols-outlined {
    font-size: 36px !important;
    color: white;
    opacity: 0.9;
    transition: transform 0.2s ease;
}
.home-hero:hover .home-hero-cta .material-symbols-outlined {
    transform: translateX(6px);
}

/* ========== Alert banner (badge non collegati) ========== */
.home-alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: linear-gradient(90deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 5px solid #f0a83a;
    border-radius: 10px;
    color: #7a4f00;
    text-decoration: none !important;
    font-weight: 600;
    transition: transform 0.15s ease;
}
.home-alert-banner:hover {
    transform: translateX(2px);
    color: #5a3a00;
}
.home-alert-banner .material-symbols-outlined {
    font-size: 1.6rem !important;
}

/* ========== Cards categoriche ========== */
.home-card {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    text-decoration: none !important;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    min-height: 96px;
    height: 100%;
}
.home-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    color: white;
}
.home-card-icon {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
}
.home-card-icon .material-symbols-outlined {
    font-size: 36px !important;
    line-height: 1;
    display: block;
    color: white;
}
.home-card-body {
    flex: 1 1 auto;
    min-width: 0;
}
.home-card-value {
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    font-family: TitilliumWeb-Bold, sans-serif;
}
.home-card-label {
    font-size: 0.95rem;
    opacity: 0.95;
    margin-top: 2px;
}
.home-card-label-big {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}
.home-card-sub {
    font-size: 0.85rem;
    opacity: 0.88;
    margin-top: 2px;
}

/* Varianti colore (gradient) */
.home-card-blue,
.home-card-catering_1,
.home-card-catering_2,
.home-card-catering {
    background: linear-gradient(135deg, #1d6fa5 0%, #4ca6db 100%);
}
.home-card-pink {
    background: linear-gradient(135deg, #c2185b 0%, #ec407a 100%);
}
.home-card-teal {
    background: linear-gradient(135deg, #00838f 0%, #4dd0e1 100%);
}
.home-card-purple {
    background: linear-gradient(135deg, #5e35b1 0%, #9575cd 100%);
}
.home-card-cyan {
    background: linear-gradient(135deg, #00838f 0%, #26a69a 100%);
}
.home-card-orange,
.home-card-transport_1,
.home-card-transport {
    background: linear-gradient(135deg, #c47d00 0%, #f0a83a 100%);
}
.home-card-gray {
    background: linear-gradient(135deg, #455a64 0%, #78909c 100%);
}

/* ========== Tabella apparati ========== */
.home-devices-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.home-devices-header {
    background: #f3f4f6;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid #e5e7eb;
}
.home-devices-row {
    padding: 10px 16px;
    margin: 0;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}
.home-devices-row:last-child {
    border-bottom: none;
}
.home-devices-row.r1 {
    background-color: #ffffff;
}
.home-devices-row.r2 {
    background-color: #fafbfc;
}
.home-device-status {
    color: #84BD00;
    font-size: 1.2rem !important;
    margin-right: 6px;
    vertical-align: middle;
}
.home-devices-row code {
    font-size: 0.85rem;
    color: #4b5563;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
}
