@import url("https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,600;1,600&display=swap");

@font-face {
  font-family: "PP Formula";
  src: url("fonts/PPFormula-NarrowBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-inter: "Inter", sans-serif;
  --font-formula: "PP Formula", sans-serif;
}

/* Reset generale */
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
  font-family: var(--font-inter);
  letter-spacing: -0.05em;
  color: white;
  text-decoration: none;
  text-wrap: balance;
}
body {
  background-color: black;
}
/* Main Container */
.homeMain {
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding-top: 320px;
}

/* Hero Section */
.heroHome {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 0px 40px;
}
.headHeroHome {
  width: 100%;
}
.headHeroHome svg {
  width: 100%;
}
.wrapBodyCta {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.bodyHeroHome {
  font-family: var(--font-inter);
  font-size: 32px;
  font-weight: 400;
}
.cta {
  font-family: var(--font-inter);
  font-size: 24px;
  font-weight: 600;
  padding: 16px;
  background-color: #ff002b;
  color: black;
  width: fit-content;
  border-radius: 1000px;
  text-transform: uppercase;
}

/* Quotes Section */
.quoteHome {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 0px 40px;
}
.wrapQuoteInside {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.headQuote {
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: solid 1px white;
}
.quote {
  line-height: 0.95;
  font-weight: 600;
  font-size: 64px;
}
.red {
  color: #ff002b;
}
.italic {
  font-style: italic;
}
.nameQuote {
  line-height: 0.95;
  font-weight: 600;
  font-size: 32px;
}

/* Logos Section */
.logosSection {
  padding: 0px 40px;
  display: flex;
  flex-direction: column;
  gap: 128px;
}
.logosTitle {
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: solid 1px white;
}
.logosGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 96px;
}
.logoCard {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 80px;
  grid-column: span 1;
  width: 100%;
}
.headLogoCard {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}
.logoImage {
  height: 100%;
  width: auto;
  object-fit: contain;
  max-height: 160px;
  max-width: 100%;
}
.logoClient {
}
.logoYear {
}

/* Illustrations Section */
.illustrationsSection {
  display: flex;
  flex-direction: column;
  gap: 128px;
  padding: 0px 40px;
}
.illustrationsTitle {
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: solid 1px white;
}
.illustrationsGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 96px;
}
.illustrationCard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.headIllustrationCard {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.illustrationImage {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.illustrationTitle {
}

/* Works Section */
.worksSection {
  padding: 0px 40px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.worksTitle {
  font-size: 16px;
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: solid 1px white;
}
.worksList {
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.workCard {
}
.workMedia {
}
.workMedia a {
  width: 100%;
}
.workMedia img,
.workMedia video {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
}
.workDetails {
}
.workExtract {
}
.workTitle {
}
.workTitle a {
}
.workCategory {
}
.workYear {
}
.worksCtaWrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.worksCta {
}

/* ==========================================================================
   Clients Infinite Marquee / Ticker
   ========================================================================== */

.clientsSection {
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 128px;
}
.clientsTitle {
  font-size: 16px;
  font-weight: 400;
  margin: 0px 40px;
  padding-bottom: 8px;
  border-bottom: solid 1px white;
}
.clientsTickerContainer {
  display: flex;
  flex-direction: column;
  gap: 96px;
  width: 100%;
  overflow: hidden;
}

.tickerRow {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.tickerTrack {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: scrollTicker 30s linear infinite;
}

.tickerTrackReverse {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  animation: scrollTickerReverse 30s linear infinite;
}

/* Pause scroll when hovering over a row */
.tickerRow:hover .tickerTrack,
.tickerRow:hover .tickerTrackReverse {
}

.clientCard {
  flex-shrink: 0;
  padding-right: 3rem; /* Spacing between logos */
  display: flex;
  align-items: center;
  justify-content: center;
}

.clientLogo {
  height: 96px;
  width: auto;

  display: block;
  object-fit: contain;
}

/* Keyframes for seamless left-to-right & right-to-left infinite loop */
@keyframes scrollTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scrollTickerReverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ==========================================================================
   Flexible Content Editor Styles
   ========================================================================== */

.flexibleEditor {
  width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* --- Layout 1: Immagini & Video (12-Column Grid System) --- */
.flexibleEditor .layoutImmagini {
  width: 100%;
  margin-bottom: 2.5rem;
}

.flexibleEditor .imagesGrid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  width: 100%;
}

.flexibleEditor .imageItem {
  width: 100%;
}

.flexibleEditor .imageItem img,
.flexibleEditor .imageItem video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Column Select variations */
.flexibleEditor .colLayout48 .imageItem:nth-child(1) {
  grid-column: span 4;
}
.flexibleEditor .colLayout48 .imageItem:nth-child(2) {
  grid-column: span 8;
}

.flexibleEditor .colLayout84 .imageItem:nth-child(1) {
  grid-column: span 8;
}
.flexibleEditor .colLayout84 .imageItem:nth-child(2) {
  grid-column: span 4;
}

.flexibleEditor .colLayout66 .imageItem {
  grid-column: span 6;
}

.flexibleEditor .colLayout12Margin {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.flexibleEditor .colLayout12Margin .imageItem {
  grid-column: span 12;
}

.flexibleEditor .colLayout12Bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.flexibleEditor .colLayout12Bleed .imageItem {
  grid-column: span 12;
}

/* Responsive adjustments for columns on mobile */
@media (max-width: 768px) {
  .flexibleEditor .imagesGrid {
    grid-template-columns: repeat(12, 1fr);
  }
  .flexibleEditor .colLayout48 .imageItem,
  .flexibleEditor .colLayout84 .imageItem,
  .flexibleEditor .colLayout66 .imageItem {
    grid-column: span 12;
  }
}

/* --- Layout 2: Colori (Equal Flex Space) --- */
.flexibleEditor .layoutColori {
  width: 100%;
  margin-bottom: 2.5rem;
}

.flexibleEditor .colorsContainer {
  display: flex;
  width: 100%;
  height: 140px;
  align-items: stretch;
}

.flexibleEditor .colorItem {
  flex: 1;
  height: 100%;
  transition: flex 0.3s ease;
}

/* 'Grande' boolean flag takes double proportion of available space */
.flexibleEditor .colorItemLarge {
  flex: 2;
}

/* --- Layout 3: Sfumature (Gradient Stops) --- */
.flexibleEditor .layoutSfumature {
  width: 100%;
  margin-bottom: 2.5rem;
}

.flexibleEditor .gradientBar {
  width: 100%;
  height: 160px;
}

/* Large screens */
@media (max-width: 1440px) {
}
/* Small laptops */
@media (max-width: 1024px) {
}
/* Tablets */
@media (max-width: 768px) {
}
/* Small tablets / large phones */
@media (max-width: 640px) {
}
