/* 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: italic;
  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.single-clienti {
  font-family: "General Sans", Helvetica, Arial, sans-serif;
  background: #e8e7e6;
  color: #000;
  overflow-x: hidden;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.fade-text {
  opacity: 0;
}

/* 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%;
}

.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 {
	padding:0;
	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;
}

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

.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(3rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 7vw;
  margin-bottom: 65px;
  overflow: hidden;
  padding:10px;
  color: #750093;
  text-align: center;
}

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

.title {
  font-family: "Special Gothic Expanded";
  color: #750093;
}

.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 black;
  padding: 20px 60px;
  border-radius: 45px;
  display: inline-block;
}

/* SCROLL INDICATOR */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 40px;
  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;
}

.back-indicator {
  position: absolute;
  top: 165px;
  left: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  opacity: 0.8;
  animation: float 2.5s ease-in-out infinite;
}

.descr-est {
  display: none !important;
  width: 100%;
}

.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__track img {
  max-width: none;
}

/* 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%);
  }
}

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

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

.overall-content {
  background-image: url(../img/sfondo_case.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 1500px;
}

.overall-content.one-vid {
  background-image: url(../img/gradiente4l.png);
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: 700px;
}

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

#section1 {
  margin: 0 auto;
  padding: 0;
  display: flex;
}

#section1.type-2 {
  flex-direction: column;
}

#section1 #player-cont {
  width: 40%;
  min-width: 410px;
  margin-bottom: 45px;
}

#section1.type-2 #player-cont {
  width: 100%;
  min-width: 410px;
  margin: 0;
  display: flex;
  justify-content: center;
  align-content: center;
  overflow: hidden;
  height: 700px;
  background: black;
}

#section1 #player {
  max-width: 410px;
  width:100%;
}

#player-2 {
  max-width: 300px;
  width:100%;
}

#cliente {
  width: 60%;
  font-size: 36px;
}

#descr {
  width: 60%;
  font-size: 36px;
}

#descr #text-cont {
  display:flex;
  margin-bottom: 50px;
}

.descr-int {
  font-size: 36px;
  width: 80%;
}

.type-1 .descr-int {
  width: 100%;
}

#section1 #text-cont #cliente, #section1 #text-cont #talent {
  flex:1;
}

#section1 #text-cont #talent {
  padding: 0 0 0 65px;
}

#section1 #text-cont .cliente-tit {
  font-weight: bold;
}

.overall-content #descr #titolo {
  font-weight: bold;
  font-size: 45px;
  margin: 45px 0;
}

.type-1 #descr #titolo {
  font-weight: bold;
  font-size: 45px;
  margin-bottom: 45px;
}

#section2 {
  padding: 0;
}

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

/* 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 centrale più bassa di 50px */
.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;
}

.card-title {
  font-size: 16px;
  font-weight: 800;
}

.card-subtitle {
  font-size: 1rem;
  opacity: 0.8;
}

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

.back-cont img{
	width: 80px;
}

.back-cont a:link, .back-cont a:hover, .back-cont a:visited {
  color: #750093;
  text-decoration: none;
}

.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;
}

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

/*.pre-footer {
background-image: url(https://www.apgrade.net/new26/assets/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%;
}

.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;
}

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

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

.box-contatti img {
  max-height: 40px;
  margin-right: 25px;
}

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

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

/* VIDEO PREVIEW */
.video-preview {
  position: relative;
  width: 100%;
  max-width: 900px;
  aspect-ratio: 9 / 16;
  cursor: pointer;
  overflow: hidden;
}

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

/* PLAY BUTTON */
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-btn::before {
  content: "";
  width: 80px;
  height: 80px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
}

.play-btn::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent white;
  margin-left: 5px;
}

/* MODAL */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s ease;
  z-index: 5000;
}

.video-modal.active {
  opacity: 1;
  visibility: visible;
}

.video-modal-inner {
  position: relative;
  width: 50%;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal video {
  width: 50%;
  height: auto;
}

/* CLOSE */
.video-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
}


/* 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;
  }
  
  .back-indicator {
    top: 90px;
    left: 10px;
  }
  
  .scroll-indicator img{
  	width: 40px;
  	margin-bottom: 35px;
  }
  
  .back-indicator img{
  	height: 40px;
  }

  #section1 #text-cont .cliente-tit {
    font-size: 12px;
  }

  #section1 #player-cont {
    width: 20%;
    min-width: 103px;
    margin-bottom: 20px;
    margin-right: 20px;
  }
  
  #player-2 {
    max-width: 103px;
  }

  .play-btn::before {
    width: 40px;
    height: 40px;
  }

  .play-btn::after {
    border-width: 8px 0 8px 12px;
  }
  
  .ticker img {
    height: 50px;
  }
  
  .content {
    margin: 20px auto;
  }
  
  .content p {
    font-size: 13px;
  }
  
  .overall-content .content {
  	padding: 0 8vw;
  }
  
  .cliente-tit {
  	font-size: 12px;
  }

  .cliente-descr {
  	font-size: 14px;
  }

  .type-1 .descr-int {
    display: none !important;
  }
  
  .overall-content .descr-int {
    display: block !important;
    width: 100%;
    font-size: 16px;
  }

  .descr-est {
    display: block !important;
    width: 100%;
  }
  
  .overall-content #descr #titolo, .type-1 #descr #titolo {
    font-size: 18px;
  }

  .overall-content #descr #titolo {
    margin: 25px 0;
  }

  #section1.type-2 #player-cont {
    height: 200px;
  }
  
  #section2 {
    padding: 0 8vw;
  }

  .overall-content {
    background-size: 600px;
  }
  
  .overall-content.one-vid {
  	background-image: url(https://www.apgrade.net/wp-content/plugins/gs-custom-apgrade/assets/img/gradiente4l.png);
  	background-repeat: no-repeat;
    background-position: bottom right;
    background-size: 300px;

  }
  
  .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;
  }
  
  #section1.type-2 {
    padding: 0;
  }
  
  .back-cont {
    font: normal normal bold 70px/70px "Special Gothic Expanded";
    border-bottom: 1px solid #707070;
    padding: 10px 0 10px;
  }
  
  .back-cont img{
	width: 30px;
  }
  
  .contacts {
    font-size: 25px;
    line-height: 35px;
    margin: 30px 0 20px 0;
  }
	
  .socials {
	font: normal normal bold 26px/20px "Special Gothic Expanded";
	margin: 40px 0 25px;
  }
  
  .box-contatti {
    font-size: 15px;
    margin: 30px 20px;
  }
  
  .box-contatti img {
    height: 25px;
    margin-right: 10px;
  }
  
  footer {
    font-size: 10px;
    margin-top: 10px;
  }
}