
/* =========================
   TYPOGRAPHY
========================= */

h1, h2, h3, h4, h5, h6 {
  font-family: "Old Standard TT", serif;
}

p {
  margin-bottom: 1.2em;
}

h2 {
  margin-bottom: 0.6em;
}
te
/* Vertical Text */
.vertical-text h2{
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
    white-space: nowrap;
    float: right;
    font-size: 60px;
	color: #BD0F0F;
	font-weight:500;
	letter-spacing: 8px;
}

.gray-50{
    color:rgba(200, 200, 200, 200);
}

/* =========================
   GLOBAL LAYOUT
========================= */


.section-label {
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 24px !important;
}

/* base immagini */
.wp-block-post-featured-image img {
  width: 100%;
  object-fit: cover;
  transform: scale(1);
}

/* base card */
.wp-block-post {
  transition: transform 0.3s ease;
}

.wp-block-post:hover {
  transform: translateY(-4px);
}

.top-position {
  margin-top: -150px !important;
}



/* =========================
   OVERLAP / HERO OFFSET
========================= */

.overlap-section{
	margin-top:-150px !important;
	padding-left:40px !important;
	padding-right: 40px !important;
	padding-top:40px !important;
	background-color:#ffff !important;
	position: relative;
	z-index: 10 !important;
}

/* colonne sempre allineate */
.overlap-section .wp-block-columns {
  gap: 0 !important;
  align-items: flex-start; /* fondamentale */
}

/* ogni colonna */
.overlap-section .wp-block-column {
  display: flex;
  flex-direction: column;
}

/* blocco post stabile */
.overlap-section .wp-block-post {
  display: block;
  width: 100%;
}

/* immagine */
.overlap-section .wp-block-post-featured-image {
  margin: 0;
}

.overlap-section .wp-block-post-featured-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

/* titolo */
.overlap-section .wp-block-post-title {
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
  margin-top: 16px;
	padding-right:10px;
}

/* sicurezza totale */
.overlap-section ul,
.overlap-section li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================
   FRAME SECTION
========================= */

.frame-section{
	margin-top: 60px !important;
}

/* no gap */
.frame-section .wp-block-columns {
  gap: 0 !important;
}

/* colonne pulite */
.frame-section .wp-block-column {
  padding: 0 !important;
}

/* reset lista */
.frame-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* cover quadrata */
.frame-section .wp-block-cover {
  aspect-ratio: 1 / 1 !important;
  min-height: unset !important;
  height: auto !important;
  position: relative;
  overflow: hidden;
}

/* immagine */
.frame-section .wp-block-cover__image-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* hover */
.frame-section .wp-block-cover:hover .wp-block-cover__image-background {
  transform: scale(1.04);
}

/* overlay */
.frame-section .wp-block-cover__inner-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

/* titolo */
.frame-section .wp-block-post-title {
  color: #fff;
  font-size: clamp(28px, 3vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  max-width: 75%;
}

/* =========================
   EDITORIAL SECTION
========================= */

.editorial-section{
	margin-top: 60px !important;
}

/* GRID */
.editorial-section .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 !important;
}

/* RESET LIST */
.editorial-section ul,
.editorial-section li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* REMOVE GUTENBERG SPACING */
.editorial-section .wp-block-post > .wp-block-group {
  padding: 0 !important;
  gap: 0 !important;
}

/* IMAGE */
.editorial-section .wp-block-post-featured-image {
  margin: 0;
}

.editorial-section .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* HOVER */
.editorial-section .wp-block-post:hover img {
  transform: scale(1.02);
}

/* RESET TYPO SPACING */
.editorial-section .wp-block-post-title,
.editorial-section .wp-block-post-excerpt,
.editorial-section .wp-block-post-excerpt p {
  margin: 0;
}

/* TYPOGRAPHY */
.editorial-section .wp-block-post-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

/* titolo */
.editorial-section .wp-block-post-title {
  padding: 16px 16px 0px 0px;
}

/* excerpt FIX */
.editorial-section .wp-block-post-excerpt {
	font-size:13px;
  padding-left: 0px !important;
  padding-right: 16px !important;
  padding-bottom: 16px !important;
}

/* reset p */
.editorial-section .wp-block-post-excerpt p {
  margin: 0;
}

/* =========================
   RESPONSIVE
========================= */

/* tablet */
@media (max-width: 1024px) {
  .editorial-section .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* mobile */
@media (max-width: 600px) {
  .editorial-section .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .editorial-section .wp-block-post-title {
    font-size: 15px;
    line-height: 1.4;
    padding: 16px 16px 6px;
  }

  .editorial-section .wp-block-post-excerpt {
    padding: 0 16px 16px;
  }
}

/* =========================
   EVIDENZA SECTION
========================= */

/* EVIDENZA */
.evidenza-section{
	margin-top: 60px !important;
}

/* =========================
   PEOPLE SECTION
========================= */

.people-section{
	margin-top: 60px !important;
}

/* grid */
.people-section .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 !important;
}

/* reset lista */
.people-section ul,
.people-section li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* remove padding Gutenberg */
.people-section .wp-block-post > .wp-block-group {
  padding: 0 !important;
  gap: 0 !important;
}

/* IMAGE (QUADRATO) */
.people-section .wp-block-post-featured-image {
  margin: 0;
}

.people-section .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1; /* chiave */
  object-fit: cover;

  filter: grayscale(100%);
  transition: transform 0.6s ease, filter 0.4s ease;
}

/* hover */
.people-section .wp-block-post:hover img {
  transform: scale(1.02);
  filter: grayscale(0%);
}

/* TYPO RESET */
.people-section .wp-block-post-title,
.people-section .wp-block-post-excerpt,
.people-section .wp-block-post-excerpt p {
  margin: 0;
}

/* TYPOGRAPHY */
.people-section .wp-block-post-title {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
	margin-top:16px
}

/* SPACING (editoriale) */
.people-section .wp-block-post-title {
  padding: 12px 16px 4px;
	font-weight:500;
}

.people-section .wp-block-post-excerpt {
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: 16px !important;

  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .people-section .wp-block-post-template {
    grid-template-columns: 1fr;
  }

  .people-section .wp-block-post-title {
    font-size: 20px;
    padding: 16px 16px 6px;
  }
}

/* =========================
   ARCHIVIO SECTION
========================= */

/* container */
.archivio-section {
	margin-top: 60px !important;
  overflow: hidden;
}

/* scroll container */
.archivio-section .wp-block-post-template {
  display: flex;
  overflow-x: auto;
  gap: 0 !important;
  scroll-snap-type: x mandatory;

  /* UX migliore */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* hide scrollbar (optional, molto magazine) */
.archivio-section .wp-block-post-template::-webkit-scrollbar {
  display: none;
}
.archivio-section .wp-block-post-template {
  scrollbar-width: none;
}

/* card */
.archivio-section .wp-block-post {
  flex: 0 0 25%; /* 4 visibili */
  scroll-snap-align: start;
}

/* mobile */
@media (max-width: 1024px) {
  .archivio-section .wp-block-post {
    flex: 0 0 50%;
  }
}

@media (max-width: 600px) {
  .archivio-section .wp-block-post {
    flex: 0 0 85%; /* più editoriale */
  }
}

/* reset lista */
.archivio-section ul,
.archivio-section li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* remove Gutenberg spacing */
.archivio-section .wp-block-post > .wp-block-group {
  padding: 0 !important;
  gap: 0 !important;
}

/* IMAGE (QUADRATO) */
.archivio-section .wp-block-post-featured-image {
  margin: 0;
}

.archivio-section .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;

  filter: grayscale(100%);
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* hover */
.archivio-section .wp-block-post:hover img {
  transform: scale(1.02);
  filter: grayscale(0%);
}

/* TYPO RESET */
.archivio-section .wp-block-post-title,
.archivio-section .wp-block-post-excerpt,
.archivio-section .wp-block-post-excerpt p {
  margin: 0;
}

/* TYPOGRAPHY */
.archivio-section .wp-block-post-title {
  font-size: 18px !important;
  font-weight: 500;
  line-height: 1.3;
}

/* SPACING */
.archivio-section .wp-block-post-title {
  padding: 12px 16px 4px;
}

.archivio-section .wp-block-post-excerpt {
  padding-left: 16px !important;
  padding-right: 16px !important;
  padding-bottom: 16px !important;

  font-size: 13px;
  color: #666;
}

/* hover titolo */
.archivio-section .wp-block-post:hover .wp-block-post-title {
  opacity: 0.7;
}

/* === TESTO FLUIDO === */

.testo-fluido {
  /* Numero di colonne desiderate */
  column-count: 2;
  
  /* Spazio tra le colonne */
  column-gap: 40px; 
  
  /* Opzionale: una linea divisoria tra le colonne */
  /*column-rule: 1px solid #ddd;
  
  /* Impedisce interruzioni strane all'interno dei paragrafi se ne hai diversi */
  break-inside: avoid;
}

/* Responsive: sotto i 768px (tablet/mobile) torna a colonna singola */
@media (max-width: 768px) {
  .testo-fluido {
    column-count: 1;
  }
}


/* =========================
   SINGLE POST
========================= */

.single-post {
  margin: 0 !important;
  padding: 0 !important;
}

.single-post {
  height: 100vh;
  overflow: hidden; /* blocca solo nel single */
}

/* remove theme elements */
/* .single-post header, */
.single-post footer,
.single-post .hero-section,
.single-post .ct-featured-image,
.single-post .entry-header {
  display: none !important;
}

.single-post .ct-header .default-logo {
    filter: invert(1);
    max-width: 180px;
}

/* container full width */
.single-post .ct-container-full,
.single-post .entry-content {
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* logo invert */
.single-post .ct-header .default-logo {
  filter: invert(1);
}

/* =========================
   GUTENBERG CLEANUP
========================= */

.entry-content {
  /*margin: 0 !important;
  /*padding: 0 !important;
}

.entry-content.is-layout-constrained {
  gap: 0 !important;
}

.entry-content > * {
  margin: 0 !important;
}

.entry-content > *:last-child {
  margin-bottom: 0 !important;
}

/* =========================
   HORIZONTAL SCROLL SYSTEM
========================= */

/* container scroll */
.horizontal-scroll {
  display: flex;

  width: 100%;
  height: 100vh;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

/* =========================
   SLIDE
========================= */


.slide {
  min-width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex-shrink: 0;
  overflow: hidden; /* evita overflow verticale */
  align-content: center;
}

.slide {
  padding: clamp(40px, 8vh, 100px) 40px;
}

/* prima slide specifica (più aria sopra) */
.slide:first-child {
  padding-top: clamp(80px, 12vh, 140px);
}

/* =========================
   INTERNAL LAYOUT FIX
========================= */

/* IMPORTANT: evita overflow flex */
.slide > * {
  min-height: 0;
}

/* grid columns */
.slide > .wp-block-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}

/* colonne */
.slide .wp-block-column {
  margin: 0 !important;

  display: flex;
  flex-direction: column;
  justify-content: center;

  min-height: 0; /* fix overflow */
}

/* =========================
   TYPOGRAPHY
========================= */

.slide h1,
.slide h2 {
  margin-bottom: 15px;
}

.slide h3 {
  margin: 0 0 20px;
}

.slide p {
  max-width: 60%;
  font-size: 20px;
  line-height: 1.7;
}

.slide .testo-evidente {
  font-family: "Old Standard TT", serif;
  font-size: 2em;
  font-weight: 300;
  font-style: italic;
}

/* titolo post */
.slide h2 {
  font-size: clamp(3.5rem, 4.5vw, 6em);
  font-family: "Old Standard TT", serif;
  font-weight: 300;
}

/* =========================
   MEDIA CONTROL
========================= */

/* immagini safe */
.slide img {
  width: auto;
  max-width: 100%;

  max-height: 70vh;   /* non occupa tutta la slide */
  object-fit: contain;

  /*margin: clamp(20px, 5vh, 60px) 0; /* aria sopra/sotto */
  display: block;
}

/* featured image */
.horizontal-scroll .slide .wp-block-post-featured-image {
  height: 100%;
  max-height: 100%;
}

/* =========================
   EXTRA CLEANUP
========================= */

.ct-featured-image {
  display: none !important;
}

.single-post .entry-header .page-title {
  display: none !important;
}

/* === TESTO VERTICALE === */

.supervision-vertical {
    writing-mode: vertical-rl;
    transform: rotate(180deg);

    text-align: right;

    font-family: "Old Standard TT", serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.stretch-full {
    font-size: 10vh;
    line-height: 1;
}

.vertical-brand {
    font-family: "Old Standard TT", serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-bottom {
    display: flex !important;
    flex-direction: column;
    justify-content: flex-end !important;
}

.image-bottom figure {
    margin-top: auto !important;
}

.black-text-block{
	padding:40px 20px 40px 40px;
	background: #000;
	color: #fff;
}

.stand-image{
    max-width: 500px !important;
}

.img-60{
    max-width: 60% !important;
}

/* =========================
   NEWSLETTER
========================= */

/* =========================
   NEWSLETTER INLINE (ROBUST)
========================= */

/* form */
.newsletter form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

/* input (batti il tema) */
.newsletter form input[type="text"],
.newsletter form input[type="email"] {
  width: 120px;
  min-width: 100px;
  flex: 0 0 auto;

  border: none;
  border-bottom: 1px solid #000;
  background: transparent;
}

/* email leggermente più larga */
.newsletter form input[type="email"] {
  width: 160px;
}

/* checkbox */
.newsletter form .newsletter-consent {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* bottone */
.newsletter form button,
.newsletter form input[type="submit"] {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* =========================
   FOOTER
========================= */

[data-row="middle"] .ct-container {
  align-items: flex-start;
}

/* =========================
   G TRANSLATE
========================= */

.ct-widget p:empty {
  display: none;
}

.gtranslate_wrapper select {
  appearance: none;
  border: none;
  background-color: transparent;
  
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--theme-font-family);

  padding: 0 20px 0 0;
  height: auto;

  color: #3a4f66;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg width='21' height='13' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.5.379L20.621 2.5 10.5 12.621.379 2.5 2.5.379l8 8z' fill='%23000'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 8px auto;
  background-position: right 0 top 50%;
}

/* =========================
   MANIFESTO-SECTION
========================= */

.manifesto-section{
	margin-top:80px;
}

/* =========================
   CSS NUOVA VISIONE
========================= */
.wp-block-cover .hover-cover {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.wp-block-cover__inner-container .hover-cover {
    max-width: 1200px;
}

/* FRIZIONE */

.frizione {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.frizione h2 {
		display: block;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;

    font-size: clamp(32px, 4vw, 64px);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.frizione .h2-light {
    opacity: 0.5;
    font-weight: 300;
    margin-top: 10px;
}

/* ARTICLE BLOCK */

.article-block {
    margin: 120px 0;
}

.article-block img {
    width: 100%;
    height: auto;
    display: block;
}

.article-block h3 {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 400;
    margin: 20px 0 10px;
    letter-spacing: -0.01em;
}

.article-block p {
    font-size: 16px;
    opacity: 0.6;
    max-width: 600px;
}

/* ==== IMMAGINE CLICCABILE === */

.wp-block-cover {
  position: relative;
}
/* link = overlay totale */
.wp-block-post-title a {
  inset: 0;
  z-index: 3;
  display: block;
  margin-bottom: 20px;
}

/* evita che overlay blocchi */
.wp-block-cover__background {
  pointer-events: none;
}






