/* CSS sito */

/****************
- FONT SITO -
****************/
:root {
	--font-title: 'Quicksand', sans-serif;
	--font-body: 'Poppins', sans-serif;
	--max-width: 1600px;
}

body 					{ font-family: var(--font-body); font-size: 16px; line-height: 1.7; color: var(--text);
						  background: var(--white); margin: 0; padding: 0;	padding-top: 70px; }

/* Titoli e testi */
h1, h2, h3, h4			{ font-family: var(--font-title); font-weight: 700; letter-spacing: 0.3px; }
h1						{ font-size: clamp(34px, 7vw, 52px); }
h2						{ font-size: clamp(1.6rem, 2.5vw, 2.4rem); margin-bottom: 20px; }
h3						{ font-size: 22px; }
p, span, li				{ font-size: clamp(1rem, 1.2vw, 1.15rem); font-weight: 400; }
p						{ margin-bottom: 20px; }
.centra					{ text-align: center !important; margin: auto !important; }
.centra h1, .centra h2,
.centra h3, .centra h4,
.centra p, .centra span	{ margin-left: auto !important; margin-right: auto !important; }

/* liste */
.list li				{ font-size: clamp(.8rem, 1vw, 1rem); font-weight: 400; text-align: justify; margin-bottom: .5rem; }

/* link */
a						{ color: var(--orange); text-decoration: none; }



/****************
- TAG -
****************/
.place-tags				{ display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.place-tags li			{ display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(0, 0, 0, 0.08); border-radius: 20px;
						  background-color: rgba(255, 255, 255, 0.55); color: var(--text); white-space: nowrap; }
.place-tags i			{ font-size: 1rem; }
.place-tags .icon		{ width: 1rem; height: 1rem; display: inline-block; vertical-align: middle; }
.place-tags span		{ font-size: 0.8rem; }
.place-tags li:hover	{ background-color: rgba(255, 255, 255, 0.85); border-color: var(--subtext); }
/* falò */
.cat-fuoco				{ --cat-color: #E4572E; --cat-rgb: 228, 87, 46; }
.cat-fuoco i			{ color: var(--cat-color); }
li.cat-fuoco			{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-fuoco:hover		{ background-color: rgba(var(--cat-rgb), 0.1); border-color: var(--cat-color); }
/* grotte */
.cat-grotta				{ --cat-color: #A1845E; --cat-rgb: 161, 132, 94; }
.cat-grotta .icon		{ color: var(--cat-color); }
li.cat-grotta			{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-grotta:hover		{ background-color: rgba(var(--cat-rgb), 0.1); border-color: var(--cat-color); }
/* gastronomia */
.cat-cibo				{ --cat-color: #C89B3C; --cat-rgb: 200, 155, 60; }
.cat-cibo i				{ color: var(--cat-color); }
li.cat-cibo				{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-cibo:hover		{ background-color: rgba(var(--cat-rgb), 0.1);  border-color: var(--cat-color); }
/* natura */
.cat-natura				{ --cat-color: #5F8D4E; --cat-rgb: 95, 141, 78; }
.cat-natura i			{ color: var(--cat-color); }
li.cat-natura			{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-natura:hover		{ background-color: rgba(var(--cat-rgb), 0.1);  border-color: var(--cat-color); }
/* mare */
.cat-mare				{ --cat-color: #2F8FCE; --cat-rgb: 47, 143, 206; }
.cat-mare i				{ color: var(--cat-color); }
li.cat-mare				{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-mare:hover		{ background-color: rgba(var(--cat-rgb), 0.1); border-color: var(--cat-color); }
/* siti cuylturali e religiosi */
.cat-cultura			{ --cat-color: #5B6C8F; --cat-rgb: 91, 108, 143; }
.cat-cultura i 			{ color: var(--cat-color); }
li.cat-cultura			{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-cultura:hover	{ background-color: rgba(var(--cat-rgb), 0.1); border-color: var(--cat-color); }
/* borghi e paesi */
.cat-paese				{ --cat-color: #B55A6A; --cat-rgb: 181, 90, 106; }
.cat-paese i			{ color: var(--cat-color); }
li.cat-paese			{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-paese:hover		{ background-color: rgba(var(--cat-rgb), 0.1); border-color: var(--cat-color); }
/* trulli e masserie */
.cat-trullo				{ --cat-color: #C9A97A; --cat-rgb: 209, 191, 163; }
.cat-trullo .icon		{ color: var(--cat-color); }
li.cat-trullo			{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-trullo:hover		{ background-color: rgba(var(--cat-rgb), 0.1); border-color: var(--cat-color); }
/* Fste e tradizioni */
.cat-festa				{ --cat-color: #E82F32; --cat-rgb: 232, 47, 50; }
.cat-festa .icon		{ color: var(--cat-color); }
li.cat-festa			{ background-color: rgba(var(--cat-rgb), 0); transition: background-color 0.3s, border-color 0.3s; }
li.cat-festa:hover		{ background-color: rgba(var(--cat-rgb), 0.1); border-color: var(--cat-color); }



/****************
- HEADER SITO -
****************/
#site-header			{ position: fixed; top: 0; left: 0; width: 100%; height: 90px;
						  background: var(--white); z-index: 1000; transition: height 0.3s ease, box-shadow 0.3s ease; }
.header-inner			{ max-width: var(--max-width); height: 100%; margin: 0 auto; padding: 0 20px;
						  display: flex; align-items: center; justify-content: space-between; }
#site-header.scrolled	{ height: 70px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); }

/* logo */
.logo img				{ height: 55px; transition: height 0.3s ease; }
#site-header.scrolled .logo img { height: 42px; }

/* navbar */
.main-nav ul			{ list-style: none; display: flex; align-items: center; gap: 12px; }
.main-nav a				{ display: inline-block; font-size: clamp(0.8rem, 1.2vw, 1.15rem); color: var(--text); font-weight: 500; text-decoration: none;
						  padding: 8px 12px; border-radius: 6px; transition: background 0.3s, color 0.3s; }
.main-nav a:hover		{ color: var(--orange); background: rgba(0,0,0,0.03); filter: brightness(1.08); }
.main-nav a.active		{ color: var(--white-text); font-weight: 600; background: var(--orange); box-shadow: inset 0 0 0 1px rgba(244,124,32,0.35); }
.main-nav.open			{ box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.menu-toggle			{ display: none; font-size: 22px; color: var(--text); cursor: pointer; }



/****************
- SEZIONI SITO -
****************/
.section				{ position: relative; padding: 0 40px; overflow: visible; box-sizing: border-box; z-index: 1; }
.section:first-of-type	{ margin-top: 80px; }
.section:last-of-type	{ margin-bottom: 80px; }
.section-page > div		{ position: relative; max-width: var(--max-width); margin: auto; }
.section-white			{ background: var(--white); }
.section-soft			{ background-image: url("../images/bg/parete.jpg"); background-size: cover; background-position: center; background-repeat: no-repeat; }
.section-orange			{ background: var(--orange); color: var(--white-text); }
.section-intro			{ padding: 0 40px; }
.section-inner			{ max-width: 1200px; margin: 0 auto; z-index: 2; }
.section-center			{ margin: 0 auto 80px; }
.section-curve			{ position: absolute; left: 50%; width: 100%; min-width: 1600px; height: 140px; z-index: 1; pointer-events: none; }
.section-curve.curve-top { top: -1px; transform: translateX(-50%) rotate(180deg); transform-origin: center; }
.section-curve.curve-btm { bottom: -1px; transform: translateX(-50%); transform-origin: center; }
.section-soft .section-curve path { fill: var(--white); }
/* separatore tra articoli */
.separator				{ width: 100%; height: 40px; margin: 30px 0; position: relative; pointer-events: none; }
.separator::after		{ content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
						  width: 60%; height: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.25); border-radius: 0 0 100% 100%; }



/****************
- PULSANTI -
****************/
.btn-primary			{ display: inline-block; background-color: var(--orange); width: auto; padding: 14px 32px; border-radius: 40px; cursor: pointer;
						  color: var(--white-text); text-decoration: none; font-weight: 500; transition: filter 0.2s ease; }
.btn-primary:hover		{ filter: brightness(1.08); }
.btn-primary:active		{ filter: brightness(0.95); }
.btn-secondary			{ background-color: rgba(255, 255, 255, 0.2); width: auto; padding: 14px 32px; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 40px;
						  color: var(--white-text); text-decoration: none; font-weight: 400; backdrop-filter: blur(3px); transition: background-color 0.3s ease; }
.btn-secondary:hover	{ background-color: rgba(255, 255, 255, 0.3); }



/****************
- PARALLASSE -
****************/
.parallax-bg			{ position: absolute; inset: 0; background-size: cover; background-position: center; transform: translateY(0); will-change: transform; }



/****************
- POPUP -
****************/
.openPopup			{ cursor: pointer; }
.fade				{ position: fixed; left: 0; top: 0; z-index: 10000; width: 100%; height: 100%; display: none; opacity: .5;
					  background: black; backdrop-filter: blur(10px); }
.popup				{ display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--white);
					  border-radius: 20px; box-sizing: border-box; overflow: auto; z-index: 10500; opacity: 0; transition: opacity .25s ease, transform .25s ease;
					  -webkit-box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.35); 
					  box-shadow: 0px 0px 4px 1px rgba(0,0,0,0.35); }
.popup.open			{ opacity: 1; }
span.chiudiPopup	{ position: absolute; float: right; right: 2rem; font-size: 4rem; color: var(--testo);
					  background: var(--Lr1); border-radius: 50%; transition: all .3s ease; cursor: pointer; box-shadow: rgba(var(--ombra), 0.4) 0 0 .5rem; }
span.chiudiPopup:hover	{ color: var(--cl1); background: var(--Lr2); }
.fixed_button		{ position: absolute; bottom: 0rem; width: calc(100% - (4.8rem * 2)); height: 5rem; line-height: 5rem; box-sizing: border-box; z-index: 200; }
body.popup-open		{ position: fixed; overflow: hidden; width: 100%; }
/* pagina popup */
.popup-wrapper		{ position: relative; display: flex; flex-direction: column; width: 600px; min-height: 50vh; max-height: 90vh; border-radius: 12px; background: var(--white); overflow: hidden; }
.popup-header		{ flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; width: 100%; height: 100px; padding: 15px; box-sizing: border-box;
					  background: var(--white); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); border-bottom: 1px solid #eee; z-index: 2; }
.popup-header img	{ height: 80px; width: auto; z-index: 2; }
.popup-title		{ width: 40%; text-align: right; z-index: 2; }
.popup-header h2	{ line-height: 1; }
.popup-header .section-curve { width: 160%; min-width: inherit; height: inherit; }
.popup-header .section-curve path { fill: var(--waste-color); z-index: 1; }
.popup-content		{ flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 20px; scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.4) transparent; }
.popup-content::-webkit-scrollbar { width: 6px; }
.popup-content::-webkit-scrollbar-track { background: transparent; }
.popup-content::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.4); border-radius: 10px; }
.popup-content::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.6); }
.popup-footer		{ flex: 0 0 auto; display: flex; justify-content: center; align-items: center; width: 100%; height: 50px; padding: 15px 0;
					  background: var(--white); box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08); }



/****************
- HOME PAGE -
****************/
/* hero home page */
.hero					{ position: relative; display: flex; height: 90vh; min-height: 520px; overflow: hidden; align-items: center; }
.hero-article			{ height: 500px; min-height: auto; }
.hero-bg				{ position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay			{ position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.15)); }
.hero-content			{ position: relative; max-width: 1200px; margin: 0 auto; padding: 0 24px;
						  color: var(--white-text); z-index: 2; animation: heroSoftIn 1.4s ease-out both; }
.hero h1				{ font-weight: 500; margin-bottom: 20px; letter-spacing: 0.5px; }
.hero p					{ line-height: 1.6; max-width: 520px; margin-bottom: 40px; }
.hero-actions			{ display: flex; gap: 20px; }

/* servizi principali */
.services h2			{ font-weight: 700; text-align: center; margin-bottom: 20px; }
.services p				{ color: var(--subtext); line-height: 1.6; text-align: center;
						  max-width: 520px; margin: 0 auto 60px; }
.services-grid			{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.service-item			{ display: flex; flex-direction: column; gap: 14px; text-align: center; }
.service-item i			{ font-size: 32px; color: var(--orange); }
.service-item span		{ color: var(--text); padding: 20px 10px; transition: all 0.6s ease; }

/* anteprima casa */
.house-section			{ position: relative; overflow: hidden; padding: 160px 0; }
.house-wrapper			{ position: relative; display: flex; overflow: hidden; gap: 0; align-items: stretch; height: 520px; border-radius: 18px; }
.house-image			{ position: relative; width: 66%; height: 100%; overflow: hidden; z-index: 1; clip-path: url(#home-clip); }
.house-bg				{ opacity: 0; transition: opacity 1.4s ease; }
.house-bg.active		{ opacity: 1; }
.house-bg.parallax-bg	{ inset: -15% 0; }
.house-content			{ position: absolute; top: 50%; left: calc(66% + 10px); transform: translateY(-50%); display: flex; flex-direction: column; justify-content: center;
						  width: 34%; height: 100%; z-index: 15; }
.house-slider			{ overflow: hidden; width: 100%; height: 260px; }
.house-slider-track		{ display: flex; width: 100%; height: 100%; transition: transform 0.8s ease; }
.house-slide			{ min-width: 100%; opacity: 0; transform: translateX(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.house-slide.active		{ opacity: 1; transform: translateX(0); }
.house-content h2		{ line-height: 1.25; margin-bottom: 20px; }
.house-content p		{ line-height: 1.6; max-width: 40ch; }
.house-content a		{ position: relative; align-self: flex-start; }

/* mappa */
.where-wrapper			{ display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.where-content h2		{ margin-top: 0; margin-bottom: 24px; }
.where-content p		{ color: var(--subtext); line-height: 1.6; max-width: 46ch; margin-bottom: 32px; }
.where-features			{ display: grid; gap: 16px; list-style: none; padding: 0; margin: 0 0 40px; }
.where-features li		{ display: flex; align-items: center; gap: 14px;
						  font-size: 0.95rem; color: var(--subtext); }
.where-features i		{ font-size: 1.1rem; color: var(--orange); flex-shrink: 0; }
.map-link				{ display: block; text-decoration: none; }
.map-wrapper			{ position: relative; height: 420px; overflow: hidden; border-radius: 18px; cursor: pointer; }
.map-wrapper iframe,
.map-wrapper img		{ width: 100%; height: 100%; border: 0; pointer-events: none; }
.map-overlay			{ position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
						  font-size: 1.1rem; color: var(--white-text); font-weight: 600; background: rgba(0, 0, 0, 0.25); transition: background 0.4s ease; }
.map-overlay i			{ font-size: 2rem; }
.map-wrapper:hover .map-overlay { background: rgba(0, 0, 0, 0.5); }

/* cosa visitare */
.explore-section		{ text-align: center; padding-top: 140px; padding-bottom: 160px; }
.explore-grid			{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.explore-card			{ position: relative; height: 280px; overflow: hidden; border-radius: 16px; }
.explore-card img		{ width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.explore-overlay		{ position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px;
						  color: var(--white-text); background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.1)); }
.explore-overlay h3		{ font-size: 1.2rem; margin-bottom: 4px; }
.explore-overlay span	{ font-size: 0.9rem; opacity: 0.85; }
.explore-card:hover img	{ transform: scale(1.08); }
.explore-overlay		{ position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; align-items: center; text-align: center; }
.explore-card .place-tags li	{ border: none; background-color: transparent; color: var(--white-text); }

/* zona finale */
.cta-section			{ text-align: center; }
.cta-inner				{ max-width: 720px; }
.cta-section h2			{ margin-bottom: 20px; }
.cta-section p			{ line-height: 1.6; margin-bottom: 40px; opacity: 0.95; }



/****************
- PAGINA LA CASA -
****************/
.house-area				{ position: relative; overflow: hidden; padding-left: 0; padding-right: 0; }
.house-area.section-soft{ padding: 160px 0; }
.house-area-header		{ padding: 0 20px; margin-bottom: 50px; }
.house-area-header h2	{ margin-top: 0; }
.house-gallery			{ position: relative; display: flex; overflow: hidden; gap: 0; align-items: stretch; height: 520px; border-radius: 18px; }
.gallery-main			{ position: relative; width: 66%; height: 100%; overflow: hidden; }
.house-gallery-sx .gallery-main { order: 1; clip-path: url(#main-sx); }
.house-gallery-dx .gallery-main { order: 2; clip-path: url(#main-dx); }
.gallery-main img		{ display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery-grid			{ position: relative; display: flex; flex-direction: column; gap: 20px; width: 34%; height: 100%; }
.house-gallery-sx .gallery-grid { order: 2; clip-path: url(#grid-sx); }
.house-gallery-dx .gallery-grid { order: 1; clip-path: url(#grid-dx); }
.gallery-grid a			{ flex: 1; overflow: hidden; }
.gallery-grid img		{ display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-grid a:hover img { transform: scale(1.04); }

/* visualizzatore foto aperta */
.lightbox				{ position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
						  background: rgba(0,0,0,0.85); opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 999; }
.lightbox.active		{ opacity: 1; pointer-events: all; }
.lightbox img			{ max-width: 90%; max-height: 90%; border-radius: 12px; }



/****************
- PAGINA SERVIZI -
****************/
.section-waste			{ padding-top: 140px; padding-bottom: 160px; }
.waste-title			{ display: inline-flex; align-items: center; gap: 12px; }
.waste-title i			{ font-size: 0.9em; color: #5fa36a; /* verde naturale */ }
.services-location		{ text-align: center; }
.services-location .services-intro { max-width: 560px; margin: 0 auto 50px; }
.location-list			{ display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 30px 60px;
						  text-align: center; max-width: 700px; margin: 0 auto 60px; }
.location-item			{ display: flex; align-items: flex-start; gap: 14px; 
						  line-height: 1.5; }
.location-item i		{ font-size: 1.1rem; color: var(--orange); margin-top: 4px; }
.services-location .btn-primary { margin: 0 auto; }

/* raccolta differenziata */
.waste-today			{ }
.waste-today-title		{ margin-bottom: 30px !important; }
.waste-date				{ display: inline-block; font-size: 22px; margin-left: 8px; font-weight: 600; }
.waste-today-list		{ display: flex; flex-direction: column; justify-content: center; gap: 20px; }
/* card */
.waste-card				{ font-size: 10px; position: relative; display: flex; align-items: center; gap: 2.4em; width: 100%; height: 25em; padding: 2em; border-radius: 14px; max-width: 600px; cursor: pointer; }
.waste-card-image		{ flex: 0 0 30%; display: flex; align-items: center; justify-content: center; margin-left: -10%; padding: 2em; }
.waste-card-image .img	{ position: absolute; max-width: 100%; max-height: 16em; left: 2em; object-fit: contain; transition: transform 0.3s ease; }
.waste-card:hover .img	{ transform: scale(1.2); }
.waste-card-content		{ position: relative; flex: 0 0 80%; background: var(--white); height: 90%; padding: 1em 0 2em 6em; clip-path: url(#waste-card-shape); margin-left: -10%;
						  display: flex; flex-direction: row; flex-wrap: nowrap; justify-content: space-between; align-items: center; text-align: left; box-sizing: border-box; }
.waste-card-text		{ display: flex; flex-direction: column; gap: 1em; padding: 2em 0; }
.waste-card-text h3		{ display: block; width: 100%; font-size: 2.5em; text-align: left; padding-left: 1em; margin: 0; }
.waste-card-text p		{ display: block; width: 100%; font-size: 1.6em; text-align: left; margin: 0; }
.waste-card-text .click	{ display: block; font-size: 1.6em; text-align: left; font-weight: 600; }
.waste-card-content .bin{ height: 12em; width: auto; transform: translate(0, 1em); transition: transform 0.3s ease; }
.waste-card:hover .bin	{ transform: scale(1.4) rotate(3deg) translate(-.5em, .5em); }
.waste-hint				{ position: absolute; display: block; left: 1em; bottom: .5em; font-size: 1.4em; color: var(--waste-text); }
/* timeline */
.timeline				{ font-size: 10px; padding: 0; }
.timeline-inner			{ overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.timeline-inner::-webkit-scrollbar { display: none; }
.timeline-days			{ --dot-size: 1.4em; position: relative; display: flex; justify-content: flex-start; gap: 4em;
						  width: fit-content; min-width: 100%; margin: auto; margin-top: 5em; padding: 0 2em; }
.timeline-days::before	{ content: ''; position: absolute; top: calc((var(--dot-size) / 2) + .6em); left: 0; height: 2px; width: 100%; min-width: max-content;
						  background: var(--greyline); pointer-events: none; }
.timeline-inner.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; -ms-user-select: none; }
.timeline-inner.is-centered { justify-content: center; }
.timeline-title			{ }
.timeline .day			{ flex: 0 0 22em; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.timeline .dot			{ position: relative; display: flex; align-items: center; justify-content: center; width: var(--dot-size); height: var(--dot-size);
						  background: var(--white); border: .2em solid var(--greyline); border-radius: 50%; margin-bottom: .7em; z-index: 1; }
.timeline .dot-inner	{ width: .8em; height: .8em; border-radius: 50%; background: var(--orange); }
.timeline .day-content	{ text-align: center; margin-top: .8em; }
.timeline .day-content h4	{ font-size: 1.6em; margin: .3em; }
.timeline .list			{ display: flex; flex-direction: column; gap: .8em; align-items: center;
						  list-style: none; width: 18em; padding: 0; margin: 1em 0 0; }
.timeline .list li		{ display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: .6em 1.2em; border-radius: 99.9em;
						  font-size: 0.75em; color: var(--waste-text); text-align: left; background: var(--waste-color); }
.timeline .list img		{ flex-shrink: 0; width: 4em; height: 4em; object-fit: contain; }
.timeline .list li span	{ font-size: 2em; }
/* tipologie di rifiuto */
.waste-type				{ max-width: 1000px; margin: auto; }
.waste-type-title		{ margin-bottom: 30px !important; }
.waste-type-text		{ margin-bottom: 30px !important; }
.waste-type-grid		{ display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 40px; }
.waste-type-card		{ color: var(--waste-text); position: relative; padding: 30px 20px; border-radius: 20px; overflow: hidden; text-align: center; cursor: pointer; }
.waste-type-image		{ display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.waste-type-image img	{ width: 100%; max-width: 120px; height: auto; object-fit: contain; transition: transform 0.3s ease; }
.waste-type-card:hover img { transform: scale(1.2); }
.waste-type-card h3		{ font-size: 1.1rem; font-weight: 600; margin: 0; }
.waste-bg				{ background: var(--waste-color); transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s ease, bsackground .25s ease; }
.waste-bg:hover			{ transform: translateY(-8px) scale(1.02); box-shadow: 0 18px 45px rgba(0,0,0,.18);
						  background: linear-gradient( 135deg, color-mix(in srgb, var(--waste-color) 80%, white), var(--waste-color) ); }
.waste-bg:active		{ transform: translateY(-2px) scale(0.99); box-shadow: 0 8px 20px rgba(0,0,0,.12); /* durante il click */ }
/* specifica colore icone rifiuti */
.waste-black			{ filter: brightness(1); }
.waste-black			{ filter: invert(.5) brightness(.4); }

/* scheda nel popup */
.waste-bin				{ flex: 0 0 auto; display: flex; align-items: center; gap: 0.6rem; margin-top: 0.2rem; }
.waste-bin img			{ width: 48px; height: auto; border-left: 4px solid var(--waste-color); padding-left: 6px; }
.waste-bin-title		{ font-size: 0.85rem; color: var(--text); font-weight: 500; white-space: nowrap; }
.waste-section			{ margin-bottom: 1.2rem; }
.waste-section h4		{ margin-bottom: 0.3rem; font-weight: bold; }
.waste-section.yes h4	{ color: var(--ok); }
.waste-section.no h4	{ color: var(--error); }
.yes-group h5			{ margin-bottom: 0.2rem; cofont-weight: bold;  }
.waste-text				{ line-height: 1.6; margin: 0; }
.waste-note				{ color: var(--ok); }
.waste-note				{ --waste-bg: color-mix(in srgb, var(--waste-color) 15%, white); background-color: rgba(0, 0, 0, 0.07); /* neutro */ background-color: var(--waste-bg);
						  border-left: 4px solid var(--waste-color); padding: 0.8rem 1rem; margin-top: 1.2rem; border-radius: 4px; }
.waste-note p			{ font-size: 0.95rem; color: var(--testo); margin: 0; }



/****************
- PAGINA DINTORNI -
****************/
.surroundings-section.section-soft	{ padding-top: 180px; padding-bottom: 180px; }
.surroundings-section:first-of-type { padding-top: 80px !important; }
.surroundings-wrapper	{ display: grid; gap: 80px; align-items: center; max-width: 1000px; }
.surroundings-left		{ grid-template-columns: 2fr 3fr; }
.surroundings-right		{ grid-template-columns: 3fr 2fr; }
.surroundings-left .surroundings-image		{ order: 1; }
.surroundings-left .surroundings-content	{ order: 2; }
.surroundings-right .surroundings-image		{ order: 2; }
.surroundings-right .surroundings-content	{ order: 1; }
/* foto */
.surroundings-image		{ display: flex; align-items: center; align-self: stretch; z-index: 2; }
.surroundings-image img	{ width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,0.12); }
/* testo */
.surroundings-content	{ margin: 30px 0; z-index: 2; }
.surroundings-content h2{ margin-top: 0; margin-bottom: 20px; }
.surroundings-desc		{ margin-bottom: 25px; max-width: 60ch; }
/* suggerimento periodo prenotazione */
.best-period			{ display: flex; align-items: center; gap: 8px; margin: 14px 0 22px; }
.best-period i			{ font-size: 0.8rem; color: var(--orange); }
.best-period span		{ font-size: 0.8rem; color: var(--subtext); }
.best-period strong		{ font-weight: 600; color: var(--text); }

/* singolo articolo */
.article				{ margin-top: 10px !important; }
.article-wrapper		{ display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; max-width: 1000px; padding: 30px 0; }
.article-distance		{ font-size: clamp(.8rem, 0.9vw, .9rem); text-align: right; }
.article-when i			{ color: var(--orange); margin-right: .5rem; }
.article article h2		{ margin-top: 0; margin-bottom: 20px; }
.article article p		{ text-align: justify; margin-bottom: 25px; }
article .image			{ display: flex; align-items: center; height: 200px; aspect-ratio: 16/9; }
article .image img		{ width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
article .image:nth-of-type(odd)  { float: right; margin-left: 15px; }
article .image:nth-of-type(even) { float: left; margin-right: 15px; }
article .image.right	{ float: right; margin: 0; margin-left: 15px; }
article .image.left		{ float: left; margin: 0; margin-right: 15px; }
article .image.space	{ margin-top:; }
.article-more			{ text-align: center; }
.article-more-grid		{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }



/****************
- TOOLTIP INFO -
****************/
.has-tooltip			{ position: relative; }
.tooltip-trigger		{ position: relative; display: inline-flex; align-items: center; }
.tooltip-icon			{ font-size: 1em !important; margin-left: 6px; opacity: 0.7; vertical-align: middle; cursor: help; transition: opacity 0.25s ease; }
/* vignetta */
.tooltip				{ position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--white);
						  font-size: 0.8rem; color: var(--text); text-align: left; line-height: 1.4; box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 20;
						  width: min(220px, 80vw); padding: 10px 14px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }
/* freccia */
.tooltip::after			{ content: ''; position: absolute; top: 100%; left: var(--arrow-pos, 50%); transform: translateX(-50%);
						  border-width: 6px; border-style: solid; border-color: var(--white) transparent transparent transparent; }
.tooltip-trigger:hover .tooltip,
.tooltip-trigger:focus .tooltip { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);  }



/****************
- ANIMAZIONI INGRESSO ELEMENTI -
****************/
.animate				{ opacity: 0; transition: all .8s ease; }
.animate.show			{ opacity: 1; }

/* dal basso */
.animate				{ transform: translateY(40px); }
.animate.show			{ transform: translateY(0); }

/* da sinistra */
.animate-left			{ transform: translateX(-40px); }
.animate-left.show		{ transform: translateX(0); }

/* da destra */
.animate-right			{ transform: translateX(40px); }
.animate-right.show		{ transform: translateX(0); }

/* zoom */
.animate-scale			{ transform: scale(.9); }
.animate-scale.show		{ transform: scale(1); }

/* fade only */
.animate-fade			{ opacity: 0; }
.animate-fade.show		{ opacity: 1; }

/* delay animazione */
.delay-1				{ transition-delay: 0.1s; }
.delay-2				{ transition-delay: 0.2s; }
.delay-3				{ transition-delay: 0.3s; }
.delay-4				{ transition-delay: 0.4s; }
.delay-5				{ transition-delay: 0.5s; }
.delay-6				{ transition-delay: 0.6s; }
.delay-7				{ transition-delay: 0.7s; }
.delay-8				{ transition-delay: 0.8s; }
.delay-9				{ transition-delay: 0.9s; }
.delay-10				{ transition-delay: 1s; }



/****************
- ANIMAZIONE HOVER - solo su desktop
****************/
@media (hover: hover) {
.main-nav a				{ position: relative; }
.main-nav a::after		{ content: ""; position: absolute; bottom: 4px; left: 50%; width: 0; height: 2px; background: var(--orange); transition: all .25s ease; }
.main-nav a:hover::after { width: 60%; left: 20%; }
}



/****************
- RIADATTAMENTO CURVA S -
****************/
@media (max-width: 1950px) {
/* curva di gallery e slider */
.curve-home				{ left: calc(50% - 60px); }
}
@media (max-width: 1300px) {
/* curva di gallery e slider */
.curve-home				{ left: calc(45% - 60px); }
}
@media (max-width: 1000px) {
/* curva di gallery e slider */
.curve-home				{ left: calc(40% - 60px); }
}


/****************
- COMPRESSIONE NAV -
****************/
@media (max-width: 1000px) {
/* Navbar */
.menu-toggle			{ display: block; }
.main-nav				{ position: absolute; top: 100%; right: 0; left: 0; background: var(--white); border-bottom: 1px solid var(--gray);
						  display: none; animation: fadeDown .25s ease; }
.main-nav ul			{ flex-direction: column; gap: 0; padding: 0; }
.main-nav li			{ border-top: 1px solid var(--gray); }
.main-nav a				{ display: block; padding: 14px 20px; border-radius: 0; text-align: center; }
.main-nav a.active		{ background: var(--orange); }
}



/****************
- TABLET -
****************/
@media (max-width: 900px) {
/* home page */
.hero-article			{ height: 400px; }
.services-grid			{ grid-template-columns: repeat(2, 1fr); }
.house-section			{ padding: 160px 0 100px; }
.house-wrapper			{ flex-direction: column; gap: 30px; height: auto; border-radius: 0; }
.house-image			{ width: 100%; height: 360px; clip-path: url(#home-clip-tablet); }
.house-content			{ position: relative; top: auto; left: auto; transform: translateY(0); margin: 0 auto; padding: 40px; width: 450px; max-width: calc(100vw - 80px); }
.house-slider			{ height: 200px; }
.where-wrapper			{ grid-template-columns: 1fr; gap: 10px; }
.where-content			{ text-align: center; }
.where-content h2		{ margin-left: auto; margin-right: auto; }
.where-content p		{ display: inline-block; max-width: 100%; margin-left: auto; margin-right: auto; }
.where-features			{ margin-left: auto; margin-right: auto; text-align: left; max-width: fit-content; }
.map-placeholder		{ height: 300px; }
.explore-grid			{ grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* pagina La casa */
.house-area				{ padding: 40px 0; }

/* pagina servizi */
.waste-card				{ font-size: 9px; max-width: 500px; }
.timeline				{ font-size: 8px; }
	
/* pagina dintorni */
.surroundings-section	{ padding: 0 40px; }
.surroundings-section.section-soft { padding: 160px 40px 100px; }
.surroundings-wrapper 	{ grid-template-columns: 1fr; gap: 10px; }
.surroundings-image img	{ height: 260px; }
.surroundings-content	{ text-align: left; }
.surroundings-wrapper .surroundings-image	{ order: 1; }
.surroundings-wrapper .surroundings-content	{ order: 2; }
.surroundings-desc		{ max-width: 100%; }
}



/****************
- MOBILE -
****************/
@media (max-width: 600px) {
/* popup */
.popup				{ top: 0; left: 0; transform: none; width: 100%; height: 100%; border-radius: 0; }
.popup-wrapper		{ width: 100%; min-height: 100vh; max-height: 100vh; height: 100vh; border-radius: 0; }
.popup-header		{ }
.popup-content		{ }
.popup-footer		{ }

/* Sezioni sito */
.section-parallax		{ background-attachment: scroll; }
.animate				{ transition-duration: .5s; transform: none; }

/* Home page */
.hero					{ height: 70vh; }
.hero-article			{ height: 300px; }
.hero-actions			{ flex-direction: column; align-items: flex-start; }
.house-section			{ padding: 160px 0 100px; }
.house-image			{ height: 260px; clip-path: url(#home-clip-mobile); }
.explore-grid			{ grid-template-columns: 1fr; }
.explore-card			{ height: 240px; }

/* pagina la casa */
.house-area				{ padding: 20px 0; }
.house-gallery			{ flex-direction: column; height: 480px; border-radius: 0; }
.gallery-main			{ width: 100%; height: 60%;  order: 1 !important; clip-path: url(#main-mobile) !important; }
.gallery-grid			{ flex-direction: row; width: 100%; height: 40%; order: 2 !important; clip-path: url(#grid-mobile) !important; }
.gallery-grid a			{ flex: 1; }

/* pagina servizi */
.waste-card				{ font-size: 6px; }
.timeline				{ font-size: 7px; }

/* pagina dintorni */
.surroundings-section	{ padding: 0 40px; }
.surroundings-section.section-soft { padding: 160px 40px; }
.article				{ padding: 0 20px; }
article .image			{ float: none !important; width: 100%; max-width: 100%; height: 200px; margin: 30px 0 16px !important; }
}

@media (max-width: 380px) {
/* home page */
.services-grid			{ grid-template-columns: 1fr; }

/* pagina servizi */
.location-list			{ grid-template-columns: 1fr; gap: 24px; }
}


/****************
- ANIMAZIONI -
****************/
/* home page */
@keyframes heroSoftIn {
	from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* toggle menù mobile */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
