/*
Theme Name: passantincendio
Author: INDIGO Srls
Version: 1.0
Text Domain: passantincendio
*/

:root {
	--text: #000;
	--brand: #B90001;
	--darkbrand: #5E0100;
	--lightbrand: #E60200;
}



body {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	font-style: normal;
	color: var(--text);
	font-size: 1.8rem;
	line-height: 2.6rem;
	background: #fff;
}

body.home {
	background: #E4E4E4;
}
body.page-id-14 {
	background: #E5E5E5;
}


h1 {
	font-size: 5.2rem;
	line-height: 5.5rem;
	font-weight: 700;
	color: var(--brand);
}
h2 {
	font-size: 2.8rem;
	line-height: 4rem;
	font-weight: 400;
	color: var(--text);
}
#home p {
	font-size: 2.8rem;
	line-height: 4rem;
}

a {
	color: var(--brand);
}
a:hover {
	color: var(--text);
}





/* =========================
   HEADER FIXED
   ========================= */
.site-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 9999;
}
.site-header__inner {
	position: relative;
	background: transparent;
}
.site-header__bar {
	position: relative;
	z-index: 3;
	height: auto;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 18px 60px 0;
}
.page-head__logo {
	display: inline-flex;
	align-items: center;
}
.page-head__logo img {
	display: block;
	max-width: 190px;
	height: auto;
}
.page-head__right {
	display: flex;
	align-items: center;
	gap: 30px;
}

/* icon buttons */
.headMenu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 0px;
}
.headMenu li {
	margin: 0;
	padding: 0;
}
.headMenu a,
.gi-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 7px;
	border-radius: 999px;

	background: #fff;
	border: 1px solid #fff;

	text-decoration: none;
	cursor: pointer;
}
.headMenu svg,
.gi-burger svg {
	display: block;
}
.gi-burger {
	width: 52px;
	height: 52px;
	padding: 8px;
	background: #fff;
}

.gi-burger .burgerClose{ display: none; }

.headMenu a:hover,
.gi-burger:hover{
  background: #f2f2f2;
  border-color: rgba(0,0,0,.12);
}

/* toggle icone burger */
.site-header.is-open .gi-burger .burgerOpen{ display:none; }
.site-header.is-open .gi-burger .burgerClose{ display:block; }

/* =========================
   MENU PANEL (dentro “bianco che cresce”)
   ========================= */
.menu-nav {
	position: absolute;
	left: 0; right: 0;
	top: 0;

	padding: 0 0;
	text-align: center;

	z-index: 2;

	transform: translateY(-100%);
	pointer-events: none;
	background: #fff;

	transition: opacity .2s ease, transform .2s ease;
}

.site-header.is-open .menu-nav {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.site-header .menu-nav::after {
	filter: drop-shadow(0 26px 16px rgba(0,0,0,.2));
}

/* safety per hidden */
.site-header.is-open .menu-nav[hidden]{ display: block; }

/* menu WP */

.menu-nav::after {
	content: "";
	background: url("assets/images/wave.svg") no-repeat center center / cover;
	aspect-ratio: 1366/142;
	display: block;
	position: absolute;
	bottom: inherit;
	width: 100%;
	margin-top: -1px;
}
.menu-nav .menu{
	list-style: none;
	margin: 0;
	padding: 220px 60px 0;

	display: flex;
	justify-content: center;
	align-items: center;
	gap: 110px;
}

.menu-nav .menu a{
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: 3.2rem;
}

.menu-nav .current-menu-item > a,
.menu-nav .current_page_item > a{
  color: var(--brand);
}

/* login testuale */
.menu-login {
	display: block;
	margin-top: 90px;

	text-decoration: none;
	color: var(--text);

	font-weight: 700;
	font-size: 2.5rem;

	text-align: left;
	padding: 5px 60px;
}


/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 980px){
  :root{
    --pad-x: 18px;
    --bar-h: 110px;
    --wave-h: 220px;
    --open-extra: 420px;
  }

  .menu-nav .menu{
    flex-direction: column;
    gap: 24px;
  }

  .menu-login{
    margin-top: 40px;
    text-align: center;
    padding-left: 0;
  }
	
}
@media (max-width: 1150px){
	.menu-nav::after {
	  background: url("assets/images/wave.svg") no-repeat center center / cover;
	  aspect-ratio: 1366/272;
	  background-position: -5vw;
	}
}
@media (max-width: 700px){
	.menu-nav::after {
	  background-position: -1vw;
	  aspect-ratio: 1366/372;
	}
	.site-header__bar {
		padding: 18px 20px 0;
	}
}
@media (max-width: 400px){
	.menu-nav::after {
	  aspect-ratio: 1366/472;
	}
}

/* motion */
@media (prefers-reduced-motion: reduce){
  .menu-nav{ transition: none; }
}




#colophon {
	background: var(--brand);
	font-size: 1.6rem;
	padding: 0 0 40px;
	color: #fff;
	position: relative;
}
#colophon a {
	color: #fff;
}
#menu-footer ul {
	list-style: none;
	text-align: right;
	padding: 0;
	margin: 15px 0;
}
#menu-footer li:last-child {
	margin-top: 4.6rem;
	font-weight: 700;
}
#colophon::before {
	content: "";
	width: 100%;
	position: absolute;
	left: 0;
	top: -49px;
	background: url("assets/images/curva-b.svg") no-repeat top center / cover;
	height: 60px;
}



.hero {
	height: 100vh;
}

.heroSwiper,
.heroSwiper .swiper-slide {
	height: 100%;
}

.heroSwiper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero__content {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px;
	color: #fff;
	background: linear-gradient( to right, rgba(0,0,0,0.9), rgba(0,0,0,.1) );
}

.heroSwiper .swiper-wrapper {
	position: relative;
}
#sliderBottom {
	position: absolute;
	bottom: -1px;
	z-index: 1;
	width: 100%;
	height: auto;
}
.heroSwiper .swiper-pagination {
	text-align: left !important;
	padding: 0 60px !important;
	box-sizing: border-box;
	bottom: 70px !important;
}
.heroSwiper .swiper-pagination-bullet {
	width: 18px;
	height: 18px;
	margin: 0 6px;
	opacity: 1;
	background-color: #fff;
}
/* bullet attivo */
.heroSwiper .swiper-pagination-bullet.swiper-pagination-bullet-active {
	background-color: var(--brand);
}

.heroSwiper .swiper-button-prev,
.heroSwiper .swiper-button-next {
	width: 44px;
	height: 44px;
	border-radius: 0;
	background: transparent;
	border: 0;
	color: var(--text);
}
.heroSwiper .swiper-button-prev::after,
.heroSwiper .swiper-button-next::after {
	font-size: 18px;
	color: #fff;
}
.heroSwiper .swiper-button-prev {
	right: 120px !important;
	left: inherit !important;
	top: inherit !important;
	bottom: 40px !important;
}
.heroSwiper .swiper-button-next {
	right: 60px !important;
	left: inherit !important;
	top: inherit !important;
	bottom: 40px !important;
}
.heroSwiper p {
	font-size: 5.2rem;
	line-height: 5.5rem;
	font-weight: 700;
}




.heroPages {
	position: relative;
	width: 100%;
	aspect-ratio: 1366/463;
	overflow: hidden;
}
.heroPages .wp-post-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}




@media (max-width: 1200px){
	.heroSwiper #sliderBottom {
		width: 140%;
		height: auto;
		max-width: inherit;
		right: 0;
	}
	.heroPages {
		aspect-ratio: 1366/800;
	}
}
@media (max-width: 700px){
	.heroSwiper #sliderBottom {
		width: 250%;
		height: auto;
		max-width: inherit;
		right: 0;
	}
	.heroPages {
		aspect-ratio: 1366/1100;
	}
	.heroSwiper p {
		font-size: 3.2rem;
		line-height: 3.5rem;
	}
	
	.heroSwiper .swiper-button-next {
		right: 10px !important;
		bottom: 10px !important;
	}
	.heroSwiper .swiper-button-prev {
		right: 60px !important;
		bottom: 10px !important;
	}
	.heroSwiper .swiper-pagination {
		bottom: 120px !important;
		padding: 0 40px !important;
	}
	.hero__content {
		padding: 40px;
	}
}
@media (max-width: 400px){
	.heroPages {
		aspect-ratio: 1366/1366;
  	}
}

	
	




/* ===== ACF Gallery Grid ===== */
.acfGallery {
	margin: 20px 0;
}
.acfGallery__grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

/* box “fisso” con ratio */
.acfGallery__item{
  margin: 0;
  position: relative;
  overflow: hidden;
  background: #f2f2f2;
  aspect-ratio: 1 / .9;
}

/* immagine adattata al box */
.acfGallery__item img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;            /* oppure contain se NON vuoi tagli */
  display: block;
}

/* ===== Responsive ===== */
@media (max-width: 768px){
  .acfGallery__grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/*
@media (max-width: 420px){
  .acfGallery__grid{ grid-template-columns: 1fr; }
}
*/








.serviziGrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px;
}

/* CARD */
.servizioCard {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: #fff;
	overflow: hidden;
	background: #000; /* fallback */
}

.servizioCard:hover {
	transform: translateY(-7px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
/* fascia rossa sopra */
.servizioCard__top {
	background: var(--brand);
	padding: 26px 26px 0;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0;
}

.servizioCard__title {
	margin: 0 0 10px;
	font-size: 2.3rem;
	font-weight: 700;
}

.servizioCard__cta {
	display: inline-block;
}

.servizioCard__arrow {
	flex: 0 0 auto;
	color: #fff;
	transform: translateX(0);
	transition: transform .2s ease;
}
.servizioCard:hover .servizioCard__arrow {
  transform: translateX(6px);
}

/* immagine sotto */
.servizioCard__media {
	position: relative;
	width: 100%;
	aspect-ratio: 34 / 23;
	background: #111;
}

.servizioCard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;   /* si adatta al box */
	display: block;
}
.servizioCard__media svg {
	position: absolute;
	top: -4px;
	width: 100%;
}

/* responsive */
@media (max-width: 980px){
  .serviziGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .serviziGrid{ grid-template-columns: 1fr; }
  .servizioCard__top{ padding: 20px; }
}




#back {
	color: var(--text);
}
#back svg {
	vertical-align: middle;
}




.sec__due_colonne svg {
	display
}




.wpcf7 input:not([type="radio"]),
.wpcf7 textarea {
	border: 1px solid #DBDBDB;
	padding: 13px 13px;
	background: #fff;
}
.btn-submit {
	background: transparent;
	border: 0;
	margin: 0;
	padding: 0;
	text-transform: uppercase;
	float: right;
}
.btn-submit svg {
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
}




.amem-form {
	max-width: 400px;
}
.amem-form input {
	padding: 15px 20px !important;
}
.amem-form .amem-btn {
	background: var(--brand);
	border-radius: 0;
	margin: 20px 0;
}
.amem-form .amem-btn:hover {
	background: var(--text);
}
.amem-form .amem-local-field,
.amem-form .amem-forgotpwd-wrap {
	font-size: 1.4rem;
}
.amem-form .acf-label {
	margin: 0 !important;
}
.amem-form .amem-submit.acf-form-submit .amem-center {
	text-align: left;
}




.reservedDocs {
	background: #f5f5f5;
	border-left: 6px solid var(--brand);
	padding: 34px;
}
.reservedDocs h2 {
	margin-top: 0;
	margin-bottom: 24px;
	font-weight: 700;
	color: var(--brand);
}
.reservedDocs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.reservedDocs__item {
	margin: 0;
	padding: 0;
}
.reservedDocs__link {
	display: grid;
	grid-template-columns: 62px minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .08);
	color: var(--text);
	text-decoration: none;
	transition: border-color .2s ease, transform .2s ease;
}
.reservedDocs__link:hover {
	border-color: var(--brand);
	color: var(--text);
	transform: translateY(-2px);
}
.reservedDocs__fileIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 62px;
	min-height: 44px;
	background: var(--brand);
	color: #fff;
	font-size: 1.2rem;
	line-height: 1;
	font-weight: 700;
	text-transform: uppercase;
}
.reservedDocs__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}
.reservedDocs__title {
	font-size: 1.7rem;
	line-height: 2.3rem;
	font-weight: 700;
	overflow-wrap: anywhere;
}
.reservedDocs__meta,
.reservedDocs__action,
.reservedDocs__empty {
	font-size: 1.4rem;
	line-height: 2rem;
}
.reservedDocs__meta {
	color: rgba(0, 0, 0, .58);
}
.reservedDocs__action {
	color: var(--brand);
	font-weight: 700;
	text-transform: uppercase;
	white-space: nowrap;
}
.reservedDocs__empty {
	margin: 0;
}





/* ===== Reveal base ===== */
.reveal{
  opacity: 0;
  transform: translate3d(0, 0, 0);
  filter: blur(6px);
  transition-property: opacity, transform, filter;
  transition-duration: .6s;
  transition-timing-function: ease;
  will-change: opacity, transform, filter;
}

/* Direzioni (stato iniziale) */
.reveal[data-anim="up"]    { transform: translate3d(0, 30px, 0); }
.reveal[data-anim="down"]  { transform: translate3d(0,-30px, 0); }
.reveal[data-anim="left"]  { transform: translate3d(30px, 0, 0); }  /* entra da destra verso sx */
.reveal[data-anim="right"] { transform: translate3d(-30px,0, 0); }  /* entra da sx verso dx */
.reveal[data-anim="none"]  { transform: none; filter: none; }

/* In view */
.reveal.is-in{
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

/* Accessibilità  */
@media (prefers-reduced-motion: reduce){
  .reveal{
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}








@media (max-width: 768px) {
	
	h1 {
		font-size: 3.2rem;
		line-height: 3.5rem;
	}
	h2 {
		font-size: 2.2rem;
		line-height: 3rem;
	}
	#home p {
		font-size: 2rem;
		line-height: 3rem;
	}
	
	.page-head__logo img {
		max-width: 140px;
	}
	.page-head__right {
		gap: 10px;
	}
	
	headMenu a {
		width: 24px;
		height: 24px;
		padding: 5px;
	}
	
	.menu-login {
		padding: 20px;
	}

	.reservedDocs {
		margin-top: 30px;
		padding: 24px;
	}
	.reservedDocs__link {
		grid-template-columns: 52px minmax(0, 1fr);
	}
	.reservedDocs__action {
		grid-column: 2;
	}
}
