/* ============================================================
   PASSOLENTO 2026 — Tema grafico moderno
   Autore: Copilot + Sergio
   ============================================================ */

/* ------------------------------
   PALETTE COLORI UFFICIALE
   ------------------------------ */

:root {
    --pl-blue: #0071C1;
    --pl-blue-dark: #005A99;
    --pl-yellow: #FFD800;
    --pl-green: #1FA37A;
    --pl-red: #DC3545;
    --pl-orange: #FF9800;
    --pl-bg: #F5F7FA;
    --pl-text: #333333;
}

/* ------------------------------
   BASE
   ------------------------------ */

body {
    background: var(--pl-bg);
    color: var(--pl-text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Titoli */
h1, h2, h3, h4 {
    color: var(--pl-blue);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Link */
a {
    color: var(--pl-blue);
    text-decoration: none;
}
a:hover {
    color: var(--pl-blue-dark);
}

/* ------------------------------
   NAVBAR MODERNA
   ------------------------------ */

.navbar-passolento {
    background: var(--pl-blue);
    padding: 0.75rem 1rem;
}
.navbar-passolento .nav-link {
    color: white !important;
    font-weight: 500;
    margin-left: 1rem;
}
.navbar-passolento .nav-link:hover {
    color: var(--pl-yellow) !important;
}

/* ------------------------------
   CARD MODERNE
   ------------------------------ */

.card-pl {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.08);
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity:0; transform:translateY(10px); }
    to   { opacity:1; transform:translateY(0); }
}

.card-pl:hover {
    transform: scale(1.01);
    box-shadow: 0 0.75rem 1.5rem rgba(0,0,0,.12);
    transition: 0.2s ease-in-out;
}

/* ------------------------------
   FORM MODERNI
   ------------------------------ */

.form-label i {
    margin-right: 6px;
    color: var(--pl-blue);
}

.form-control-lg {
    border-radius: 6px;
    border: 1px solid #ccc;
}

.form-control-lg:focus {
    border-color: var(--pl-blue);
    box-shadow: 0 0 0 0.2rem rgba(0,113,193,0.25);
}

/* ------------------------------
   BOTTONI
   ------------------------------ */

.btn-pl-primary {
    background: var(--pl-blue);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 6px;
    transition: 0.2s;
}
.btn-pl-primary:hover {
    background: var(--pl-blue-dark);
    transform: translateY(-2px);
}

.btn-pl-danger {
    background: var(--pl-red);
    color: white;
    border-radius: 6px;
    padding: 0.75rem 2rem;
}
.btn-pl-danger:hover {
    background: #b52a37;
}

/* ------------------------------
   BADGE ANIMATI
   ------------------------------ */

.badge-anim {
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% { transform:scale(1); opacity:1; }
    50% { transform:scale(1.1); opacity:0.7; }
    100% { transform:scale(1); opacity:1; }
}

/* ------------------------------
   FOOTER
   ------------------------------ */

.footer-pl {
    background: var(--pl-blue);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 3rem;
    font-size: 0.9rem;
}

/* ============================
   RESOCONTI E BREVE STILE
============================ */

.reports-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.reports-header {
    text-align: center;
    margin-bottom: 20px;
}

.reports-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0d6efd;
}

.reports-subtitle {
    font-size: 1rem;
    color: #666;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.report-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .2s, box-shadow .2s;
}

.report-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.report-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.report-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-date {
    position: absolute;
    bottom: 10px;
    left: 12px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

.report-icon {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 1.6rem;
    color: white;
}

.report-content {
    padding: 15px;
}

.report-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.report-content p {
    font-size: 0.9rem;
    color: #555;
}

.report-footer {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #444;
}

.report-button {
    font-weight: 600;
    color: #0d6efd;
}


/* ============================
   CALENDARIO
============================ */

.calendar-section {
    margin-top: 50px;
    margin-bottom: 40px;
}

.calendar-title {
    text-align: center;
    margin-bottom: 20px;
}

.calendar-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #198754;
}

.calendar-subtitle {
    font-size: 1rem;
    color: #666;
}

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-card {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: transform .2s, box-shadow .2s;
}

.calendar-card:hover {
    transform: translateX(4px);
    box-shadow: 0 5px 16px rgba(0,0,0,0.15);
}

.calendar-date {
    width: 70px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

.calendar-icon {
    font-size: 1.8rem;
    margin-right: 15px;
}

.calendar-content {
    flex-grow: 1;
}

.calendar-event-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.calendar-note {
    font-size: 0.9rem;
    color: #666;
}

.calendar-meta {
    margin-top: 5px;
    font-size: 0.85rem;
    color: #444;
}

.meta-item {
    margin-right: 12px;
}

.calendar-arrow {
    font-size: 1.4rem;
    margin-left: 10px;
}

.next-event {
    border-left: 5px solid #0d6efd;
}