/* RESET */

@font-face {
  font-family: "Special Gothic";
  src: url("../fonts/SpecialGothic-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Special Gothic Expanded";
  src: url("../fonts/SpecialGothicExpandedOne-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "General Sans Italic";
  src: url("../fonts/GeneralSans-VariableItalic.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: auto !important;
}

header.header button {
  all: unset;
  cursor: pointer;
}

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

body.blog {
  font-family: "General Sans", Helvetica, Arial, sans-serif;
  background: #e8e7e6;
  color: #000;
  overflow-x: hidden;
}

/* BOX PRINCIPALE (per allineare i contenuti centrati) */
.container {
  max-width: 1250px;
  margin: 0 auto;
  /*padding: 0 8vw;*/
}

/* SECTION (full width) */
section {
  width: 100%;
  padding: 120px 0;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 8vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  transition: background 0.4s ease, color 0.4s ease;
}

/* HEADER SCROLLATO */
.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.logo img {
  transition: filter 0.4s ease;
  width:100%;
}

/* cambia il logo quando scrolli (se hai logo nero/bianco) */
.header.scrolled .logo img {
  filter: brightness(0);
}

.logo {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 1.2rem;
  max-width: 75%;
}

/* BURGER */
header.header .burger {
	width: 40px;
	height: 40px;
	border: none;
	background: transparent;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	cursor: pointer;
	z-index: 2100;
}

header.header .burger span {
	display: block;
	height: 3px;
	width: 100%;
	background: #000;
	border-radius: 3px;
	transition: all 0.3s ease;
}

header.header:has(.burger.active) {
	z-index: 2100;
}

header.header:has(.burger.active) .logo {
	opacity: 0;
}

header.header:has(.burger.active).scrolled {
	background: none;
}

.header.scrolled .burger span {
	background: #000;
}

.burger.active span:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
	opacity: 0;
}
.burger.active span:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

.menu-full {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("../img/sfondomenu.jpg");
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	z-index: 2050;
}

.menu-full li {
	list-style: none;
}

.menu-full.active {
	opacity: 1;
	visibility: visible;
}

.menu-inner {
	display: flex;
	flex-direction: column;
	gap: 50px;
	text-align: center;
}

.apgrade-menu a:link, .apgrade-menu a:visited {
	font-size: clamp(2rem, 6vw, 4rem);
	text-decoration: none;
	color: #fff;
	font-weight: 700;
	letter-spacing: 2px;
}

.menu-anchor {
	position:absolute;
	margin-top: -100px;
}

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 120px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/gradiente1.png');
  background-position: center center;
  background-repeat: no-repeat;
  pointer-events: none;
  background-size: 1200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 8vw;
  width: 100%;
}

.hero-title {
  font-family: "Special Gothic Expanded", Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 6.7vw, 7rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 35px;
  overflow: hidden;
  padding:10px;
  color: #750093;
}

/* caratteri */
.hero-title .char {
  display: inline-block;
  transform: translateY(120%);
  opacity: 0;
}

.hero-subtitle {
  font-family: "Special Gothic Expanded", Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 500;
  opacity: 0;
  transform: translateY(20px);
  text-align: center;
  color: #750093;
}

.hero-subtitle-txt {
  border: 1px solid #750093;
  padding: 20px 60px;
  border-radius: 45px;
  display: inline-block;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  opacity: 0.8;
  animation: float 2.5s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.arrow {
  width: 18px;
  height: 18px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  animation: down 1.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes down {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(6px); }
}

/* TICKER */
.ticker {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: ticker-scroll 25s linear infinite;
}

.ticker.reverse .ticker__track {
  animation-direction: reverse;
}

.ticker span {
  font-size: 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ticker img {
  height: 140px;
  object-fit: contain;
}

/*.ticker:hover .ticker__track {
animation-play-state: paused;
}*/

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker__track img {
	max-width: none;
}

/* CONTENT */
.content {
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 25px;
}

.content p {
  font-size: 1.8rem;
  line-height: 1.5;
  margin-bottom: 30px;
  opacity: 0;
}

/* SECTION TITLE */
.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 30px;
  opacity: 0;
}

#section1 {
  /*! margin: 0; */
  /*! max-width: 900px; */
  /*padding: 0 8vw;*/
}

#section2 {
  padding: 0;
}

#section3 {
  /*padding: 0;*/
  display: flex;
  flex-direction: column;
  align-items: end;
  margin-bottom:0;
}

/* GALLERY */

.container-gallery {
  background-image: url(../img/gradiente4l.png);
  background-repeat: no-repeat;
  background-position: bottom left;
  background-size: 800px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 100px;
  margin: 60px 0;
}

.card {
  position: relative;
  width: 300px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease, filter 0.4s ease;
  height: 533px;
}

.card.middle {
  transform: translateY(50px);
}

.card:hover {
  transform: translateY(-10px);
  filter: brightness(1.1);
}

.card-text {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 2;
  font-size: 16px;
}

.card-title {
  font-family: "Special Gothic Expanded";
  font-weight: 800;
}

.card-subtitle {
  opacity: 0.8;
}

.card-link:link, .card-link:visited {
  color: black;
}

.dicover-more{
  font: normal normal bold 70px/80px "Special Gothic Expanded";
  letter-spacing: 0px;
  color: #000000;
  opacity: 1;
  border-bottom: 2px solid #707070;
  padding-bottom: 40px;
  margin-bottom: 120px;
  display: flex;
  justify-content: space-between;
}

.dicover-more a:link, .dicover-more a:hover {
  color: black;
  text-decoration: none;
}

.box-customers {
  text-align: center;
}

.box-customers img {
  margin: 50px 40px;
  vertical-align: middle;
}

.contacts {
  text-align: center;
  font: normal normal bold 70px/80px "Special Gothic Expanded";
  letter-spacing: 0px;
  color: #000000;
  opacity: 1;
  width: 100%;
  margin: 80px 0 50px;
  color: #750093;
}

.pre-footer {
  /*background-image: url(../img/gradiente4l.png);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 800px;*/
}

.pf-list {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #707070;
  margin-bottom: 30px;
  align-items: end;
  width: 100%;
  /* AGGIUNTA TOGGLE: permetti al pannello di andare a capo sotto */
  flex-wrap: wrap;
}

.pf-list p {
  max-width: 1000px;
  font-size: 38px;
}

.pf-list a:link, .pf-list a:visited {
  margin-bottom:30px;
  text-decoration: none;
  font-size: 20px;
  color: black;
}

/* AGGIUNTA TOGGLE: stile link trigger e freccia */
.pf-list .pf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.pf-list .pf-toggle .pf-arrow {
  width: 45px;
  transition: transform 0.25s ease;
  transform-origin: 50% 50%;
}
.pf-list .pf-toggle[aria-expanded="true"] .pf-arrow {
  transform: rotate(180deg);
}

/* AGGIUNTA TOGGLE: pannello nascosto compatibile con flex */
.pf-more {
  flex-basis: 100%;     /* va a capo sotto p + link */
  overflow: hidden;
  max-height: 0;        /* chiuso */
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  padding-top: 0;       /* niente spazio da chiuso */
}
.pf-more.is-open {
  max-height: 600px;    /* valore sufficiente per il contenuto (puoi aumentare) */
  opacity: 1;
  padding-top: 10px;    /* un po' di spazio quando aperto */
}
.pf-more p {
  font-size: 20px;
  line-height: 1.5;
  margin: 0 0 20px 0;
}

.box-contatti {
  font-size: 30px;
  font-weight: 500;
  margin: 50px 100px;
}

.box-contatti a:link, .box-contatti a:visited {
  color: black;
  text-decoration: none;
}

.box-customers img {
  margin: 20px 2%;
  vertical-align: middle;
  width: 15%;
}

/* FOOTER */
footer {
  padding: 15px;
  text-align: center;
  font-size: 1.2rem;
  color: #000;
  /*margin-top: 50px;*/
}

footer a:link, footer a:visited {
  color: #750093;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-bg {
    background-size: 500px;
  }
  
  .hero {
    min-height: 60vh;
  }
  
  .hero-title {
    display: block;
    max-width: 1250px;
    width:100%;
    font-size: 25px;
    margin-bottom: 5px;
    text-align: center;
  }
  
  .hero-subtitle {
    font-size: 13px;
    max-width: 90%;
    margin: 0 auto;
  }
  
  .hero-subtitle-txt {
    padding: 5px 10px;
  }
  
  .scroll-indicator{
  	bottom: 10px;
    left: 10px;
  }
  
  .scroll-indicator img{
  	width: 40px;
  }
  
  .ticker img {
    height: 50px;
  }
  
  .content {
    margin: 20px auto;
  }
  
  .content p {
    font-size: 13px;
  }
  
  .pf-list p {
    max-width: 350px;
  }
  
  .pf-list .pf-toggle .pf-arrow {
    width: 25px;
  }

  .more-text {
  	display: none;
  }
  
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 25px auto 50px;
    width: 90%;
    place-items: center;
    gap: 1rem;
  }

  .card {
    width: 90px;
    height: 160px;
  }
  
  .card-text {
    left: 5px;
    bottom: 5px;
    font-size: 8px;
  }
  
  .container-gallery {
    background-image: none;
  }
  
  .card.middle {
    transform: translateY(25px);
  }

  #section1 {
    max-width: 100%;
    padding: 0 8vw;
  }
  
  .contacts {
    font-size: 25px;
    line-height: 35px;
    margin: 30px 0 20px 0;
  }
  
  .box-contatti {
    font-size: 15px;
    margin: 30px 20px;
  }
  
  .box-contatti img {
    height: 25px;
    margin-right: 10px;
  }
  
  footer {
    font-size: 10px;
    margin-top: 10px;
  }
}

/* BLOG */

.blog-container{
  max-width:1200px;
  margin:auto;
  padding:120px 20px 60px;
}

.blog-layout{
  display:block; /* rimuove layout sidebar */
}

.blog-posts{
  display:grid;
  grid-template-columns:repeat(3,1fr); /* 3 colonne */
  gap:40px;
}

.post-card{
  border:1px solid #eee;
  border-radius:8px;
  overflow:hidden;
  background:white;
  transition:transform .25s ease, box-shadow .25s ease;
}

.post-card:hover{
  transform:translateY(-5px);
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.post-thumb img{
  width:100%;
  display:block;
}

.post-info{
  padding:20px;
}

.post-info h2{
  font-size:20px;
  margin-bottom:10px;
}

.post-meta{
  font-size:13px;
  opacity:.7;
  margin-bottom:10px;
}

.post-excerpt{
  font-size:14px;
  line-height:1.4;
}

/*.single-container{
  max-width:900px;
  margin:auto;
  padding:140px 20px 60px;
}*/

.single-post {
  padding: 40px 20px;
}

/* TABLET */
@media (max-width: 1024px){
  .blog-posts{
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* MOBILE */
@media (max-width: 600px){
	.blog-posts{
		grid-template-columns: repeat(2, 1fr); /* 2 colonne */
		gap: 15px;
  	}
	
	.post-info{
		padding:12px;
	}

	.post-info h2{
		font-size:16px;
		line-height: 22px;
	}

	.post-excerpt{
		font-size:12px;
	}
}