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

:root {
    --primary-color: #007BFF;
    --primary-color-dark: #0056b3;
    --text-color: #333;
    --text-color-light: #555;
    --background-light: #fdfdfd;
    --white: #fff;
    --box-shadow-light: rgba(0,0,0,0.07);
    --box-shadow-dark: rgba(0,0,0,0.1);
}

/* General Styles */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    color: #444;
    background-color: var(--background-light);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.logo {
    width: 80px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

header h1 {
    margin: 0;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-color);
}
/* Navigation Menu */
nav ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    justify-content: center;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a.active {
    background-color: #007BFF;
    color: #fff;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8)), url('DrGianvitoFerrara.jpg') no-repeat center center/cover;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-10px);
}

.hero-text h2 {
    font-size: clamp(2.2em, 5vw, 3em);
    margin-bottom: 15px;
    color: #0056b3;
    font-weight: 700;
}

.hero-text p {
    font-size: clamp(1em, 4vw, 1.25em);
    color: #555;
}

/* Sections */
section {
    padding: 60px 0;
}

section:nth-of-type(odd) {
    background-color: var(--white);
}

section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* About Section */
#about p {
    font-size: 1.15em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.service-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--box-shadow-dark);
}

.service-item h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: var(--primary-color);
}

.service-item p {
    font-size: 1em;
    color: var(--text-color-light);
}

/* Contact Section */
#contact {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 10px;
    padding: 50px;
    margin: 40px auto;
}

#contact h2 {
    color: var(--white);
}

#contact h2::after {
    background-color: var(--white);
}

#contact p {
    text-align: center;
    font-size: 1.2em;
}

#contact a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
}

#contact a:hover {
    text-decoration: none;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: var(--white);
    text-align: center;
    padding: 25px 0;
}

footer p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
	#hero {
		flex-direction: column;
	       padding: 40px 20px;
	}
	   .hero-text {
	       padding: 0 10px;
	   }
	   .profile-photo {
	       margin-right: 0;
	       margin-bottom: 20px;
	       width: 180px;
	       height: 180px;
	   }
    header h1 {
        font-size: 1.6em;
    }
    .hero-text h2 {
        font-size: 2.2em;
    }
    section h2 {
        font-size: 1.8em;
    }
}
/* CTA Button */
.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.cta-button:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
}
.address-hero {
    font-size: 1.1em;
    font-weight: 600;
    color: #555;
    margin-top: 15px;
}
.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    background: none;
    border: none;
    z-index: 1001;
}

.hamburger svg {
    stroke: var(--primary-color);
}

.icon-close {
    display: none;
}

.hamburger.is-active .icon-menu {
    display: none;
}

.hamburger.is-active .icon-close {
    display: block;
}
/* Mobile Navigation */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    nav ul.is-active {
        display: flex;
    }
    nav li {
        text-align: center;
        padding: 15px 0;
    }
    .hamburger {
        display: block;
        position: absolute;
        top: 25px;
        right: 20px;
    }
    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}