﻿
:root {
    --bg: #f8fafc; /* sfondo principale */
    --bg-soft: #eef2ff; /* sfondo soft */
    --card: #ffffff; /* card/box */
    --text: #0f172a; /* testo SCURO per contrasto corretto */
    --muted: #475569;
    --brand: #0ea5e9; 
    --brand-2: #6366f1; 
    --ring: rgba(14,165,233,.25);
}

html, body {
    height: 100%;
}

body {
    background: linear-gradient(120deg, var(--bg), var(--bg-soft));
    color: var(--text);
}

.nav-link-custom {
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all .25s ease;
    position: relative;
}

/* Linea blu che appare sotto */
.nav-link-custom::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 3px;
    background-color: #0d6efd;
    transition: all .25s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Hover: underline blu */
.nav-link-custom:hover::after {
    width: 100%;
}

.nav-link-custom:hover {
    color: #0d6efd !important;
}

/* Pagina attiva: underline sempre visibile */
.nav-link-custom.active::after {
    width: 100%;
}

.service-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-card img {
    width: 100%;
    height: 230px; 
    object-fit: cover;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}


nav ul li a:hover {
    color: #0d6efd !important;
}


.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

/* Sidebar su light: overlay e bordi con alpha nera (più visibili su fondo chiaro) */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: rgba(0,0,0,.03);
    backdrop-filter: blur(8px);
    border-right: 1px solid rgba(0,0,0,.08);
}

.sidebar .nav-link {
color: var(--muted);
border-radius: .75rem;
}

.sidebar .nav-link.active,
.sidebar .nav-link:hover {
    color: var(--text);
    background: rgba(99,102,241,.12);
}

/* Brand */
.brand-badge {
    font-weight: 700;
    letter-spacing: .2px;
    color: var(--text);
}

    .brand-badge .dot {
        color: var(--brand);
    }

/* Topbar su light: leggero fade chiaro + bordo con alpha nera */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(8px);
    background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0));
    border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Card: bordo con alpha nera su light */
.card-glass {
    background: var(--card);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 1rem;
}

/* KPI */
.kpi {
    border-radius: 1rem;
}

/* Focus ring */
.ring {
    box-shadow: 0 0 0 3px var(--ring);
}

/* Inputs su light: fondo grigio molto chiaro, bordi con alpha nera */
.search-input {
    background: rgba(0,0,0,.03);
    color: var(--text);
    border: 1px solid rgba(0,0,0,.08);
}

.search-input::placeholder {
    color: var(--muted);
}

/* Tabelle */
.table {
    color: var(--text);
}

.table thead {
    color: var(--muted);
}

.table tbody tr {
    --bs-table-bg: transparent;
}

/* Footer */
.footer {
    color: var(--muted);
}

/* Link */
a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-2);
}

/* Icone Contatti*/
.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,.08);
    color: #0d6efd;
    flex: 0 0 auto;
}




/* 
   Responsive
   */
@media (max-width: 992px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
    .faq{
        display:none;
    }
}


.mini-chart-wrap {
    position: relative;
    width: 100%;
    height: 180px; /* compatto; puoi aumentare */
}

/* --- Mini calendario mensile, tipo Windows --- */
.calendar.mini {
    --cell: 40px; /* dimensione cella: 36-44px sono ottimi */
    --gap: .35rem;
    width: 100%;
    max-width: 360px; /* limita la larghezza per look “mini” */
    margin-inline: 0; /* o auto per centrarlo: margin-inline:auto; */
}

.calendar .cal-grid {
    display: grid !important; /* evita che si “rompa” in lista */
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: var(--gap);
}

.calendar .cal-dow > div {
    text-align: center;
    font-weight: 600;
}

/* Celle giorno: quadrate, compatte */
#calBody .cal-cell {
    aspect-ratio: 1 / 1; /* quadrata */
    min-height: 0; /* ignora min-height precedenti */
    background: var(--card);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: .5rem;
    padding: .35rem .4rem;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end; /* numero in alto a dx */
}

[data-theme="dark"] #calBody .cal-cell {
    border-color: rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
}

#calBody .cal-cell .cal-daynum {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}

/* Celle dei mesi adiacenti (grigette) */
#calBody .cal-cell.muted {
    opacity: .55;
}

/* Giorno corrente */
#calBody .cal-cell.today {
    outline: 2px solid var(--brand);
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* Puntino “ha nota” */
.cal-note-dot {
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-2);
}

/* HAMBURGER BUTTON */
.mobile-menu-btn {
    font-size: 32px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    transition: 0.3s ease;
}

/* Rotation effect */
.mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* MOBILE SLIDING MENU */
.mobile-slide-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    padding: 40px 20px;
    box-shadow: -3px 0 15px rgba(0,0,0,0.20);
    transition: right 0.35s ease;
    z-index: 10000;
}

.mobile-slide-menu.active {
    right: 0;
}

.mobile-slide-menu ul li {
    margin-bottom: 25px;
}

.mobile-slide-menu ul li a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
    transition: 0.25s ease;
}

.mobile-slide-menu ul li a:hover {
    color: #0d6efd;
}

/* OVERLAY OSCURATO */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 9000;
}

.mobile-overlay.active {
    display: block;
}

/* DESKTOP NAV UNDERLINE HOVER */
.nav-link-custom {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}

.nav-link-custom::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    width: 0%;
    height: 3px;
    background-color: #0d6efd;
    transition: all .25s ease;
    transform: translateX(-50%);
}

.nav-link-custom:hover::after {
    width: 100%;
}

.nav-link-custom:hover {
    color: #0d6efd;
}


/*  riduci le celle su schermi stretti */
@media (max-width: 576px) {
    .calendar.mini {
        --cell: 36px;
        max-width: 320px;
    }
}


.btn-offerte {
    position: fixed;
    right: 25px;
    bottom: 120px;
    background: #ff4d4d;
    color: white;
    font-weight: 700;
    padding: 14px 22px;
    border-radius: 40px;
    text-decoration: none;
    box-shadow: 0 0 0 rgba(255, 77, 77, 0.7);
    animation: pulse 1.8s infinite;
    z-index: 9999;
    transition: all 0.3s ease;
}

    .btn-offerte:hover {
        background: #ff0000;
        transform: scale(1.08);
    }

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
    }

    70% {
        box-shadow: 0 0 0 18px rgba(255, 77, 77, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}


