@font-face {
  font-family: "ApfelGrotezk";
  src: url("fonts/ApfelGrotezk-Regular.woff2") format("woff2"),
       url("fonts/ApfelGrotezk-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ApfelGrotezk Fett – titoli */
@font-face {
  font-family: "ApfelGrotezk";
  src: url("fonts/ApfelGrotezk-Fett.woff2") format("woff2"),
       url("fonts/ApfelGrotezk-Fett.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}



body {
  font-family: "ApfelGrotezk", system-ui, -apple-system, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
	padding: 0;
	margin: 0;
	font-size: 27px;
	line-height: 32px;
	color: #FFF;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}


.h1-home {
	font-size: 28px!important;
	line-height: 33px!important;
	padding: 0!important;
	margin: 0!important;
	font-weight: 400;
}

.h2-home {
	font-size: 65px!important;
	line-height: 67px!important;
	color: #FFF;
}

.p-home {
	font-size: 28px!important;
	line-height: 33px!important;
	padding: 0!important;
	margin: 0!important;
}

footer {
	color: #FFF;
}

footer a{
	color: #FFF;
	text-decoration: none;
}

.footer-sx  {
	position: absolute;
	width: 40%;
	left: 0; 
	bottom: 28px;
	z-index: 99999;
	font-size: 16px;
	line-height: 19px;
	padding-left: 90px;
}
.footer-sx img {
	width: 50px;
	position:absolute;
	left: 30px;
	bottom: -15px;
}

.footer-dx  {
	position: absolute;
	width: 40%;
	right: 30px; 
	bottom: 20px;
	z-index: 99999;
	font-size: 16px;
	line-height: 19px;
	text-align: end;
}

.dots {
  bottom: 32px!important;
}

.cotaniner-btn-home {
	text-align: center;
	justify-content: center;
	height: auto;
	padding-top: 20px;
}

/*.btn-home {
	font-size: 18px;
	line-height: 18px;
	font-weight: 700;
	border: 2px dotted #FFF;
	padding: 15px 30px 15px 30px;
	text-align: center;
	min-width: 200px;
	background: none;
	color: #FFF;
	border-radius: 30px;
	margin-top: 15px;

}*/

.btn-home {
  touch-action: auto!important;
}

.btn-home {
	font-size: 18px;
	line-height: 18px;
	font-weight: 700;
	border: 2px dotted #FFF;
	padding: 15px 30px 15px 30px;
	text-align: center;
	min-width: 200px;
	background: none;
	color: #FFF;
	border-radius: 30px;
	margin-top: 15px;
	position: relative;
	z-index: 10;
	-webkit-tap-highlight-color: transparent;

}	
	
.btn-home:hover {
	border: 2px solid #FFF;
}


.btn-rocket{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate; /* mantiene i layer ordinati */
}

/* il razzo */
.btn-rocket::after{

  content:"";
  position:absolute;
  width:42px;
  height:42px;
  background: url("link/razzo.svg") center/contain no-repeat;

  /* PATH: 200x52 con angoli r=26 */
  offset-path: path("M 26 0 H 174 A 26 26 0 0 1 200 26 V 26 A 26 26 0 0 1 174 52 H 26 A 26 26 0 0 1 0 26 V 26 A 26 26 0 0 1 26 0 Z");
  offset-distance: 0%;
  offset-rotate: auto;
  transform: translate(-50%, -50%);

  animation: rocket-orbit 2.8s linear infinite;
  pointer-events:none;
  z-index:2;
	left: 0;
}
@keyframes rocket-orbit{ to{ offset-distance:100%; } }

.btn-rocket:hover::after{
  transform: translate(-50%, -50%) scale(1.3);
	top:-3px;
}


/*menu*/


/* ===============================
   HEADER
   =============================== */
.site-header{
  position: fixed;
  top: 15px;
  left: 0;
  right: 0;
  z-index: 99999;

  height: 80px;
  padding: 0 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: rgba(0,0,0,0)!important;                 /* ✅ trasparente iniziale */
  transition: background 200ms ease, backdrop-filter 200ms ease;
}

/* colore SOLO dopo scroll */
.site-header.is-scrolled{
  background: rgba(255,255,255,0.92);       /* cambia colore qui */
  backdrop-filter: blur(8px);               /* opzionale */
}

/* logo */
.logo{
  text-decoration: none;
  color: #FFF;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
	height: 80px;
}




/* ===============================
   MENU BUTTON
   =============================== */
.menu-btn{
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  color: #FFF;
  margin-right: 17PX;
  margin-top: -7px;	
}

.menu-icon{
  width: 26px;
  height: 3px;
  background: currentColor;
  position: relative;
  display: inline-block;
}
.menu-icon::before,
.menu-icon::after{
  content:"";
  position:absolute;
  left:0;
  width:100%;
  height:3px;
  background: currentColor;
}
.menu-icon::before{ top:-8px; }
.menu-icon::after { top: 8px; }


.menu-ruota { 
	position:absolute;
	z-index: 9999;
	right: 30px;
	height: 80px;
	width: 80px;
}
.menu-ruota img {
	height: 80px;
	width: 80px;
	 display: block;
  animation: spin 12s linear infinite;
  transform-origin: center center;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* ===============================
   OVERLAY MENU
   =============================== */
.menu-overlay{
  /*position: fixed;*/
position: sticky!important;
  inset: 0;
  z-index: 99999;
  display: none;
  background: rgba(0,0,0,0.92);
  color: #fff;
	height: 100vh!important;
}

.menu-overlay.is-open{ display: block; }

.menu-close{
  position: absolute;
  top: 14px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
}

/* menu verticale */
.menu-nav{
  min-height: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.menu-nav a{
  color: #fff;
  text-decoration: none;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.05;
}

.menu-nav a:hover{ text-decoration: underline; }




/*cursore del muose*/

/* Nascondi il cursore di sistema SOLO quando JS aggiunge questa classe */
html.cursor-ready,
html.cursor-ready body{
  cursor: none;
}

/* cerchio */
.ctp-cursor{
  position: fixed;
  left: 0; top: 0;
  width: 30px; height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  z-index: 2147483647; /* sopra a tutto */
  opacity: 1;          /* <-- fondamentale: non lo nascondiamo */
  background: transparent;
  will-change: transform, width, height;
  transition: width .18s ease, height .18s ease, background-color .18s ease, border-width .18s ease;
}

/* su elementi cliccabili: pallino pieno 5px */
.ctp-cursor.is-clickable{
  width: 5px;
  height: 5px;
  border-width: 0;
  background: #fff;
}

/* su touch: disabilita */
@media (pointer: coarse){
  html.cursor-ready, html.cursor-ready body{ cursor:auto; }
  .ctp-cursor{ display:none; }
}




@media (min-width: 1200px) {
  /* desktop grandi */
}



@media (min-width: 992px) and (max-width: 1199px) {
  /* laptop */
}


@media (min-width: 768px) and (max-width: 991px) {
  /* tablet */
}



@media (min-width: 576px) and (max-width: 767px) {
  /* telefoni grandi */
}


@media (max-width: 991px) {

.h1-home {
	font-size: 23px!important;
	line-height: 28px!important;
}	
	
.h2-home {
	font-size: 55px!important;
	line-height: 57px!important;
}	
	

.p-home {
	font-size: 23px!important;
	line-height: 28px!important;
}	


.footer-sx  {
	display: none;
}
.footer-sx img {
	width: 50px;
	position:absolute;
	left: 30px;
	bottom: -15px;
}

.footer-dx  {
	width: 100%;
	right: 0;
	left: 0;
	bottom: 15px;
	z-index: 99999;
	font-size: 14px;
	line-height: 17px;
	text-align: center;
}	

.dots {
  bottom: 100px!important;
}	
	
	
}

@media (max-width: 767px) {

}


@media (max-width: 575px) {
	
	.h1-home {
	font-size: 21px!important;
	line-height: 24px!important;
}	
	
.h2-home {
	font-size: 37px!important;
	line-height: 39px!important;
}	
	

.p-home {
	font-size: 21px!important;
	line-height: 24px!important;
}	



.footer-dx  {

	font-size: 12px;
	line-height: 15px;
}	
	
}




/*page*/


/* full width */
.container-fluid{
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  min-height: 100%;
	
}

/* container centrato */
.container{
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
  box-sizing: border-box;
min-height: 100vh;
	
	padding-top: 100px;
}


h1 { font-size: 60px; line-height: 65px;}
h2 { font-size: 30px; line-height: 33px; color: #fde17e;}
h3 { font-size: 45px; line-height: 48px; color: #fde17e;}

.h2-special { font-size: 50px; line-height: 53px; color: #fde17e;}



.gradient-bg{
  width: 100%;
  min-height: 100vh;
	
 filter: brightness(1.12) saturate(1.05);	

  /* base piena: così non diventa mai bianco */
  background-color: #bf324a;

  /* 4 “macchie” (senza 'at'), così le muoviamo con background-position */
  background-image:
    radial-gradient(circle, #ed6b27 0%, rgba(237,107,39,0) 62%),
    radial-gradient(circle, #8e22a8 0%, rgba(142,34,168,0) 62%),
    radial-gradient(circle, #e68d38 0%, rgba(230,141,56,0) 62%),
    radial-gradient(circle, #bf324a 0%, rgba(191,50,74,0) 62%);

  background-repeat: no-repeat;

  /* ogni layer è più grande del box, così copre bene gli angoli */
  background-size: 140% 140%, 140% 140%, 140% 140%, 140% 140%;

  /* posizioni iniziali (4 angoli) */
  background-position:
    0% 0%,
    100% 0%,
    100% 100%,
    0% 100%;

  animation: cornersRotate 12s linear infinite;
}

@keyframes cornersRotate{
 
  0%{
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
  }
  25%{
    background-position: 100% 0%, 100% 100%, 0% 100%, 0% 0%;
  }
  50%{
    background-position: 100% 100%, 0% 100%, 0% 0%, 100% 0%;
  }
  75%{
    background-position: 0% 100%, 0% 0%, 100% 0%, 100% 100%;
  }
  100%{
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 100%;
  }
}

@media (prefers-reduced-motion: reduce){
  .gradient-bg{ animation: none; }
}







/*

.footer-page {
	position: relative;
	width: 100%;
}

.footer-page .footer-sx {
	position: relative;
	float: left;
}

.footer-page .footer-dx {
	position: relative;
	float: left;
}*/




/* =========================
   FIX FOOTER SOLO PAGINE INTERNE
   (senza toccare footer.php e home)
   ========================= */

/* 1) evita scroll laterale */
body.page-interna{
  overflow-x: hidden;
}

/* 2) footer full width come in home anche se sta dentro .container */
body.page-interna footer{
  position: relative !important;

  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);

  /* stessa “fascia” della home */
  height: 80px;           /* regola se ti serve più aria */
  padding: 0;
  background: transparent;
}

/* 3) mantieni esattamente le posizioni home (absolute) ma relative al footer */
body.page-interna .footer-sx,
body.page-interna .footer-dx{
  position: absolute;  /* come in home */
}

/* (opzionale) su mobile resta come hai già */
@media (max-width: 991px){
  body.page-interna footer{ height: 110px; } /* se serve più spazio */
}



.page-interna .container {
	min-height: auto!important;
	display: flex;
  flex-wrap: wrap;
	
}


.page-interna p a {
  color: #fde17e;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.25s cubic-bezier(.22,.55,.15,1);
}

.page-interna p a:hover {
  transform: scale(1.08);
}

img {
	max-width: 100%;
}

.img-left {
	width: 100%;
	display: block;
  margin: 0 auto 0 auto;
}

.col-100 {
	width: 100%;
	float: left;
	position: relative;
}

.col-50-sx {
	width: 48%;
	float: left;
	position: relative;
	margin-right: 2%;
}
.col-50-dx {
	width: 48%;
	float: left;
	position: relative;
	margin-left: 2%;
}

body.page-contatti .container-fluid footer{
position: absolute!important;
	bottom: 0;
	display: none;
}




@media (min-width: 1200px) {
  /* desktop grandi */
}



@media (min-width: 992px) and (max-width: 1199px) {
  /* laptop */
	
	
	
	
}


@media (min-width: 768px) and (max-width: 991px) {
  /* tablet */
	
h1 { font-size: 40px; line-height: 45px;}
h2 { font-size: 20px; line-height: 24px; color: #fde17e;}
h3 { font-size: 25px; line-height: 28px; color: #fde17e;}	

.h2-special { font-size: 30px; line-height: 33px;}
	
body {

	font-size: 18px;
	line-height: 21px;

}	
	
}


@media (max-width: 767px) {

h1 { font-size: 40px; line-height: 45px;}
h2 { font-size: 20px; line-height: 24px; color: #fde17e;}
h3 { font-size: 25px; line-height: 28px; color: #fde17e;}	

.h2-special { font-size: 30px; line-height: 33px;}	
	
body {

	font-size: 18px;
	line-height: 21px;

}

.container{
	padding-top: 140px;
}	
	

.col-50-sx {
	width: 100%;
	margin-right:0;
}
.col-50-dx {
	width: 100%;
	margin-left: 0;
}	
	

.img-left {
	width: 70%;
}	
	
	
}





/* ===========================
   PROGETTI GRID
   =========================== */

.progetti-container {
  min-height: auto !important;
  padding-top: 10px !important;
  padding-bottom: 60px;
}

.progetti-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

/* sfalsamento colonna centrale */
.progetti-grid .project-card:nth-child(3n+2) {
  margin-top: 28px;
}

.project-card {
  border-radius: 20px;
  padding: 28px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s cubic-bezier(.22,.55,.15,1),
    box-shadow 0.4s cubic-bezier(.22,.55,.15,1);
}

/* alone luminoso che segue il colore della card */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.35) 0%, transparent 70%);
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

/* bordo luminoso */
.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(255,255,255,0);
  transition: border-color 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow:
    0 0 0 0px rgba(255,255,255,0),
    0 24px 60px rgba(0,0,0,0.35),
    0 8px 20px rgba(0,0,0,0.2);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card:hover::after {
  border-color: rgba(255,255,255,0.5);
}

/* glitch/shake sul logo all'hover */
.project-card:hover .card-logo img {
  animation: logoShake 0.35s cubic-bezier(.22,.55,.15,1) forwards;
}

@keyframes logoShake {
  0%   { transform: scale(1)     rotate(0deg); }
  25%  { transform: scale(1.08)  rotate(-1.5deg); }
  60%  { transform: scale(1.05)  rotate(1deg); }
  100% { transform: scale(1.04)  rotate(0deg); }
}

.card-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 18px 0;
  position: relative;
  z-index: 3;
}

.card-logo img {
  max-height: 52px;
  max-width: 75%;
  width: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.35s cubic-bezier(.22,.55,.15,1);
  will-change: transform;
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  position: relative;
  z-index: 3;
}

.card-type {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  transition: letter-spacing 0.3s ease;
}

.project-card:hover .card-type {
  letter-spacing: 0.03em;
}

.card-btn {
  font-size: 13px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  border-bottom: 1.5px solid #000;
  padding-bottom: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: opacity 0.2s ease;
}

.card-btn--light {
  color: #fff;
  border-bottom-color: #fff;
}

.card-btn:hover {
  opacity: 0.6;
}

/* tablet */
@media (min-width: 768px) and (max-width: 991px) {
  .progetti-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .progetti-grid .project-card:nth-child(3n+2) {
    margin-top: 0;
  }
  .progetti-grid .project-card:nth-child(2n) {
    margin-top: 24px;
  }

  .project-card {
    min-height: 170px;
    padding: 24px 20px 18px 20px;
  }

  .card-logo img {
    max-height: 44px;
  }

  .card-type {
    font-size: 13px;
  }
}

/* mobile */
@media (max-width: 767px) {
  .progetti-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .progetti-grid .project-card:nth-child(3n+2) {
    margin-top: 0;
  }
  .progetti-grid .project-card:nth-child(2n) {
    margin-top: 20px;
  }

  .project-card {
    min-height: 150px;
    padding: 20px 14px 16px 14px;
    border-radius: 14px;
  }

  .card-logo {
    padding: 4px 0 14px 0;
  }

  .card-logo img {
    max-height: none;
    max-width: 100%;
    width: 60%;
    height: auto;
    object-fit: contain;
  }

  .card-type {
    font-size: 11px;
    line-height: 1.2;
  }

  .card-btn {
    font-size: 11px;
  }
}

/* mobile molto piccolo */
@media (max-width: 400px) {
  .progetti-grid {
    grid-template-columns: 1fr;
  }

  .progetti-grid .project-card:nth-child(2n) {
    margin-top: 0;
  }

  .project-card {
    min-height: 130px;
  }
}
