
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(5, 81, 110, 0.85);
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-weight: 700;
}

.logo span:first-child {
    display: block;
    font-size: 18px;
    letter-spacing: 2px;
}

.logo span:last-child {
    display: block;
    font-size: 18px;
    letter-spacing: 2px;
}

.logo small {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 2px;
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav a:hover {
    color: #b8e6ff;
}

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

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

.prenotaz-btn {
    background: #00668e !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
}

.prenotaz-btn:hover {
    background: #05516e !important;
    color: #b8e6ff !important;
}

.prenotaz-btn:after {
    display: none !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #05516e 0%, #0a7aa0 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 81, 110, 0.7);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 90%;
	 max-width: 1000px;
    padding: 0 20px;
}

.hero-content img {
	 width: 100%;
	 display: block;
	 margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;

}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem !important;
    font-weight: 400 !important;
	 letter-spacing: normal !important;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-description {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    background: #00668e !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease;
	 text-decoration: none;
	 display: inline-block;
}

.cta-button:hover {
    background: #05516e !important;
    color: #b8e6ff !important;
}

.hero-image {
    position: absolute;
	 top: 0;
	 left: 0;
	 right: 0;
	 bottom: 0;
    z-index: 1;
	 background: url('./img/slideshow.jpg') center center no-repeat;
	 background-size: cover;
    opacity: 0.3;
}



/* Chi Sono Section */
#home {padding-bottom: 200px;}

.chi-sono {
    padding: 100px 0;
    background: #ffffff;
}

.chi-sono-content {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 50px;
    align-items: start;
}

.chi-sono-image {
    position: relative;
}

.chi-sono-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.chi-sono-text h2 {
    color: #333333;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.chi-sono-text h3 {
    color: #05516e;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.chi-sono-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    text-align: left;
}

strong {
    font-weight: 600;
}


/* Servizi Section */
.servizi {
    padding: 40px 0 100px 0;
    background: url('./img/sfondo-servizi.jpg') center center no-repeat;
    background-size: cover;
    position: relative;
}

.servizi-title {
    text-align: center;
    font-size: clamp(3rem, 21vw, 18rem);
    font-weight: 900;
    color: #05516e;
    margin-bottom: 80px;
    letter-spacing: 5px;
    opacity: 1;
    position: absolute;
    top: -3%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

@media screen and (min-width:  500px) { .servizi-title {top: -4%;} }
@media screen and (min-width:  750px) { .servizi-title {top: -5%;} }
@media screen and (min-width:  850px) { .servizi-title {top: -6%;} }
@media screen and (min-width:  950px) { .servizi-title {top: -10%;} }
@media screen and (min-width: 1050px) { .servizi-title {top: -16%;} }

.servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
    margin-top: 100px;
    place-items: center;
}


.servizio-card {cursor: default;}

/* Posizionamento specifico per i 5 elementi */
.servizio-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.servizio-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.servizio-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

.servizio-card:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
    /* Sposta a destra di mezzo spazio */
    transform: translateX(50%);
}

.servizio-card:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    /* Sposta a sinistra di mezzo spazio */
    transform: translateX(-50%);
}

.servizio-card {
    background: rgba(255,255,255,0.8);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(5, 81, 110, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    width: 100%;
    max-width: 350px;
}

.servizio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(5, 81, 110, 0.2);
    border-color: #05516e;
}

/* Mantenere gli effetti hover anche per i box spostati */
.servizio-card:nth-child(4) {
    transform: translateX(50%) translateY(-10px) !important;
}

.servizio-card:nth-child(5) {
    transform: translateX(-50%) translateY(-10px) !important;
}

.servizio-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.servizio-card h3 {
    color: #05516e;
    font-size: 1.5rem;
    line-height: 1.6rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.servizio-card p {
    color: #666;
}

/* Responsive Design per mobile */
@media (max-width: 900px) {
    .servizi-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .servizio-card:nth-child(1),
    .servizio-card:nth-child(2),
    .servizio-card:nth-child(3),
    .servizio-card:nth-child(4),
    .servizio-card:nth-child(5) {
        grid-column: 1;
        grid-row: auto;
        transform: none;
		  max-width: 500px;
    }
    
    .servizio-card:nth-child(4),
    .servizio-card:nth-child(5) {
        transform: translateX(0px) translateY(-10px) !important;
    }
}

/* Metodo Section */
.metodo {
    padding: 100px 0;
    background: #ffffff;
}

.metodo h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 60px;
    letter-spacing: 2px;
}

.metodo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.metodo-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
	 text-align: center;
}

.metodo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.metodo-image {
    height: 350px;
    overflow: hidden;
}

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

.metodo-item:hover .metodo-image img {
    transform: scale(1.05);
}

.metodo-item h3 {
    color: #05516e;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 20px 25px 10px;
    letter-spacing: 1px;
}

.metodo-item p {
    padding: 0 25px 25px;
    color: #666;
    line-height: 1.6;
}

.metodo-bottom {
    text-align: center;
    padding: 20px;
    background: #05516e;
    color: white;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.metodo-bottom p {
    font-size: 16px;
    letter-spacing: 1px;
}

/* Contatti Section */
.contatti {
    padding: 100px 0;
    background: white;
}

.contatti-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.mappa {
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    order: 1;
}

.contatti-info {
    order: 2;
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    background: white;
    padding: 30px 36px 40px 36px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0,0,0,0.12);
	 margin-top: -220px;
}

@media (max-width: 850px) {
.contatti-info {
	 margin-top: 0px;
	}
}
.contatti-info h2 {
    color: #05516e;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: 2px;
    text-align: center;
}

.contatti-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.contatti-grid a {
	text-decoration: none;
	color: #666;
}

.contatto-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.contatto-item i {
    color: #05516e;
    font-size: 24px;
    margin-top: 5px;
}

.contatto-item h4 {
    color: #05516e;
    font-weight: 700;
    margin-bottom: 5px;
}

.contatto-item p {
    color: #666;
    line-height: 1.6;
}

.prenota-btn {
    background: white;
    color: #05516e;
    border: 2px solid #05516e;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.prenota-btn:hover {
    background: #05516e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(5, 81, 110, 0.3);
}


/* Footer */
.footer {
    background: #05516e;
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    flex: 1;
}

.footer-logo span:first-child {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-logo span:last-child {
    display: block;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-logo small {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.8;
}

.footer-info {
    flex: 2;
    text-align: center;
}

.footer-info p {
    line-height: 1.8;
    opacity: 0.8;
    font-size: 14px;
}

.footer-info a {
	text-decoration: none;
	color: #fff;
}

.social-links {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}

.social-links a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #b8e6ff;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 81, 110, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .chi-sono-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .servizi-grid {
        grid-template-columns: 1fr;
    }
    
    .metodo-grid {
        grid-template-columns: 1fr;
    }
    
    .contatti-grid {
        grid-template-columns: 1fr;
    }
    
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-logo,
    .footer-info,
    .social-links {
        flex: none;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .chi-sono-text h2 {
        font-size: 2rem;
    }
    
    .metodo h2 {
        font-size: 2rem;
    }
    
    .contatti-info h2 {
        font-size: 2rem;
    }
}


/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #05516e;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #043d54;
}

.rigablu {height: 3px; width: 40px; background: #05516e; margin: -20px 0 30px 0;}

.rigablu2 {height: 3px; width: 40px; background: #05516e; margin: -50px auto 50px auto;}