html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Neulis Neue', sans-serif;
    color: #1a1a1a;
    background-color: #f2e8c7;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

header {
    background-color: #800000;
    color: #d9d4b5;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    margin-right: auto;
    padding-right: 4rem;
}

h1 {
    font-size: 3.8rem; /* Aumenta la dimensione del titolo principale */
}

h2 {
    font-size: 2.8rem; /* Aumenta la dimensione dei titoli di sezione */
}

/* Sottotitoli */
.subtitle {
    font-size: 1.5rem; /* Mantieni o riduci leggermente la dimensione del sottotitolo */
}

.logo img {
    height: 90px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #d9d4b5;
}

.menu {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

.menu li {
    margin: 0;
}

.menu a {
    color: #d9d4b5;
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem 1.2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-weight: 500;
}

.menu a:hover {
    color: #f2e8c7;
    background-color: #992b1c;
    transform: scale(1.1);
}

.divider-line {
    width: 100%;
    height: 5px;
    background-color: #f2e8c7;
}

.banner {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 0 auto;
    height: 60vh;
    overflow: hidden;
}

.banner img, .banner video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 5px;
    text-align: center;
    z-index: 1;
}

.banner-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    background-color: #992b1c;
    color: #fff;
    border: none;
    padding: 1.2rem 2.4rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.4rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: #800000;
    transform: scale(1.05);
}

#main-content {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    overflow-x: hidden;
}

.info-section {
    width: 100%;
    box-sizing: border-box;
}

.menu .close-icon {
    display: none;
}

body.menu-open {
    overflow: hidden;
    height: 100vh;
}

.menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    text-align: center;
    background-color: #800000;
    z-index: 1001;
    animation: slideIn 0.5s ease-in-out;
    padding-top: 2rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .logo {
        margin-left: 0;
        padding-right: 0;
    }

    .logo img {
        height: 60px;
    }

    nav {
        padding: 0 1rem;
    }

    .image-container {
        flex-direction: column;
        gap: 1rem;
    }

    .image-container img {
        max-width: 100%;
        height: auto;
    }

    header {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
    }

    nav {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .close-icon {
        display: none;
    }

    #main-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

.info-section, .history-section {
    padding: 2rem;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

/* Nutrizione */
.nutrizione-section {
	padding: 2rem 1rem;
	max-width: 900px;
	margin: 0 auto;
	text-align: center;
}

.nutrizione-section .cta-button {
	display: inline-block;
	margin: 1rem auto 2rem auto;
}

.nutrizione-images {
	display: flex;
	justify-content: center;
    gap: 1rem;
	flex-wrap: wrap;
    margin: 1rem auto 0.6rem auto;
}

.nutrizione-images img {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Desktop e iPad: immagini più basse e vicine al quadrato */
@media (min-width: 768px) {
	.nutrizione-images img {
		height: 340px;
		object-fit: cover;
	}
}

.nutrizione-divider {
	width: 180px;
	height: 3px;
	background-color: #800000;
	margin: 1.2rem auto 1.2rem auto;
	border-radius: 2px;
}

/* Spaziature più compatte nella pagina Nutrizione */
.page-nutrizione .banner-content {
	margin-bottom: 0.5rem;
}

.page-nutrizione .nutrizione-section .description {
	margin-bottom: 0.8rem;
}

.page-nutrizione .nutrizione-section .cta-button {
	margin-top: 0.5rem;
	margin-bottom: 1rem;
}

/* Riduci spazio tra la sezione immagini e la sezione successiva */
.page-nutrizione .nutrizione-section:first-of-type {
	padding-bottom: 0.3rem;
}

/* Riduci spazio tra le ultime due sezioni */
.page-nutrizione .nutrizione-section:nth-of-type(2) {
	padding-top: 0.3rem;
}

/* Riduci spazio tra le prime due sezioni */
.page-nutrizione .nutrizione-section:first-of-type .nutrizione-divider {
	margin-bottom: 0.6rem;
}

/* Stile per la parola SVIZZERINE in rosso */
.svizzerine {
	color: #800000;
	font-weight: 600;
}

/* Layout per l'ultima sezione con immagine e contenuto affiancati */
.consulenza-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	margin: 1.5rem auto;
	max-width: 800px;
}

.consulenza-image {
	width: 280px;
	height: 280px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.12);
	flex-shrink: 0;
}

.consulenza-content {
	flex: 1;
	text-align: center;
}

.consulenza-content .description {
	margin: 0 0 1rem 0;
}

.consulenza-content .cta-button {
	margin: 0;
}

/* Riduci spazio nell'ultima sezione */
.page-nutrizione .nutrizione-section:last-of-type {
	padding-top: 0.5rem;
}

/* Responsive per mobile */
@media (max-width: 768px) {
	.consulenza-row {
		flex-direction: column;
		gap: 1rem;
	}
	
	.consulenza-image {
		width: 150px;
	}
}

/* Sezione Novità nella Homepage */
.novita-home-section {
	padding: 4rem 2rem;
	text-align: center;
	max-width: 1200px;
	margin: 0 auto;
}

.novita-home-section h2 {
	font-size: 3rem;
	color: #800000;
	margin-bottom: 1.5rem;
}

.novita-home-description {
	font-size: 1.7rem;
	color: #333;
	margin-bottom: 3rem;
	line-height: 1.6;
}

.novita-home-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.novita-home-item {
	background-color: #D8D4B4;
	border: 2px solid #800000;
	border-radius: 15px;
	padding: 2.5rem;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.novita-home-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(128, 0, 0, 0.2);
}

.novita-home-item h3 {
	color: #800000;
	font-size: 1.8rem;
	margin-bottom: 1rem;
}

.novita-home-item p {
	color: #333;
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 2rem;
}

.novita-home-item .cta-button {
	display: inline-block;
	background-color: #800000;
	color: #fff;
	text-decoration: none;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.novita-home-item .cta-button:hover {
	background-color: #992b1c;
	transform: scale(1.05);
}

/* Responsive per mobile */
@media (max-width: 768px) {
	.novita-home-section {
		padding: 2rem 1rem;
	}
	
	.novita-home-section h2 {
		font-size: 2.5rem;
	}
	
	.novita-home-container {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	
	.novita-home-item {
		padding: 2rem;
	}
}

/* Annuncio evento */
.evento-annuncio {
	text-align: center;
	color: #800000;
	font-size: 2.2rem;
	margin-top: 4rem;
	padding: 2rem;
	line-height: 1.3;
	font-weight: 600;
	border: 3px solid #800000;
	border-radius: 15px;
	background-color: #f2e8c7;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

/* Responsive per mobile */
@media (max-width: 768px) {
	.evento-annuncio {
		font-size: 1.4rem;
		padding: 1.5rem;
		margin-top: 2rem;
		margin-left: 1rem;
		margin-right: 1rem;
		line-height: 1.4;
	}
}

@media (max-width: 480px) {
	.evento-annuncio {
		font-size: 1.2rem;
		padding: 1rem;
		margin-left: 0.5rem;
		margin-right: 0.5rem;
	}
}

/* Sezione Novità */
.novita-title {
	font-size: 3rem;
	color: #800000;
	margin-bottom: 3rem;
	text-align: center;
}

.novita-container {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	max-width: 1820px;
	margin: 0 auto;
}

.novita-item {
	display: flex;
	align-items: center;
	gap: 3rem;
	background-color: #D8D4B4;
	padding: 3rem 4rem;
	border-radius: 15px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	width: 100%;
}

.novita-content {
	flex: 1;
	width: 50%;
}

.novita-content h2 {
	color: #800000;
	font-size: 2.2rem;
	margin-bottom: 1.5rem;
}

.novita-content p {
	color: #333;
	font-size: 1.2rem;
	line-height: 1.7;
	margin: 0;
}

.novita-map {
	flex: 1;
	width: 50%;
	min-height: 400px;
	aspect-ratio: 1;
}

.novita-map iframe {
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	width: 100%;
	height: 100%;
}

/* Layout speculare per il secondo div */
.novita-reverse {
	flex-direction: row-reverse;
}

/* Responsive per mobile */
@media (max-width: 768px) {
	.novita-title {
		font-size: 2.5rem;
		margin-bottom: 2rem;
	}
	
	.novita-item {
		flex-direction: column;
		gap: 1.5rem;
		padding: 1.5rem;
		width: 95%;
		margin: 0 auto;
	}
	
	.novita-reverse {
		flex-direction: column;
	}
	
	.novita-content {
		width: 100%;
	}
	
	.novita-map {
		min-height: 250px;
		width: 100%;
		overflow: hidden;
	}
	
	.novita-map iframe {
		width: 100%;
		height: 100%;
	}
}

@media (max-width: 480px) {
	.novita-item {
		width: 98%;
		padding: 1rem;
	}
	
	.novita-map {
		min-height: 200px;
	}
}

.story-part {
    margin-bottom: 4rem;
}

.story-part h2, .info-section h2 {
	font-family: 'Neulis Neue', sans-serif;
    color: #992b1c;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.6rem;
    color: #800000;
    margin-bottom: 1rem;
}

.divider {
    width: 50%;
    height: 2px;
    background-color: #d9d4b5;
    margin: 1rem auto;
}

.description {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.image-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.image-container img {
    max-width: 45%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: #800000;
    color: #d9d4b5;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    position: relative;
}

.social-media {
    margin-bottom: 1rem;
}

.social-icon {
    margin: 0 0.5rem;
    color: #d9d4b5;
    text-decoration: none;
    font-size: 1.5rem;
}

#scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #992b1c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    font-size: 1.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scroll-to-top:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* animations.css */

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.active {
    opacity: 1;
}

.slide-up-text {
    opacity: 0;
    transform: translateY(20px); /* Sposta il testo leggermente verso il basso */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.slide-up-text.active {
    opacity: 1;
    transform: translateY(0); /* Riporta il testo alla posizione originale */
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        margin-left: 0;
        padding-right: 0;
    }

    .logo img {
        height: 60px;
    }

    nav {
        padding: 0 1rem;
    }

    .image-container {
        flex-direction: column;
        gap: 1rem;
    }

    .image-container img {
        max-width: 100%;
        height: auto;
    }

    header {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
    }

    nav {
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 768px) {
    .close-icon {
        display: none;
    }

    #main-content {
        max-width: 1200px;
        margin: 0 auto;
    }
}

.section-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    padding: 3rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.buttons-row {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    width: 100%;
}

.buttons-row:last-child {
    max-width: 800px;
}

.section-button {
    display: block;
    text-decoration: none;
    background: #800000;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 400px;
}

.section-button:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.button-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(128, 0, 0, 0) 0%, rgba(128, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-button:hover .button-image::after {
    opacity: 1;
}

.button-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-button:hover .button-image img {
    transform: scale(1.08);
}

.button-content {
    padding: 1.8rem;
    text-align: center;
    background: linear-gradient(to bottom, #800000, #992b1c);
    position: relative;
    z-index: 1;
}

.button-content h3 {
	color: #f2e8c7;
	font-size: 1.8rem;
	margin: 0 0 0.8rem 0;
	font-family: 'Neulis Neue', sans-serif;
	letter-spacing: 1px;
	position: relative;
	display: inline-block;
}

.button-content h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #f2e8c7;
    transition: width 0.3s ease;
}

.section-button:hover .button-content h3::after {
    width: 60px;
}

.button-content p {
    color: #d9d4b5;
    font-size: 1.1rem;
    margin: 0;
    font-family: 'Neulis Neue', sans-serif;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.section-button:hover .button-content p {
    opacity: 1;
}

@media (max-width: 1200px) {
    .section-buttons {
        gap: 1.5rem;
    }
    
    .buttons-row {
        gap: 1.5rem;
    }
    
    .section-button {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .section-buttons {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .buttons-row {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .section-button {
        max-width: 100%;
    }
}

.featured-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    padding: 0 1rem;
}

.featured-section {
	background-color: #D8D4B4;
	border-radius: 10px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
	min-height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	text-align: center;
	border: 1px solid #800000;
}

.featured-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.2);
}

.section-content {
    z-index: 1;
}

.section-content h3 {
    color: #800000;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Neulis Neue', sans-serif;
}

.section-content p {
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.learn-more {
    display: inline-block;
    color: #800000;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Neulis Neue', sans-serif;
}

.learn-more:hover {
    color: #992b1c;
}

.featured-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(242, 232, 199, 0.1), rgba(242, 232, 199, 0.8));
    z-index: 0;
}

@media (max-width: 768px) {
    .featured-sections {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .featured-section {
        min-height: 200px;
        padding: 1.5rem;
    }
}

/* Titolo CONSULENZA NUTRIZIONALE in rosso */
.nutrizione-section h2 {
	color: #800000;
}

.subtitle {
	font-size: 1.7rem;
	color: #800000;
	margin-bottom: 1rem;
}

.description {
	font-size: 1.4rem;
	color: #1a1a1a;
	margin-bottom: 2rem;
	line-height: 1.6;
}

.featured-section .section-content p {
	color: #333;
	margin-bottom: 1.5rem;
	line-height: 1.6;
	font-size: 1.2rem;
}

.featured-section .learn-more {
	display: inline-block;
	background-color: #800000;
	color: #fff;
	text-decoration: none;
	padding: 1rem 2rem;
	border-radius: 8px;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.featured-section .learn-more:hover {
	background-color: #992b1c;
	transform: scale(1.05);
}
