html {
   /* overflow-y: scroll;  Mostra sempre la barra di scorrimento */
   scrollbar-gutter:stable;
}


body {
    font-family: Arial, sans-serif;
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
	width: 100%;
	height:100%;
}

/* CSS per la gestione della visibilità -*/
  
.desktop-view { display: flex; flex-direction: column;  min-height: 100vh;}
.mobile-view { display: none; }

@media screen and (max-width: 768px) {
	.desktop-view { display: none !important; }
	.mobile-view { display: flex; flex-direction: column; min-height: 100vh;}
}
  

/*
nav {
    text-align: center;
    margin: 20px 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}*/

h2 {
	text-align:center;
}

nav {
	background-color: #444;
	padding: 10px;
	text-align:center;
	margin-bottom:20px;
}

nav a {
	color: white;
	text-decoration: none;
	padding: 10px;
	display: inline-block;
}

nav a:hover {
    color: #FFD700;
}


.container {
    width: 60%;
	margin: auto;
    padding-left: 20px;
	border-radius: 10px;
	margin-bottom:20px;
	background: linear-gradient(135deg, black 30%, #FFD700 100%);
    flex: 1;
}

.contact-form {
    background: #222;
    padding: 20px;
	
    border-radius: 5px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    
    margin-top:10px;
	padding-top: 10px;
    border: none;
    border-radius: 5px;
    background: #333;
    color: white;
}

.contact-form button {
    background: #FFD700;
    border: none;
	margin-top:10px;
    padding: 10px 10px;
	border-radius: 10px;
	font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #ccac00;
}

.company-info {
    font-size: 12px;
    color: white;
    margin-top: 10px;
}

.company-info img {
    vertical-align: middle;
	margin-bottom: 10px;
	filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.7)); /* Ombra nera sfumata */
}


header {
    position: relative;
    background: linear-gradient(to top, black, #FFD700);
    padding: 20px;
    text-align: center;
    overflow: hidden;
	margin-bottom:20px;
}

header img {
    display: block;
    margin: 0 auto;
    max-width: 2084px;
	margin-bottom:10px;
	border-radius: 10px;
}

.logo {
    display: block;
    /*width: 150px; /* Regola la dimensione secondo necessità */
	width:1024px;
	height:150px;
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.7)); /* Ombra nera sfumata */
}


.scrolling-text {
    position: absolute;
    bottom: 0px; /* Abbassa leggermente la scritta */
    left: 0;
    width: 100%;
    white-space: nowrap;
    font-size: 18px;
    font-weight: bold;
    color: white;
    animation: scrollText 12s linear infinite; /* Rallenta la velocità */
}

@keyframes scrollText {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.about-container {
    max-width: 800px;
    margin: auto;
    text-align: justify;
}



.about-image {
    width: 400px; /* Dimensione più grande dell'immagine */
    height: 350px;
    border-radius: 15px;
    float: left; /* Fa sì che il testo avvolga l'immagine a destra */
    margin-right: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#services {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.services-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.services-container img {
    width: 100%;
	width:1024px;
	height:400px;
    vertical-align: top;
    border-radius: 20px;
	margin-bottom:20px;
}

#services-home {
    width: 100%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
   
}

.services-container-home {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.services-container-home img {
    width: 100%;
	width:1024px;
	height:400px;
    vertical-align: top;
    border-radius: 20px;
	margin-bottom:20px;
    
}

.services-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}



.services-container2 {
    width: 100%;
	max-height: calc(100vw / 5);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.services-container img {
    width: 100%;
   
    border-radius: 20px;
    object-fit: scale-down;
}


footer {
	background: linear-gradient(to top, black, #FFD700);
    text-align: center;
    margin-top: auto;
	
}

footer img {
	margin-top:5px;
    max-width: 150px;
	border-radius: 10px;
}

footer p {
    font-size: 12px;
    color: black;
    margin: 10px 0;
	
}

/* Stile per i pulsanti social */
.social-icons {
    margin-top: 10px;
}

/* Pulsanti rotondi neri con icone bianche */
.social-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    background: black;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    margin: 0 5px;
    transition: background 0.3s ease;
    text-decoration: none;
}

.social-btn i {
    color: white;
}

/* Hover effect */
.social-btn:hover {
    background: #333;
}



/* Personalizzazione della scrollbar per Chrome, Edge e Safari */
::-webkit-scrollbar {
    width: 12px; /* Larghezza della scrollbar */
}

/* Colore del track (sfondo della scrollbar) */
::-webkit-scrollbar-track {
    background: black;
}

/* Colore della barra di scorrimento */
::-webkit-scrollbar-thumb {
    background: #FFD700; /* Giallo */
    border-radius: 6px;
}

/* Frecce della scrollbar */
::-webkit-scrollbar-button {
    background: black; /* Sfondo nero */
}

/* Frecce direzionali gialle */
::-webkit-scrollbar-button:vertical:decrement, /* Freccia in alto */
::-webkit-scrollbar-button:vertical:increment { /* Freccia in basso */
    background: black;
    border-radius: 50%;
    height: 16px;
}

/* Disegno delle frecce */
::-webkit-scrollbar-button:vertical:decrement::after {
    content: "▲"; /* Freccia in alto */
    color: #FFD700; /* Giallo */
    font-size: 12px;
    display: block;
    text-align: center;
}

::-webkit-scrollbar-button:vertical:increment::after {
    content: "▼"; /* Freccia in basso */
    color: #FFD700; /* Giallo */
    font-size: 12px;
    display: block;
    text-align: center;
}

#news {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

#news h1 {
    font-size: 28px;
    color: #FFD700;
    margin-bottom: 20px;
}

.news-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.news-item {
    background: linear-gradient(135deg, black 30%, #FFD700 100%);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.3);
}

.news-item h2 {
    font-size: 20px;
    color: white;
}

.news-item p {
    font-size: 14px;
    color: white;
}

.news-item img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0;
}

.news-item a {
    display: inline-block;
    margin-top: 10px;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: white;
}

.smile-icon {
    font-size: 50px; /* Dimensione dell'icona */
    color: #FFD700; /* Giallo dorato */
    display: block;
    text-align: center;
    margin: 10px auto;
}

.collaborations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.collaboration-card {
    background: linear-gradient(135deg, black 30%, #FFD700 100%);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collaboration-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.handshake-icon {
    font-size: 50px;
    color: #FFD700;
    display: block;
    margin-bottom: 10px;
}

a[href="privacy-policy.html"] {
    color: white !important;
    text-decoration: none;
}

a[href="privacy-policy.html"]:visited {
    color: white !important;
}

a[href="privacy-policy.html"]:hover {
    color: #FFD700; /* Giallo oro */
}

a[href="cookie-policy.html"] {
    color: white !important;
    text-decoration: none;
}

a[href="cookie-policy.html"]:visited {
    color: white !important;
}

a[href="cookie-policy.html"]:hover {
    color: #FFD700; /* Giallo oro */
}


a[href="https://www.envyda.it/"] {
    color: white !important;
    text-decoration: none;
}

a[href="https://www.envyda.it/"]:visited {
    color: white !important;
}

a[href="https://www.envyda.it/"]:hover {
    color: #FFD700; /* Giallo oro */
}

.servizi-container {
    text-align: center;
    padding: 20px;
}

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.servizi-item {
    background: linear-gradient(135deg, black 30%, #FFD700 100%);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.servizi-item i {
    color: #FFD700;
    margin-bottom: 10px;
}

.servizi-item h3 {
    color: white;
    font-size: 20px;
    margin: 10px 0;
}

.servizi-item p {
    color: white;
    font-size: 16px;
}


.event-list {
	position: absolute;
	width: 100%;
	
}

.event {
	background: #FFD700; /* Giallo */
	color: black;
	font-weight: bold;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	border-bottom: 2px solid black;
	height: 80px; /* Altezza maggiore */
	font-size: 18px; /* Testo più leggibile */
	
}

.event:nth-child(even) {
	background: black;
	color: white;
	border: 2px solid #FFD700;
}

.container-eventi {
	width: auto;
	height: 250px;
	overflow: hidden;
	border: 2px solid #333;
	margin: 50px auto;
	justify-content: center;
	align-items: center;
	background: black;
	padding-left:0px;
	text-align:center;
	position: relative;
	border-radius: 10px;
}











