/* Nuovi font moderni */
body {
    margin: 0;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    color: #000;
    background: #fff;
}

h1, h2, .important-text {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Stili di base */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigazione con animazione hover */
nav {
    padding: 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}

nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #000;
    position: relative;
    transition: color 0.3s ease;
}

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

nav a:hover::after {
    width: 100%;
}

/* Hero section con animazione di sfumatura */
.hero {
    height: 70vh;
    background-size: cover !important;
    background-position: center !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #fff, transparent);
}

.hero h1 {
    font-size: 4em;
    text-align: center;
    z-index: 1;
}

/* Grid con hover effects */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-grid img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Modale con animazioni */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
}

.modal-content {
    position: relative;
    background: #fff;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg);
}

/* Stili per la pagina contatti */
.contact-info {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.contact-info p {
    margin: 15px 0;
    transition: transform 0.3s ease;
}

.contact-info p:hover {
    transform: translateX(10px);
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.image-overlay h3 {
    color: white;
    font-size: 1.5em;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 0 20px;
}

/* Effetti hover */
.image-container:hover img {
    transform: scale(1.05);
}

.image-container:hover .image-overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.image-container:hover .image-overlay h3 {
    transform: translateY(0);
}
.contact-info {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
}

.contact-group {
    margin: 30px 0;
}

.contact-label {
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.contact-group .important-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    margin: 5px 0;
}

.contact-group p {
    margin: 5px 0;
    transition: transform 0.3s ease;
}

.contact-group p:hover {
    transform: translateX(10px);
}