/* ============================================================
   N2H4 - override del template Agntix (caricato per ultimo)
   ============================================================ */

/* HERO: titolo grande la meta' (100 -> 50) e proporzioni responsive */
.creative-2-hero-title { font-size: 50px !important; }
@media (min-width:1200px) and (max-width:1399px){ .creative-2-hero-title{ font-size:40px !important; } }
@media (min-width:768px) and (max-width:991px){ .creative-2-hero-title{ font-size:45px !important; } }
@media (max-width:767px){ .creative-2-hero-title{ font-size:35px !important; } }

/* OUR SERVICES: titoli a 80px (e proporzioni responsive) */
.creative-service-item.about-us-4 .creative-service-title,
.creative-service-title { font-size: 80px !important; }
@media (min-width:1200px) and (max-width:1399px){
  .creative-service-item.about-us-4 .creative-service-title,
  .creative-service-title{ font-size:64px !important; } }
@media (min-width:992px) and (max-width:1199px){
  .creative-service-item.about-us-4 .creative-service-title,
  .creative-service-title{ font-size:60px !important; } }
@media (max-width:767px){
  .creative-service-item.about-us-4 .creative-service-title,
  .creative-service-title{ font-size:44px !important; } }

/* WORK SHOWCASE: immagini piu' piccole e uniformi (4 colonne) */
.creative-project-2-style .creative-project-title-sm { font-size: 20px; }

/* TESTIMONIALS: badge/card della stessa altezza */
.creative-testimonial-active .swiper-slide { height: auto; }
.creative-testimonial-item {
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-start;
  min-height: 220px;
}
.creative-testimonial-avater-info h4 { font-size: 26px !important; line-height: 1.2; }
.creative-testimonial-text p { font-size: 20px !important; font-weight: 500; }

/* ===== Articolo: "Altri articoli" - 2 colonne x 5 righe ===== */
ul.skills.other-articles {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}
ul.skills.other-articles li {
  font-size: 16px;
  padding-left: 10px;
  margin-left: 30px;
  margin-bottom: 8px;
  break-inside: avoid;
}
ul.skills.other-articles li a { font-size: 16px; }

/* ===== Card collaboratori/clienti (tp-service-4-solution) ===== */
.tp-service-4-solution-item {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 30px;
  height: 100%;
}
.tp-service-4-solution-item-title {
  font-family: var(--tp-ff-grotesk);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.34px;
  margin-bottom: 14px;
  color: #030303;
}
.tp-service-4-solution-item-content p,
.tp-service-4-solution-item-content div { color: #555; }
/* nel carosello testimonial le slide stessa altezza */
.creative-testimonial-active .swiper-slide { height: auto; }


/* ===== About-us: card collaboratori tutte alte uguali ===== */
.tp-service-4-solution-slider .row { display: flex; flex-wrap: wrap; }
.tp-service-4-solution-slider .row > [class*="col-"] { display: flex; }
.tp-service-4-solution-slider .tp-service-4-solution-item { width: 100%; height: 100%; }

/* ===== About-us: spaziatura uniforme tra le card (gutter uguale su tutti i lati) ===== */
.tp-service-4-solution-slider .row { row-gap: 0; }
.tp-service-4-solution-slider .row > [class*="col-"] { padding: 12px; }
.tp-service-4-solution-slider .tp-service-4-solution-item { margin: 0; }

/* ===== Home "Discover my Creative Expertise": cornice e card uniformi ===== */
.creative-project-2-style .creative-project-item {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  height: 100%;
  box-shadow: 0 6px 22px rgba(0,0,0,0.08);
  transition: box-shadow .25s ease, transform .25s ease;
}
.creative-project-2-style .creative-project-item:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  transform: translateY(-4px);
}
.creative-project-2-style .creative-project-thumb {
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;          /* altezza COSTANTE per tutte le card */
  padding: 20px;          /* margine interno per i loghi */
}
.creative-project-2-style .creative-project-thumb img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;    /* logo intero, mai tagliato */
  display: block;
}
.creative-project-2-style .creative-project-content {
  padding: 14px 6px 4px;
}
.creative-project-2-style .creative-project-title-sm {
  font-size: 18px;
  line-height: 1.3;
  margin: 0;
}
/* righe a card di pari altezza */
.creative-project-2-style .row.gx-40 { display: flex; flex-wrap: wrap; }
.creative-project-2-style .row.gx-40 > [class*="col-"] { display: flex; margin-bottom: 8px; }

/* ============================================================
   PROGETTO.ASPX - scheda cliente creativa
   ============================================================ */
.prj-hero { padding-top: 180px; }
.prj-hero-title {
  font-family: var(--tp-ff-grotesk);
  font-size: 72px; line-height: 1.05; font-weight: 700;
  letter-spacing: -0.03em; margin: 8px 0 18px;
}
@media (max-width:991px){ .prj-hero-title{ font-size:48px; } }
@media (max-width:575px){ .prj-hero-title{ font-size:36px; } }
.prj-hero-occhiello { font-size: 22px; color: #555; max-width: 900px; margin-bottom: 50px; }

.prj-cover { margin-bottom: 70px; }
.prj-cover-frame {
  border-radius: 18px; overflow: hidden; background: #f6f6f9;
  aspect-ratio: 16 / 7; box-shadow: 0 20px 60px rgba(0,0,0,0.10);
}
.prj-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.prj-body { padding-bottom: 70px; }

.prj-meta {
  position: sticky; top: 110px;
  background: #fff; border: 1px solid #ececec; border-radius: 16px;
  padding: 26px; box-shadow: 0 6px 24px rgba(0,0,0,0.05);
}
.prj-meta-title {
  font-family: var(--tp-ff-grotesk);
  font-size: 16px; text-transform: uppercase; letter-spacing: .08em;
  color: #999; margin: 0 0 12px;
}
.prj-meta-list { list-style: none; padding: 0; margin: 0 0 26px; }
.prj-meta-list li { margin-bottom: 6px; }
.prj-meta-list a { font-size: 18px; font-weight: 600; word-break: break-word; }
.prj-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.prj-skill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #f1f1f4; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
}
.prj-share-btn {
  display: inline-block; margin: 0 6px 6px 0; padding: 6px 14px;
  border: 1px solid #ddd; border-radius: 999px; font-size: 13px;
}
.prj-share-btn:hover { background: #111; color: #fff; border-color:#111; }

.prj-section-title {
  font-family: var(--tp-ff-grotesk); font-size: 34px; font-weight: 700;
  margin: 20px 0 30px;
}
.prj-gallery-wrap { padding-bottom: 90px; }
.prj-gallery { columns: 3; column-gap: 18px; }
@media (max-width:991px){ .prj-gallery{ columns:2; } }
@media (max-width:575px){ .prj-gallery{ columns:1; } }
.prj-gallery-item { break-inside: avoid; margin: 0 0 18px; }
.prj-gallery-link { display: block; border-radius: 14px; overflow: hidden; }
.prj-gallery-item img {
  width: 100%; display: block; border-radius: 14px;
  transition: transform .4s ease;
}
.prj-gallery-item:hover img { transform: scale(1.04); }
.prj-gallery-cap { font-size: 13px; color: #888; margin-top: 8px; }

.prj-cta { padding-bottom: 100px; }


/* ============================================================
   PORTFOLIO - titolo cliente (Teko, nero, underline verde su hover)
   ============================================================ */
.creative-project-content .prj-title-hl,
.creative-project-content .prj-title-hl span {
  font-family: var(--tp-ff-teko) !important;
  letter-spacing: 0px !important;
  font-size: 26px !important;
  font-weight: 450 !important;
  color: var(--tp-common-black) !important;
}
/* evidenziatore verde che si riempie da sinistra su hover */
.creative-project-content .prj-title-hl span {
  background-image: linear-gradient(var(--tp-common-green-light), var(--tp-common-green-light));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 100%;
  transition: background-size .35s ease;
  padding: 0 2px;
}
.creative-project-item:hover .prj-title-hl span,
.creative-project-content .prj-title-hl:hover span {
  background-size: 100% 100%;
}


/* ===== Progetto: descrizione (stile pp-service-details-overview) + badge "La Storia" ===== */
.prj-desc.pp-service-details-overview-wrapper { padding-right: 10px; color: #333; }
.prj-desc.pp-service-details-overview-wrapper p {
  font-size: 18px; font-weight: 500; margin-bottom: 45px; line-height: 1.75;
  color: var(--tp-common-black);
}
.prj-desc.pp-service-details-overview-wrapper h4 {
  font-size: 34px; font-weight: 500; margin-bottom: 20px;
  color: var(--tp-common-black); font-family: var(--tp-ff-teko);
}
.prj-desc img { max-width: 100%; height: auto; border-radius: 12px; }

/* etichetta "La Storia": pillola gialla, testo nero, SVG a punta in basso */
.prj-storia-heading { margin: 50px 0 24px; }
.prj-storia-badge {
  position: relative;
  display: inline-block;
  font-family: var(--tp-ff-p);
  font-size: 16px; font-weight: 600;
  letter-spacing: -0.16px; text-transform: uppercase;
  color: #0E0F11;
  padding: 16px 29px;
  border-radius: 56px;
  border: 1px solid #FFF669;
  background: var(--tp-common-yellow-1, #FFF669);
}
.prj-storia-badge svg { position: absolute; bottom: -13px; right: -13px; }
.prj-storia-testo { font-size: 18px; line-height: 1.75; color: var(--tp-common-black); }

/* ===== Progetto: CTA "E tu cosa aspetti?" (adattata al tema chiaro) ===== */
.prj-storia-testo + .pp-service-details-process-bottom { margin-top: 40px; }
.pp-service-details-process-bottom {
  font-size: 20px;
  font-weight: 500;
  color: var(--tp-common-black);
}
.pp-service-details-process-bottom span {
  color: var(--tp-common-black);
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
}
.pp-service-details-process-bottom span a {
  color: #0E0F11;
  font-weight: 600;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity .2s ease;
}
.pp-service-details-process-bottom span a svg {
  margin-right: 0;
  margin-top: 2px;
  flex: 0 0 auto;
  vertical-align: middle;
}
.pp-service-details-process-bottom span a:hover { opacity: .7; }

/* ===== Titoli globali: font Teko con dimensioni fisse ===== */
h1 { font-family: var(--tp-ff-teko) !important; font-size: 70px; }
h2 { font-family: var(--tp-ff-teko) !important; font-size: 60px; }
h3 { font-family: var(--tp-ff-teko) !important; font-size: 50px; }
h4 { font-family: var(--tp-ff-teko) !important; font-size: 40px; }

/* ===== About: settori come bottoni yellow-green (fix altezza per lo swap) ===== */
.section-title + .row .tp-btn-yellow-green,
.row.wow .tp-btn-yellow-green {
  margin-top: 8px;
}
.row.wow .tp-btn-yellow-green span {
  display: block;
  line-height: 1.25;
}
/* lo span text-2 sale al posto del text-1 su hover: serve un'altezza coerente */
.row.wow .tp-btn-yellow-green span span.text-1,
.row.wow .tp-btn-yellow-green span span.text-2 {
  line-height: 1.25;
}


/* ============================================================
   SPIGOLATURE - griglia 4 colonne con reveal a comparsa
   ============================================================ */
.spigolature-grid { margin-top: 0; }
.spigolature-grid > [class*="col-"] { display: flex; margin-bottom: 30px; }
.spigolatura-card {
  width: 100%;
  height: 100%;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.05);
  transition: box-shadow .25s ease, transform .25s ease;
}
.spigolatura-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.10); transform: translateY(-4px); }
.spigolatura-card .tp-service-4-solution-item-title {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.15;
}
.spigolatura-card p {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0;
  /* testo troncato a 8 righe per uniformare le altezze */
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* effetto a comparsa (fade + slide-up) allo scroll */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }


/* ============================================================
   BRAND AREA - loghi strumenti (colori pieni sempre, zoom su hover) + caption
   ============================================================ */
.creative-brand-active .swiper-slide,
.creative-brand-active-2 .swiper-slide { width: auto !important; }
/* scorrimento lineare costante */
.creative-brand-active .swiper-wrapper,
.creative-brand-active-2 .swiper-wrapper { transition-timing-function: linear !important; }
/* distanza tra le due righe */
.creative-brand-active-2 { margin-top: 10px; }

.creative-brand-item {
  position: relative;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}
.creative-brand-item img,
.agntix-light .creative-brand-item img {
  height: 40px;            /* altezza esplicita: fa vedere anche gli SVG senza width/height */
  width: auto;
  max-width: 130px;
  object-fit: contain;
  filter: none !important;  /* annulla l'invert del template che rendeva invisibili i loghi scuri */
  transition: transform .3s ease;   /* solo zoom */
}
.creative-brand-item:hover img { transform: scale(1.12); }

/* caption a comparsa su hover */
.creative-brand-item .brand-caption {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: #111;
  padding: 4px 10px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 5;
}
.creative-brand-item:hover .brand-caption {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
