/* Import dei font da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;600&family=Montserrat:wght@300;400;500&display=swap');

/* PALETTE "GIARDINO AL TRAMONTO" */
:root {
	--notte-corteccia: #171310;
	--terra-rossa: #B5502D;
	--resina: #C89A4B;
	--muschio: #4B5A3C;
	--tramonto: #D98F6F;
	--sabbia: #E7DDC6;
	--ombra-ulivo: #786C58;
	--osso: #F3ECDD;
}

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

body {
            font-family: 'Montserrat', sans-serif;
            overflow-x: hidden;
            background: var(--notte-corteccia);
            color: var(--sabbia);
        }

/* NAVBAR */

#navbar {
            position: fixed;
            top: 0;
            width: 100%;
            background: rgba(23,19,16,0.95);
            backdrop-filter: blur(10px);
            padding: 1.2rem 0;
            z-index: 1000;
            border-bottom: 1px solid rgba(243,236,221,0.2);
        }
nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: rgba(231, 221, 198, 0.98);
	backdrop-filter: blur(10px);
	z-index: 1000;
	padding: 1rem 0;
	transition: all 0.3s ease;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
            font-size: 1.5rem;
            font-weight: 300;
            font-family: 'Cormorant Garamond', serif;
            letter-spacing: 3px;
            color: var(--osso);
        }

.nav-links {
	display: flex;
	gap: 2rem;
	list-style: none;
}

.nav-links a {
            text-decoration: none;
            color: var(--osso);
            font-weight: 300;
            font-size: 0.9rem;
            letter-spacing: 2px;
            transition: color 0.3s;
            text-transform: uppercase;
        }

.nav-links a:hover {
            color: var(--tramonto);
}

.nav-links a::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--resina), var(--terra-rossa));
	transition: width 0.3s ease;
}

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

.hamburger {
	display: none;
	flex-direction: column;
	cursor: pointer;

            gap: 5px;
}

.hamburger span {
	width: 25px;
	height: 2px;
            background: var(--osso);
	margin: 3px 0;
	transition: 0.3s;
}

.deco-circle {
            position: absolute;
            border-radius: 50%;
            border: 1px solid rgba(243,236,221,0.15);
            pointer-events: none;
        }

        .circle-1 { width: 300px; height: 300px; top:10%; left:5%; animation: float 20s ease-in-out infinite;}
        .circle-2 { width: 200px; height: 200px; bottom:15%; right:10%; animation: float 15s ease-in-out infinite reverse;}
        .circle-3 { width: 150px; height: 150px; top:60%; left:15%; animation: float 18s ease-in-out infinite;}

        @keyframes float {
            0%,100% { transform: translate(0,0) rotate(0deg); }
            33% { transform: translate(30px,-30px) rotate(120deg); }
            66% { transform: translate(-20px,20px) rotate(240deg); }
        }

/* HERO SECTION */
#hero {
	min-height: 65vh;
      overflow: visible;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	background:
         radial-gradient(circle at 20% 50%, rgba(181, 80, 45, 0.1) 0%, transparent 50%),
         radial-gradient(circle at 80% 50%, rgba(75, 90, 60, 0.1) 0%, transparent 50%),
         var(--notte-corteccia);
}

.hero-bg-aperitivi {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/29464558/pexels-photo-29464558.jpeg'); /* nuova immagine */
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.hero-content {
	text-align: center;
	z-index: 10;
                max-width: 1000px;
	padding: 2rem;
}
.hero-subtitle {
            font-size: 1rem;
            color: rgba(243,236,221,0.7);
            text-transform: uppercase;
            letter-spacing: 4px;
            margin-bottom: 4rem;
            animation: fadeInUp 1s ease-out 0.3s backwards;
        }

.hero-content h1,
#about .hero-content h2 {
            font-family: 'Cormorant Garamond', serif;
	font-size: 4rem;
	            color: var(--osso);
            font-weight: 300;

	margin-bottom: 1rem;ù
	            letter-spacing: 5px;

	background: linear-gradient(45deg, var(--resina), var(--terra-rossa));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
            animation: fadeInDown 1s ease-out;
}

.hero-content .subtitle {
	font-size: 1.8rem;
	margin-bottom: 1rem;
	color: var(--ombra-ulivo);
	animation: fadeInUp 1s ease 0.2s backwards;
	font-weight: 300;
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: var(--ombra-ulivo);
	animation: fadeInUp 1s ease 0.3s backwards;
}

.cta-button {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: linear-gradient(45deg, var(--resina), var(--terra-rossa));
	color: var(--sabbia);
	text-decoration: none;
	border-radius: 50px;
	font-weight: bold;
	transition: all 0.3s ease;
	animation: fadeInUp 1s ease 0.4s backwards;
	box-shadow: 0 5px 20px rgba(200, 154, 75, 0.3);
}

.cta-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(200, 154, 75, 0.5);
}

/* Animations */
        @keyframes fadeInDown {
            from {opacity:0; transform:translateY(-30px);}
            to {opacity:1; transform:translateY(0);}
        }

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* SECTIONS */
section {
	padding: 100px 2rem;
	min-height: 100vh;
	display: flex;
	align-items: center;
	position: relative;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;

            justify-content: space-between;
            align-items: center;
}

.section-title {
	font-size: 3rem;
	margin-bottom: 1rem;
	text-align: center;
	background: linear-gradient(45deg, var(--resina), var(--terra-rossa));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.section-subtitle {
	text-align: center;
	color: var(--ombra-ulivo);
	font-size: 1.2rem;
	margin-bottom: 3rem;
	font-style: italic;
}

/* CHI SONO */
#chi-sono {
	background:
        radial-gradient(circle at 20% 50%, rgba(181, 80, 45, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(75, 90, 60, 0.1) 0%, transparent 50%),
        var(--sabbia);
}

/* Sezione chi-sono aperitivi */
#chi-sono-aperitivi {
    background:
        radial-gradient(circle at 20% 50%, rgba(200, 154, 75, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(200, 154, 75, 0.08) 0%, transparent 50%),
        var(--sabbia); /* fondo chiaro sabbia con glow resina */
}

#chi-sono-aperitivi .section-title {
    background: linear-gradient(45deg, var(--resina), var(--terra-rossa)); /* resina / terra rossa */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.about-image {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

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

.about-text h3 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: var(--resina);
}

.about-text p {
	line-height: 1.8;
	color: var(--ombra-ulivo);
	margin-bottom: 1.5rem;
	font-size: 1.1rem;
}

/* SERVIZI */
#servizi {
	background:
        radial-gradient(circle at 20% 50%, rgba(181, 80, 45, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(75, 90, 60, 0.1) 0%, transparent 50%),
        var(--notte-corteccia);
}

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

.service-card {
	background: var(--sabbia);
	padding: 2.5rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	text-align: center;
}

.service-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
}

.service-card h3 {
	color: var(--resina);
	margin-bottom: 1rem;
	font-size: 1.5rem;
}

.service-card p {
	color: var(--ombra-ulivo);
	line-height: 1.6;
}

/* VIDEO */
#video {
	background:
        radial-gradient(circle at 20% 50%, rgba(181, 80, 45, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(75, 90, 60, 0.1) 0%, transparent 50%),
        var(--sabbia);
}

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
	gap: 2rem;
}

.video-item {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease;
}

.video-item:hover {
	transform: translateY(-10px);
}

.video-item iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	border-radius: 15px;
}

/* PORTFOLIO */
#portfolio {
	background:
        radial-gradient(circle at 20% 50%, rgba(181, 80, 45, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(75, 90, 60, 0.1) 0%, transparent 50%),
        var(--notte-corteccia);
}

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 1.5rem;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
	cursor: pointer;
	aspect-ratio: 1;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: all 0.5s ease;
}

.gallery-item:hover img {
	transform: scale(1.1);
}

.gallery-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(45deg, rgba(200, 154, 75, 0.9), rgba(181, 80, 45, 0.9));
	opacity: 0;
	transition: opacity 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sabbia);
	font-size: 1.5rem;
	font-weight: bold;
}

.gallery-item:hover .gallery-overlay {
	opacity: 1;
}

/* CONTACT */
#contatti {
	background:
        radial-gradient(circle at 20% 50%, rgba(181, 80, 45, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(75, 90, 60, 0.1) 0%, transparent 50%),
        var(--notte-corteccia);
}

.contact-content {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
}

.contact-info {
	margin: 2rem 0;
	background: var(--sabbia);
	padding: 2rem;
	border-radius: 15px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-info p {
	font-size: 1.2rem;
	margin: 1.5rem 0;
	color: var(--ombra-ulivo);
}

.contact-info a {
	color: var(--resina);
	text-decoration: none;
	transition: color 0.3s ease;
	font-weight: 600;
}

.contact-info a:hover {
	color: var(--terra-rossa);
}

.social-links {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	justify-content: center;
}

.social-links a {
	width: 50px;
	height: 50px;
	background: linear-gradient(45deg, var(--resina), var(--terra-rossa));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--sabbia);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 1.2rem;
}

.social-links a:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(200, 154, 75, 0.4);
}

.whatsapp-btn {
	display: inline-block;
	margin-top: 2rem;
	padding: 1rem 2rem;
	background: #25D366;
	color: #fff;
	text-decoration: none;
	border-radius: 50px;
	font-weight: bold;
	transition: all 0.3s ease;
}

.whatsapp-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ANIMATIONS */
.fade-in {
	opacity: 0;
	transform: translateY(50px);
	transition: all 1s ease;
}

.fade-in.visible {
	opacity: 1;
	transform: translateY(0);
}

.slide-left {
	opacity: 0;
	transform: translateX(-50px);
	transition: all 1s ease;
}

.slide-left.visible {
	opacity: 1;
	transform: translateX(0);
}

.slide-right {
	opacity: 0;
	transform: translateX(50px);
	transition: all 1s ease;
}

.slide-right.visible {
	opacity: 1;
	transform: translateX(0);
}

.scale-in {
	opacity: 0;
	transform: scale(0.8);
	transition: all 1s ease;
}

.scale-in.visible {
	opacity: 1;
	transform: scale(1);
}

.delay-1 {
	transition-delay: 0.1s;
}

.delay-2 {
	transition-delay: 0.2s;
}

.delay-3 {
	transition-delay: 0.3s;
}

.delay-4 {
	transition-delay: 0.4s;
}

/* RESPONSIVE */
@media (max-width: 768px) {
	.hamburger {
		display: flex;
	}

	@media (max-width:480px) {
                .hero-content h1, #about .hero-content h2 { font-size:2rem; }
                .card-icon { font-size:2.5rem; }
                .card-title { font-size:1.5rem; }
                .card-description { font-size:0.85rem; }
            }

	.nav-links {
		position: fixed;
		top: 70px;
		right: -100%;
		flex-direction: column;
		background: rgba(231, 221, 198, 0.98);
		width: 100%;
		padding: 2rem;
		transition: right 0.3s ease;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	}

	.nav-links.active {
		right: 0;
	}

	.hero-content h1,
	#about .hero-content h2 {
		font-size: 2.5rem;
	}

	.hero-content .subtitle {
		font-size: 1.3rem;
	}

	.hero-content p {
		font-size: 1rem;
	}

	.about-content {
		grid-template-columns: 1fr;
	}

	.section-title {
		font-size: 2rem;
	}

	.video-grid {
		grid-template-columns: 1fr;
	}

	.gallery {
		grid-template-columns: 1fr;
	}

	.services-grid {
		grid-template-columns: 1fr;
	}

	.slideshow-container {
		height: auto;
		min-height: 100svh;
	}
}

/* CARDS */
.cards-container {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 3rem;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.project-card {
    position: relative;
    background: rgba(243,236,221,0.05);
    border: 1px solid rgba(243,236,221,0.2);
    padding: 2.5rem 2rem;
    text-decoration: none;
    color: var(--sabbia);
    backdrop-filter: blur(10px);
    transition: transform 0.4s, box-shadow 0.4s;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(243,236,221,0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--osso);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.9rem;
    color: rgba(243,236,221,0.7);
    line-height: 1.8;
}

.card-pattern {
    position: absolute;
    bottom: -50px;
    right: -50px;
    font-size: 10rem;
    opacity: 0.05;
    pointer-events: none;
}

/* Specific cards */
.card-organic { border-left: 3px solid rgba(181,80,45,0.3);}

/* Fix cards responsive */
@media (max-width: 768px) {
  .cards-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card {
    padding: 2rem 1.5rem;
  }
}

/* FOOTER */
footer {
    text-align: center;
    padding: 3rem 2rem;
    background: rgba(23,19,16,0.8);
    color: rgba(243,236,221,0.5);
    font-size: 0.85rem;
    letter-spacing: 2px;
    border-top: 1px solid rgba(243,236,221,0.1);
}



/* SLIDESHOW */
 .slideshow-container {
     position: relative;
     width: 100vw;
     max-width: 100vw;
     height: 750px;
     margin: 0 -50vw 4rem;
     left: 50%;
     right: 50%;
     overflow: hidden;
 }

 /* Single slide */
 .slide {
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     opacity: 0;
     transition: opacity 1s ease-in-out;
     overflow: hidden;
 }

 /* Active slide */
 .slide.active {
     opacity: 1;
     animation: zoomSlow 20s linear infinite;
 }

 /* Slide image */
 .slide img {
     width: 100%;
     height: 100%;
     object-fit: cover;
     mask-image: linear-gradient(
         to right,
         transparent 0%,
         black 10%,
         black 90%,
         transparent 100%
     );
     -webkit-mask-image: linear-gradient(
         to right,
         transparent 0%,
         black 10%,
         black 90%,
         transparent 100%
     );
 }

 /* Fade edges to blend with background */
 .slideshow-container::before,
 .slideshow-container::after {
     content: "";
     position: absolute;
     top: 0;
     width: 150px;
     height: 100%;
     z-index: 5;
     pointer-events: none;
 }

 .slideshow-container::before {
     left: 0;
     background: linear-gradient(to right, var(--notte-corteccia) 0%, transparent 100%);
 }

 .slideshow-container::after {
     right: 0;
     background: linear-gradient(to left, var(--notte-corteccia) 0%, transparent 100%);
 }

 /* Slow zoom animation */
 @keyframes zoomSlow {
     0% { transform: scale(1); }
     50% { transform: scale(1.05); }
     100% { transform: scale(1); }
 }



 #about {
   min-height: 65vh;
   padding: 4rem 1rem;
   display: flex;
   align-items: center;
   justify-content: center;
   background:
        radial-gradient(circle at 50% 50%, rgba(243,236,221,0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(75,90,60,0.1) 0%, transparent 50%),
        var(--notte-corteccia);
 }

 .social-links a {
     color: var(--ombra-ulivo); /* colore icone base */
     font-size: 1.8rem;
     margin: 0 10px;
     transition: color 0.3s, transform 0.3s;
 }

 .social-links a:hover {
     color: var(--terra-rossa);
     transform: scale(1.2);
 }

/* NAV CTA */
.nav-cta {
	background: linear-gradient(45deg, var(--resina), var(--terra-rossa)) !important;
	color: var(--sabbia) !important;
	padding: 0.5rem 1.3rem !important;
	border-radius: 50px;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: 600;
}

.nav-cta::after {
	display: none;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 60px;
	height: 60px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	z-index: 2000;
	text-decoration: none;
	animation: whatsappBreathe 3.5s ease-in-out infinite;
}

.whatsapp-float svg {
	width: 30px;
	height: 30px;
	fill: #fff;
}

.whatsapp-float:hover {
	animation-play-state: paused;
	transform: scale(1.08);
}

@keyframes whatsappBreathe {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.08); }
}

@media (max-width: 480px) {
	.whatsapp-float {
		width: 52px;
		height: 52px;
		bottom: 16px;
		right: 16px;
	}

	.whatsapp-float svg {
		width: 26px;
		height: 26px;
	}
}


