/*

QUESTA PAGINA CONTIENE LE REGOLE CSS DELLA MainPage.php

Le regole cominciano tutte con il suffisso Mp_

*/
  :root {
      --bg-color: #f4f6f9;
      --card-bg: #ffffff;
      --primary-color: #2563eb;
      --primary-hover: #1d4ed8;
      --text-main: #1e293b;
      --text-muted: #64748b;
      
      --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
      
      
      --shadow-hover: 0 12px 20px -3px rgba(37, 99, 235, 0.2);
    }



.Mp_Body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1rem;
}

/* ************************* */
/* Intestazione della pagina */
/* ************************* */
.Mp_Head {
    text-align: center;
    margin-bottom: 2rem;
}

.Mp_Head h1 {
    font-size: 2rem;
    color: var(--text-main);
}

/* ****************** */
/* Corpo della pagina */
/* ****************** */
    
/* Griglia contenitore: 4 colonne x 2 righe (8 Schede) */
.Mp_CardContainer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    width: 100%;
    margin: auto 0;
}

/* Stile delle Schede */
.Mp_card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    user-select: none;
}

/* icona della card */
.Mp_CardIcon {
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

/* titolo della card */
.Mp_CardTitle {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

/* Effetti al passaggio del mouse (Hover) */
.Mp_card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.Mp_card:hover .Mp_CardTitle { color: var(--primary-color); }

/* ****************** */
/* Piede della pagina */
/* ****************** */

/* Barra contenitore */
    
.Mp_FootContainer {
    width: 100%;
    max-width: 1100px;
    background: var(--card-bg);
    border: 1px solid #cbd5e1;
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow);
    min-height: 64px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}

.Mp_FootText {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.Mp_FootText strong {color: var(--text-main);}

/* ********************************************** */
/* Responsive per schermi piccoli (Tablet/Mobile) */
/* ********************************************** */

@media (max-width: 900px) {
    .Mp_CardContainer {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}

@media (max-width: 500px) {
    .Mp_CardContainer {
        grid-template-columns: 1fr;
     }
}
