/* ==================================================
   NOC UNIPR - STILE GENERALE
================================================== */

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --noc-blue: #173b68;
    --noc-blue-light: #24558d;
    --noc-navy: #102d4d;
    --noc-logo-blue: rgb(0, 95, 184);
    --noc-gold: #d5a928;
    --noc-background: #f4f6f9;
    --noc-white: #ffffff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--noc-background);
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}


/* ==================================================
   FASCIA SUPERIORE - BLU NAVY
================================================== */


.top-band {
    background-color: var(--noc-navy);
    color: var(--noc-white);
}

.top-band-container {
    max-width: 1200px;
    min-height: 36px;
    margin: auto;
    padding: 8px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
}


/* ==================================================
   FASCIA CENTRALE - LOGO E NOC
================================================== */

.site-header {
    background-color: var(--noc-logo-blue);
}

.header-container {
    max-width: 1200px;
    min-height: 145px;
    margin: auto;
    padding: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 25px;
}

.unipr-logo {
    display: block;
    width: 300px;
    height: 105px;
    flex-shrink: 0;
    object-fit: contain;
}

.brand-separator {
    display: block;
    width: 2px;
    height: 85px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.75);
}

.noc-title {
    color: var(--noc-white);
    font-size: 20px;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 1px;
}

.header-access {
    flex-shrink: 0;
}

.login-button {
    display: inline-block;
    background: var(--noc-white);
    color: var(--noc-logo-blue);
    padding: 11px 27px;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

.login-button:hover {
    background: #dce6f2;
}


/* ==================================================
   FASCIA MENU - BLU NAVY
================================================== */


.main-navigation {
    background-color: var(--noc-navy);
}

.navigation-container {
    max-width: 1200px;
    min-height: 52px;
    margin: auto;

    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.navigation-container a {
    color: var(--noc-white);
    padding: 16px 22px;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.2s;
}

.navigation-container a:hover {
    background: var(--noc-blue-light);
}


/* ==================================================
   CONTENUTO PRINCIPALE
================================================== */

.main-content {
    max-width: 1200px;
    min-height: 500px;
    margin: auto;
    padding: 35px 20px;
}


/* ==================================================
   HERO
================================================== */

.hero {
    background: linear-gradient(
        120deg,
        var(--noc-blue),
        #28649b
    );

    color: var(--noc-white);
    padding: 65px 45px;
    border-radius: 6px;
    margin-bottom: 45px;
}

.hero-content {
    max-width: 800px;
}

.eyebrow {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    margin-bottom: 18px;
    opacity: 0.85;
}

.hero h1 {
    font-size: 38px;
    margin-bottom: 18px;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
}


/* ==================================================
   SEZIONI HOME:root {
    --noc-blue: #173b68;
    --noc-blue-light: #24558d;
    --noc-navy: #102d4d;
    --noc-logo-blue: rgb(0, 95, 184);
    --noc-gold: #d5a928;
    --noc-background: #f4f6f9;
    --noc-white: #ffffff;
}
================================================== */

.services-section h2,
.notices-section h2 {
    color: var(--noc-blue);
    font-size: 26px;
    margin-bottom: 10px;
}

.section-description {
    color: #666;
    margin-bottom: 25px;
}


/* ==================================================
   CARD SERVIZI HOME
================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--noc-white);
    padding: 25px;
    border-radius: 6px;
    border: 1px solid var(--noc-border);
    border-top: 4px solid var(--noc-blue);

    display: flex;
    flex-direction: column;

    transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.card-icon {
    color: var(--noc-blue);
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--noc-blue);
    font-size: 19px;
    margin-bottom: 12px;
}

.service-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card a {
    color: var(--noc-blue);
    font-weight: bold;
}

.service-card a:hover {
    color: var(--noc-blue-light);
}


/* ==================================================
   AVVISI
================================================== */

.notices-section {
    margin-top: 50px;
}

.notice-box {
    background: var(--noc-white);
    border-left: 4px solid var(--noc-blue);
    padding: 25px;
    margin-top: 20px;
    border-radius: 4px;
    color: #555;
}

.notice-box h3 {
    color: var(--noc-blue);
    margin-bottom: 12px;
}



/* ==========================================
   FOOTER ISTITUZIONALE
========================================== */

.site-footer {
    background-color: var(--noc-navy);
    color: #ffffff;
    margin-top: 30px;
}

.footer-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.footer-brand strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.footer-brand p {
    font-size: 13px;
    line-height: 1.4;
    margin: 2px 0;
    color: #dce6f2;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 12px;
}

.footer-links a {
    color: #ffffff;
    font-size: 13px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 12px;
    color: #cbd8e6;
}


/* FOOTER RESPONSIVE */

@media (max-width: 600px) {

    .footer-container {
        padding: 18px 20px;
    }

    .footer-links {
        gap: 12px;
    }

}


/* ==================================================
   PAGINA EROGAZIONE SERVIZI
================================================== */

.page-header {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #dce2e9;
}

.breadcrumb {
    font-size: 13px;
    color: #777;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: var(--noc-blue);
}

.breadcrumb span {
    margin: 0 8px;
}

.page-header h1 {
    color: var(--noc-blue);
    font-size: 32px;
    margin-bottom: 12px;
}

.page-header p {
    color: #666;
    font-size: 16px;
}


/* ==================================================
   STATO SERVIZI
================================================== */

.service-status {
    margin-bottom: 40px;
}

.service-status h2,
.services-list h2,
.maintenance-section h2 {
    color: var(--noc-blue);
    font-size: 24px;
    margin-bottom: 20px;
}

.status-summary {
    background: var(--noc-white);
    border: 1px solid var(--noc-border);
    border-radius: 5px;
    padding: 22px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-demo {
    background: #e2a12b;
}

.status-indicator strong {
    color: #333;
}

.status-indicator p {
    color: #777;
    font-size: 13px;
}


/* ==================================================
   ELENCO SERVIZI
================================================== */

.services-list {
    margin-bottom: 45px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.service-item {
    background: var(--noc-white);
    border: 1px solid var(--noc-border);
    border-radius: 5px;
    padding: 22px;
    border-top: 3px solid var(--noc-blue);
}

.service-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.service-category {
    color: #777;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    font-size: 11px;
    font-weight: bold;
    padding: 5px 9px;
    border-radius: 3px;
}

.status-demo-badge {
    background: #fff1d6;
    color: #91600a;
}

.service-item h3 {
    color: var(--noc-blue);
    font-size: 18px;
    margin-bottom: 10px;
}

.service-item p {
    color: #666;
    font-size: 14px;
}

.maintenance-section {
    margin-bottom: 40px;
}


/* ==================================================
   EROGAZIONE SERVIZI - MISSION
================================================== */

.section-label {
    display: block;
    color: #66809c;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.mission-section {
    background: var(--noc-white);
    padding: 35px;
    border-radius: 6px;
    border-left: 5px solid var(--noc-blue);
    margin-bottom: 55px;
}

.mission-heading h2,
.competence-section h2,
.continuity-section h2 {
    color: var(--noc-blue);
    font-size: 27px;
    margin-bottom: 20px;
}

.mission-content p {
    color: #555;
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.mission-content p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   AMBITI DI COMPETENZA
================================================== */

.competence-section {
    margin-bottom: 55px;
}

.competence-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 30px;
}

.competence-card {
    background: var(--noc-white);
    padding: 28px;
    border: 1px solid var(--noc-border);
    border-radius: 5px;
    border-top: 4px solid var(--noc-blue);

    transition: transform 0.2s, box-shadow 0.2s;
}

.competence-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.competence-number {
    color: #9aafc5;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 18px;
}

.competence-card h3 {
    color: var(--noc-blue);
    font-size: 18px;
    margin-bottom: 15px;
}

.competence-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.competence-highlight {
    border-top-color: var(--noc-gold);
    background: #f9fbfd;
}


/* ==================================================
   CONTINUITÀ OPERATIVA
================================================== */

.continuity-section {
    background: var(--noc-blue);
    color: var(--noc-white);
    padding: 40px;
    border-radius: 6px;
    margin-bottom: 50px;
}

.continuity-section .section-label {
    color: #c5d6e9;
}

.continuity-section h2 {
    color: var(--noc-white);
}

.continuity-section p {
    color: #e0e9f2;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 15px;
}


/* ==================================================
   PAGINE EMERGENZE - WIFI - VPN
================================================== */

.emergency-intro,
.wifi-intro,
.vpn-intro {
    background: var(--noc-white);
    padding: 30px;
    border-left: 4px solid var(--noc-blue);
    margin-bottom: 35px;
    border-radius: 5px;
}

.emergency-intro h2,
.wifi-intro h2,
.vpn-intro h2 {
    color: var(--noc-blue);
    margin-bottom: 15px;
}

.emergency-intro p,
.wifi-intro p,
.vpn-intro p {
    color: #555;
    line-height: 1.8;
}


/* ==================================================
   GRIGLIE EMERGENZE - WIFI - VPN
================================================== */

.emergency-grid,
.wifi-grid,
.vpn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.emergency-card {
    background: var(--noc-white);
    padding: 25px;
    border: 1px solid var(--noc-border);
    border-top: 4px solid var(--noc-blue);
    border-radius: 5px;
}

.emergency-card h3 {
    color: var(--noc-blue);
    margin-bottom: 12px;
}

.emergency-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}


/* ==================================================
   RESPONSIVE - TABLET
================================================== */

@media (max-width: 900px) {

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .competence-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .emergency-grid,
    .wifi-grid,
    .vpn-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* ==================================================
   RESPONSIVE - SMARTPHONE
================================================== */

@media (max-width: 600px) {

    /* Fascia superiore */

    .top-band-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    /* Fascia logo */

    .header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .brand-link {
        gap: 12px;
        flex-wrap: nowrap;
    }

    .unipr-logo {
        width: 170px;
        height: 75px;
    }

    .brand-separator {
        height: 65px;
    }

    .noc-title {
        font-size: 15px;
        line-height: 1.4;
    }

    /* Pulsante accesso */

    .header-access {
        align-self: flex-start;
    }

    /* Navigazione */

    .navigation-container {
        flex-direction: column;
        align-items: stretch;
    }

    .navigation-container a {
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    /* Hero */

    .hero {
        padding: 40px 25px;
    }

    .hero h1 {
        font-size: 28px;
    }

    /* Griglie */

    .card-grid,
    .service-grid,
    .competence-grid,
    .emergency-grid,
    .wifi-grid,
    .vpn-grid {
        grid-template-columns: 1fr;
    }

    /* Titoli */

    .page-header h1 {
        font-size: 27px;
    }

    /* Sezioni */

    .mission-section,
    .continuity-section {
        padding: 25px;
    }

}


/* ==================================================
   RESPONSIVE - SMARTPHONE STRETTO
================================================== */

@media (max-width: 400px) {

    .unipr-logo {
        width: 135px;
        height: 65px;
    }

    .brand-link {
        gap: 9px;
    }

    .noc-title {
        font-size: 13px;
        letter-spacing: 0.5px;
    }

    .brand-separator {
        height: 55px;
    }

}

/* ==========================================
   PAGINA CONTATTI
========================================== */

.contacts-intro {
    background: #ffffff;
    padding: 30px;
    border-left: 4px solid var(--noc-blue);
    margin-bottom: 40px;
    border-radius: 5px;
}

.contacts-intro h2,
.contacts-section h2,
.contacts-info h2 {
    color: var(--noc-blue);
    font-size: 24px;
    margin-bottom: 15px;
}

.contacts-intro p {
    color: #555;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.contacts-intro p:last-child {
    margin-bottom: 0;
}

.contacts-section {
    margin-bottom: 40px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.contact-card {
    background: #ffffff;
    padding: 25px;
    border: 1px solid var(--noc-border);
    border-top: 4px solid var(--noc-blue);
    border-radius: 5px;
}

.contact-number {
    color: #9aafc5;
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--noc-blue);
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.contact-card span {
    color: #888;
}

.contacts-info {
    background: #ffffff;
    padding: 30px;
    border-left: 4px solid var(--noc-gold);
    border-radius: 5px;
    margin-bottom: 40px;
}

.contacts-info p {
    color: #555;
    margin-bottom: 15px;
}

.contacts-info ul {
    padding-left: 22px;
    color: #555;
}

.contacts-info li {
    margin-bottom: 8px;
}


/* RESPONSIVE CONTATTI */

@media (max-width: 900px) {

    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-intro,
    .contacts-info {
        padding: 22px;
    }

}




/* ==========================================
   DOVE SIAMO
========================================== */

.where-section {
    margin-top: 50px;
    margin-bottom: 45px;
}

.where-heading {
    margin-bottom: 25px;
}

.where-heading h2 {
    color: var(--noc-blue);
    font-size: 26px;
    margin-bottom: 12px;
}

.where-heading p {
    color: #666;
    line-height: 1.8;
    max-width: 800px;
}


/* GALLERIA FOTOGRAFICA */

.where-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.where-photo {
    overflow: hidden;
    border-radius: 6px;
    height: 260px;
    background: #e2e6eb;
}

.where-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.where-photo:hover img {
    transform: scale(1.03);
}


/* INDIRIZZO E MAPPA */

.where-map-section {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    background: #ffffff;
    padding: 25px;
    border: 1px solid #e2e6eb;
    border-radius: 6px;
}

.where-address h3 {
    color: var(--noc-blue);
    font-size: 18px;
    margin-bottom: 15px;
}

.where-address p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.map-link {
    display: inline-block;
    color: var(--noc-blue);
    font-weight: bold;
    font-size: 14px;
}

.map-link:hover {
    color: var(--noc-blue-light);
}

.where-map {
    overflow: hidden;
    border-radius: 5px;
}

.where-map iframe {
    display: block;
    width: 100%;
    min-height: 350px;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .where-map-section {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 600px) {

    .where-gallery {
        grid-template-columns: 1fr;
    }

    .where-photo {
        height: 220px;
    }

    .where-map-section {
        padding: 18px;
    }

}