@media (max-width: 999px) {

	.nav-links,
	.nav-actions {
		display: none;
	}

	.hamburger {
		display: flex;
	}

	.main-header.open .nav-links,
	.main-header.open .nav-actions {
		display: flex;
		flex-direction: column;
		position: fixed;
		top: 0;
		left: 0;
		width: calc(100vw - 2vw);
		height: 100vh;
		background: #111113fb;
		z-index: 110;
		padding-top: 5.5rem;
		border-radius: 20px;
		align-items: center;
		gap: 2.5rem;
		animation: slideDown 0.3s;
	}

	.main-header.open .nav-links {
		gap: 2.2rem;
	}

	.main-header.open .nav-links>li {
		font-size: 1.5rem;
	}

	.main-header.open .nav-actions {
		flex-direction: row;
		gap: 1.5rem;
		margin-top: 2rem;
	}

	.main-header.open .has-dropdown>.dropdown {
		position: static;
		transform: none;
		background: rgba(24, 24, 27, 0.98);
		box-shadow: none;
		border-radius: 14px;
		min-width: 180px;
		margin-top: 0.5rem;
		padding: 0.7rem 0.5rem;
	}

	.main-header.open .dropdown li {
		font-size: 1.15rem;
		margin-left: 1.5rem;
	}
}

/* Responsive migliorato */
@media (max-width: 600px) {
	.cta-card {
		padding: 1.2rem;
	}

	.cta-card p {
		font-size: 0.95rem;
	}

	.contatti .container {
		padding: 0 1rem;
	}

	.contatti h2 {
		font-size: 1.6rem;
	}

	.contatti ul li {
		font-size: 0.95rem;
	}
}

/* RESPONSIVE FOOTER */
@media (max-width: 1024px) {
	.footer-content {
		grid-template-columns: 1fr 1fr 1fr;
		gap: 40px;
	}

	.footer-about {
		grid-column: 1 / -1;
		text-align: center;
		margin-bottom: 2rem;
	}

	.footer-sections {
		gap: 30px;
	}
}

@media (max-width: 900px) {
	.hero-full {
		flex-direction: column;
		min-height: 60vh;
		padding: 0;
	}

	.hero-content {
		padding: 2.5rem 1.2rem 2.5rem 1.2rem;
	}

	.hero-title {
		font-size: 2.1rem;
	}

	.hero-event {
		position: static;
		margin: 2rem auto 0 auto;
		align-items: center;
	}

	.event-box {
		padding: 1rem 1.2rem;
		gap: 1rem;
	}

	.t-rail {
		gap: 1rem;
	}

	.t-prev,
	.t-next {
		width: 42px;
		height: 42px;
	}
}

@media (max-width: 839.98px) {
	#main-content {
		display: block;
	}

	#unsupported-screen {
		display: flex;
	}
}

@media (max-width: 768px) {
	.sec-title {
		font-size: 40px !important;
	}

	.footer-cta h2 {
		font-size: 2rem;
	}

	.footer-cta p {
		font-size: 1.1rem;
	}

	.main-footer {
		padding: 60px 0 0;
	}

	.footer-container {
		padding: 0 1.5rem;
	}

	.footer-content {
		grid-template-columns: 1fr;
		gap: 40px;
		margin-bottom: 40px;
		padding-bottom: 40px;
		text-align: center;
	}

	.footer-sections {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.footer-brand {
		text-align: center;
		max-width: none;
	}

	.footer-section {
		text-align: center;
	}

	.footer-social {
		justify-content: center;
		gap: 20px;
		margin-bottom: 30px;
	}

	.footer-bottom {
		padding: 20px 0;
	}

	.footer-bottom-content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.footer-legal {
		justify-content: center;
	}

	.footer-credentials {
		text-align: center;
	}
}

@media (max-width: 480px) {
	.footer-cta {
		padding: 3rem 0;
	}

	.footer-cta h2 {
		font-size: 1.8rem;
		line-height: 1.2;
	}

	.footer-legal {
		flex-direction: column;
		gap: 0.5rem;
	}

	.main-footer {
		padding: 40px 0 0;
	}

	.footer-container {
		padding: 0 1rem;
	}

	.footer-content {
		gap: 30px;
		margin-bottom: 30px;
		padding-bottom: 30px;
	}

	.footer-sections {
		gap: 25px;
	}

	.footer-description {
		font-size: 15px;
	}

	.footer-section h3 {
		font-size: 15px;
		margin-bottom: 15px;
	}

	.footer-section ul li a {
		font-size: 14px;
	}

	.footer-social a {
		width: 44px;
		height: 44px;
	}

	.footer-social a i {
		font-size: 18px;
	}

	.footer-copyright p {
		font-size: 13px;
		line-height: 1.4;
	}
}

/* Responsive */
@media (max-width: 1015px) {
	.t-quote {
		font-size: 0.98rem;
	}
}

@media (min-width: 1200px) {
	.testimonial-slider .swiper-wrapper {
		padding-bottom: 1.25rem;
	}
}

@media (max-width: 1020px) {
	#main-content {
		width: 99% !important;
	}

	.navbar {
		flex-direction: column;
		align-items: stretch;
		min-width: 100%;
		padding: 0.5rem 0.5rem;
		min-height: unset;
	}

	.logo {
		font-size: 1rem;
		letter-spacing: 1px;
	}

	.nav-links {
		flex-direction: column;
		gap: 0.5rem;
		align-items: flex-start;
		width: 100%;
		padding: 0.5rem 0;
	}

	.nav-links>li {
		font-size: 1rem;
	}

	.nav-actions {
		flex-direction: column;
		gap: 0.7rem;
		margin-top: 0.5rem;
		align-items: flex-start;
	}

	.btn-nav,
	.btn-start,
	.btn-hero,
	.btn-event {
		font-size: 0.95rem;
		padding: 0.6rem 1.2rem;
	}

	.hero-full {
		flex-direction: column;
		min-height: 80vh;
        align-items: center;
        justify-content: flex-end;
		padding: 0;
		border-radius: 10px;
	}

	.hero-content {
		padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        margin-bottom: 8rem;
        max-width: 100%;
	}

	.hero-title {
		font-size: 2.3rem !important;
	}

	.hero-subtitle {
		text-align: center;
        font-size: 1rem !important;
        padding: 10px 20px;
        width: 80%;
        margin: 0 auto;
	}

	.hero-event {
		padding: 10px 10px 10px 10px;
        position: static;
        /* margin: 1rem auto 0 auto; */
        align-items: center;
        margin-top: -1rem;
	}

	.event-box {
        padding: 1rem 1rem;
        gap: 0.7rem;
        justify-content: space-between;
        min-width: 500px !important;
        flex-direction: row;
        align-items: center;
    }


	.about-blocks {
		flex-direction: column;
		gap: 1rem;
		padding: 0 0.2rem;
	}

	.about-block {
		flex-direction: column;
		padding: 0.5rem 0.5rem;
		font-size: 0.98rem;
		gap: 0.5rem;
	}

	.about-photo {
		width: 100%;
		min-width: unset;
		height: 180px;
		margin-bottom: 1rem;
	}

	.one {
		min-width: unset;
		font-size: 1rem;
	}

	.sec-title {
		font-size: 1.3rem !important;
		margin-top: 30px;
		margin-bottom: 20px !important;
	}

	.pillars-container {
		flex-direction: column;
		gap: 1.2rem;
		padding: 0;
		max-width: 100vw;
	}

	.pillars-left,
	.pillars-right {
		max-width: 100%;
		min-width: unset !important;
		align-items: center;
	}

	.pillars-list .pillar {
		font-size: 1rem;
		padding: 0.5rem 0.7rem;
	}

	.pillar-content {
		padding: 1rem;
		font-size: 0.98rem;
		min-height: 180px;
		height: auto;
		border-radius: 10px;
	}

	.pillar-content h3 {
		font-size: 2.2rem;
		margin-bottom: 0.7rem;
	}

	.timeline {
		margin-left: 0.5rem;
		border-left-width: 2px;
	}

	.timeline-step {
		margin-bottom: 1rem;
		padding-left: 1.2rem;
	}

	.timeline-step .circle {
		width: 1.2rem;
		height: 1.2rem;
		font-size: 0.9rem;
		left: -0.7rem;
		line-height: 1.2rem;
	}

	.container,
	.perche-modern,
	.a-chi {
		padding: 1rem 0.2rem;
	}

	.feature-list {
		gap: 1.2rem;
		max-width: 100%;
	}

	.feature {
		flex-direction: column;
		gap: 0.5rem;
		align-items: flex-start;
	}

	.number {
		font-size: 1.2rem;
		width: 30px;
	}

	.content h3 {
		font-size: 1rem;
	}

	.content p {
		font-size: 0.9rem;
	}

	.card {
		padding: 1rem;
		min-width: unset;
		max-width: 100%;
		font-size: 0.98rem;
	}

	.service-cards {
		gap: 1rem;
	}

	.cta {
		padding: 1.2rem 0;
		border-radius: 10px;
	}

	.grid-box {
		grid-template-columns: 1fr;
		gap: 1rem;
		padding: 0;
	}

	.box {
		padding: 1rem;
		font-size: 0.98rem;
	}

	.positivo,
	.negativo {
		border-width: 3px;
	}

	.logo>svg {
		width: 70%;
		height: auto;
	}

	.navbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 20px !important;
		height: 50px;
	}

	.hamburger {
		display: block;
		width: 30px;
		height: 20px;
		position: relative;
		cursor: pointer;
		margin-left: -20px !important;
	}
}

@media (max-width: 420px){
	.hero-full {
		margin-top: 2.3rem !important;
        margin-left: -9px;
	}

    .t-top{
        flex-direction: column;
    }

    .t-top > figcaption{
        justify-content: center;
        text-align: center;
    }

    .t-card{
        max-width: 520px;
    }

	.t-rail {
		gap: 0.5rem;
	}

    .hero-content {
        margin-bottom: 3rem;
        max-width: 100%;
    }

    .event-box{
        min-width: 300px !important;
        border-radius: 10px;
    }

    .pillar-content {
        padding: 0.9rem;
        font-size: 0.5rem;
        min-height: 180px;
        height: auto;
        max-width: 90%;
        border-radius: 10px;
    }

    #main-content {
        margin: 0 auto;
    }

    .pillars-container {
        flex-direction: column;
        gap: 1.2rem;
        padding: 0;
        max-width: 100vw;
    }

    .pillars-left, .pillars-right {
        max-width: 100%;
        min-width: unset !important;
        align-items: center;
    }

    .pillar-content h3 {
        font-size: 1.8rem;
        margin-bottom: 0.7rem;
    }

    .sec-title {
        font-size: 1.1rem !important;
        margin-top: 20px;
        margin-bottom: 15px !important;
    }
}


@media (max-width: 1200px) {
	.about-photo {
		width: 200px;
		height: 250px;
		min-width: unset;
	}

	.about-blocks {
		flex-direction: column;
		gap: 1.5rem;
	}

	.about-block {
		padding: 0.5rem 0.5rem;
		font-size: 1rem;
	}

	.about>.sec-title>p {
		font-size: 1.6rem !important;
		margin-bottom: 1rem !important;
	}
}


/* Stili per la schermata di dimensione non supportata */
#unsupported-screen {
    margin: 0 auto;
    display: none; /* Nascosto di default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../img/Gradient.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    z-index: 10000;
    text-align: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    font-family: 'Inter', sans-serif; /* Uso un font già presente */
}

#unsupported-screen::before{
  content: "";
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 182px;
  opacity: 0.01;
  top: 0;
  left: 0;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1; /* Assicura che il filtro sia dietro il contenuto */
}

#unsupported-screen .unsupported-content {
    max-width: 400px;
    margin-left: -40px !important;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
}

#unsupported-screen h2 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 500;
}

#unsupported-screen .unsupported-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #fff;
    color: #111;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s, color 0.3s, transform 200ms;
}

#unsupported-screen .unsupported-button:hover {
    background-color: #ddd;
    transform: scale(1.05);
}

