@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');


:root {
    --primary-color: #394D64;
    --secondary-color: #ffffff;
    --text-color: #333333;
}

html {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.logo-img {
    width: auto;
    height: 50px;
    object-fit: contain;
    transition: height 0.3s ease;
}

.logo span {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #394D64;
    transition: font-size 0.3s ease;
}

@media screen and (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
    
    .logo span {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 480px) {
    .logo-img {
        height: 30px;
    }
    
    .logo span {
        font-size: 1rem;
    }
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #394D64;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #337fe8;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #337fe8;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: #394D64;
    transition: all 0.3s ease;
    border-radius: 3px;
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #ffffff;
        padding: 0.5rem;  /* Ridotto da 1rem */
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        gap: 0;  /* Ridotto da 1rem */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0;  /* Ridotto da 0.5rem */
        padding: 0.5rem 0;  /* Aggiunto padding verticale */
        border-bottom: 1px solid #eee;  /* Aggiunto separatore */
    }

    .nav-links li:last-child {
        border-bottom: none;  /* Rimuove il bordo dall'ultimo elemento */
    }

    .nav-links a {
        display: block;
        padding: 0.25rem 0;  /* Ridotto padding */
    }
}

/* MAIN */

section {
    padding: 4rem 2rem;
}

#orari {
    background-color: #f8f9fa;
}

#comunicazioni {
    background: linear-gradient(rgba(51, 127, 232, 0.05), rgba(51, 127, 232, 0.05)),
                url('img/pattern-dots.png');
}

#posizione {
    background-color: #f8f9fa;
}

#prenotazioni {
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)),
                url('img/pattern-medical.png');
}

#segreteria {
    background-color: #f8f9fa;
}

#links {
    background: linear-gradient(rgba(51, 127, 232, 0.05), rgba(51, 127, 232, 0.2)),
                url('img/pattern-dots.png');
    padding-bottom: 6rem;
}


section h2 {
    text-align: center;
    color: #394D64;
    margin-bottom: 3rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #337fe8;
}

.button {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
}

footer {
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
    }
    
    footer {
        margin: 0;
        padding: 1rem 0;
    }
}

/* HERO */
#hero {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 2rem;
    color: #333;
}

.glass-card h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #394D64;
}

.glass-card p {
    font-size: 1.1rem;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    #hero {
        position: relative;
        height: 65vh;
        overflow: hidden;
    }
    .hero-content {
        width: 100%;
        /*background: rgba(0, 0, 0, 0.5);*/
    }
    
    .glass-card {
        width: 80%;
    }
    .glass-card h1 {
        font-size: 1.8rem;
    }
}

/* ORARI */
.orari-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.orari-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
}

.orari-table th,
.orari-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.orari-table th {
    background-color: #337fe8;
    color: white;
    width: 40%;
}

.clock-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.clock {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#date {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #394D64;
}

#time {
    font-size: 3rem;
    font-weight: bold;
    color: #337fe8;
}

@media screen and (max-width: 768px) {
    .orari-container {
        grid-template-columns: 1fr;
    }
}

/* Dove siamo */
.location-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin: 2rem 0;
}

.address-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.address-card h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.address-card p {
    margin: 1rem 0;
    line-height: 1.6;
}

.maps-button {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
}

.maps-button:hover {
    background-color: #2a3b4d;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .location-container {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 300px;
    }
}

/* CONTATTI */
.contatti-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.contatto-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.phone-button {
    display: inline-block;
    background: #394D64;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

.phone-button:hover {
    transform: translateY(-2px);
}

.doctolib-wrapper {
    max-width: 80vw;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
}

.doctolib-button {
    display: inline-block;
    background: #337fe8;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 2rem 0;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.instructions-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem auto;
    max-width: 100vw;
}

.instruction-list {
    text-align: left;
    padding: 2rem;
    background: #f5f5f5;
    border-radius: 10px;
}

.instruction-list ul {
    margin-left: 1rem; /* Ridotto da 1.5rem */
    list-style-type: disc;
    padding-left: 0.5rem; /* Aggiunto per bilanciare */
}

.instruction-list li {
    margin: 0.5rem 0;
}

@media screen and (max-width: 768px) {
    .doctolib-wrapper {
        max-width: 100vw;
    }
    .instructions-container {
        grid-template-columns: 1fr;
    }
}

/* Segreteria */
.segreteria-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.segreteria-info, .servizi-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.orari-card {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    text-align: center;
}

.servizi-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.servizi-list li {
    margin: 1rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.servizi-list li::before {
    content: "•";
    color: #337fe8;
    position: absolute;
    left: 0;
}

.warning-note {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
}

.warning-icon {
    font-size: 1.5rem;
    color: #856404;
}

@media screen and (max-width: 768px) {
    .segreteria-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Link Utili */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.link-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.link-card span {
    text-align: center;
    font-weight: 500;
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }
    
    .link-card img {
        width: 60px;
        height: 60px;
    }
}

/* Curriculum Section */
#curriculum {
    background-color: #f8f9fa;
    padding: 4rem 2rem;
}

.curriculum-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    margin: 2rem 0;
    transition: transform 0.3s ease, background-color 0.3s ease;
    font-weight: 500;
}

.download-button:hover {
    transform: translateY(-2px);
    background-color: #2a3b4d;
}

.download-button i {
    font-size: 1.2rem;
}

/* Sezione Loghi */
.loghi-section {
    text-align: center;
    padding: 2rem;
}

.loghi-section img {
    max-width: 80%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .loghi-section img {
        max-width: 95%;
    }
}

/* Sezione Targa */
.targa-section {
    background: linear-gradient( rgba(51, 127, 232, 0.2), rgba(51, 127, 232, 0.2)),
                url('img/pattern-dots.png');
    padding: 2rem;
    margin-top: 0; /* Per collegare con la fine della sezione links */
}

.targa-img {
    max-width: 60%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .targa-img {
        max-width: 90%;
    }
}