﻿/* ==========================================================
   MEDIA AGENCY
   HOME
   ========================================================== */

.mda-home-main {
 width: 100%;
}


/* ==========================================================
   HERO
   ========================================================== */

.mda-home-hero {
 position: relative;
 width: 100%;
 overflow: hidden;
 background: #ffffff;
 padding: 8px 0 24px;
}


/* ==========================================================
   CONTENITORE HERO
   ========================================================== */

.mda-hero-container {
 display: grid;
 grid-template-columns: minmax(0, 38%) minmax(0, 62%);
 align-items: center;
 width: 100%;
 margin: 0;
}


/* ==========================================================
   HERO - TESTO
   ========================================================== */

.mda-hero-content {
 display: flex;
 flex-direction: column;
 justify-content: center;
 width: 100%;
 max-width: 620px;
 margin-left: auto;
 padding: 35px 35px 35px 65px;
}


.mda-hero-eyebrow {
 margin-bottom: 18px;
 color: var(--mda-orange);
 font-size: 12px;
 font-weight: 800;
 letter-spacing: 2px;
}


.mda-hero-title {
 margin: 0 0 24px;
 color: #222222;
 font-size: clamp(52px, 4.15vw, 74px);
 font-weight: 700;
 line-height: 0.96;
 letter-spacing: -2.5px;
}


 .mda-hero-title span {
  display: block;
  color: var(--mda-orange);
  font-weight: 700;
 }


/* ==========================================================
   TESTI HERO
   ========================================================== */

.mda-hero-lead {
 max-width: 540px;
 margin: 0 0 14px;
 color: #2e2e2e;
 font-size: 21px;
 font-weight: 600;
 line-height: 1.4;
}


.mda-hero-description {
 max-width: 540px;
 margin: 0 0 27px;
 color: #69635f;
 font-size: 15px;
 font-weight: 400;
 line-height: 1.65;
}


/* ==========================================================
   PULSANTI HERO
   ========================================================== */

.mda-hero-actions {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 12px;
}


.mda-hero-btn-primary,
.mda-hero-btn-secondary {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 46px;
 padding: 11px 22px;
 border-radius: 6px;
 font-size: 14px;
 font-weight: 700;
 text-decoration: none;
 transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}


/* pulsante principale */

.mda-hero-btn-primary {
 gap: 8px;
 background: var(--mda-orange);
 color: #ffffff;
}


 .mda-hero-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(244, 123, 32, 0.22);
 }


 .mda-hero-btn-primary i {
  transition: transform 0.2s ease;
 }


 .mda-hero-btn-primary:hover i {
  transform: translateX(4px);
 }


/* pulsante secondario */

.mda-hero-btn-secondary {
 border: 1px solid #d9d3ce;
 background: #ffffff;
 color: #343434;
}


 .mda-hero-btn-secondary:hover {
  border-color: var(--mda-orange);
  color: var(--mda-orange);
 }


/* ==========================================================
   NOTA SOTTO I PULSANTI
   ========================================================== */

.mda-hero-note {
 display: flex;
 align-items: center;
 gap: 12px;
 margin-top: 25px;
 color: #89827d;
 font-size: 12px;
 line-height: 1.4;
}


.mda-hero-note-line {
 display: block;
 width: 32px;
 height: 2px;
 flex: 0 0 32px;
 background: var(--mda-orange);
}


/* ==========================================================
   HERO - IMMAGINE
   ========================================================== */

.mda-hero-visual {
 position: relative;
 width: 100%;
 min-width: 0;
 overflow: hidden;
 /*
       IMPORTANTE:
       bianco sotto alla trasparenza della WebP.
    */
 background: #ffffff;
}


.mda-hero-photo {
 display: block;
 width: 100%;
 height: auto;
 /*
       Manteniamo esattamente le proporzioni
       originali della WebP: 1273 x 728.
    */
 aspect-ratio: 1273 / 728;
 object-fit: contain;
 object-position: center center;
}


/* ==========================================================
   SEZIONI GENERICHE DELLA HOME
   ========================================================== */

.mda-home-section {
 padding: 85px 0;
}


.mda-home-section-light {
 background: #fffdfb;
}


.mda-home-section-soft {
 background: #f7f3ef;
}


/* ==========================================================
   DESKTOP INTERMEDIO
   da 992px a 1399px
   ========================================================== */

@media (max-width: 1399.98px) {

 .mda-home-hero {
  padding: 18px 0 28px;
 }


 .mda-hero-container {
  grid-template-columns: minmax(0, 41%) minmax(0, 59%);
 }


 .mda-hero-content {
  max-width: 600px;
  padding: 30px 35px 30px 30px;
 }


 .mda-hero-title {
  font-size: clamp(46px, 4.5vw, 64px);
 }


 .mda-hero-lead {
  font-size: 19px;
 }
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

 .mda-home-hero {
  padding: 35px 0 0;
 }


 .mda-hero-container {
  display: flex;
  flex-direction: column;
  width: 100%;
 }


 .mda-hero-content {
  order: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 35px 42px;
 }


 .mda-hero-visual {
  order: 2;
  width: 100%;
  background: #ffffff;
 }


 .mda-hero-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1273 / 728;
  object-fit: contain;
 }


 .mda-hero-title {
  font-size: clamp(45px, 8vw, 66px);
 }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

 .mda-home-hero {
  padding-top: 25px;
 }


 .mda-hero-content {
  padding: 15px 20px 35px;
 }


 .mda-hero-eyebrow {
  margin-bottom: 14px;
  font-size: 10.5px;
 }


 .mda-hero-title {
  margin-bottom: 20px;
  font-size: clamp(40px, 13vw, 55px);
  letter-spacing: -1.5px;
 }


 .mda-hero-lead {
  font-size: 19px;
 }


 .mda-hero-description {
  font-size: 14.5px;
  line-height: 1.65;
 }


 .mda-hero-actions {
  flex-direction: column;
  align-items: stretch;
 }


 .mda-hero-btn-primary,
 .mda-hero-btn-secondary {
  width: 100%;
 }


 .mda-hero-note {
  margin-top: 24px;
 }


 .mda-home-section {
  padding: 55px 0;
 }
}


/* ==========================================================
   SMARTPHONE PICCOLO
   ========================================================== */

@media (max-width: 479.98px) {

 .mda-home-hero {
  padding-top: 20px;
 }


 .mda-hero-content {
  padding: 10px 16px 30px;
 }


 .mda-hero-title {
  font-size: 40px;
 }


 .mda-hero-lead {
  font-size: 18px;
 }


 .mda-hero-description {
  font-size: 14px;
 }
}



/* ==========================================================
   HOME - UN'UNICA REGIA
   ========================================================== */

.mda-regia-section {
 position: relative;
 background: #f7f3ef;
 border-top: 1px solid #eee6df;
 overflow: hidden;
}


 /* piccolo elemento decorativo */

 .mda-regia-section::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -100px;
  width: 330px;
  height: 330px;
  border: 60px solid rgba(244, 123, 32, 0.035);
  border-radius: 50%;
  pointer-events: none;
 }


/* ==========================================================
   TESTATA
   ========================================================== */

.mda-regia-header {
 position: relative;
 max-width: 880px;
 margin-bottom: 55px;
}


.mda-regia-eyebrow {
 display: block;
 margin-bottom: 10px;
 color: var(--mda-orange);
 font-size: 11px;
 font-weight: 800;
 letter-spacing: 2px;
}


.mda-regia-title {
 margin: 0 0 20px;
 color: #232323;
 font-size: clamp(38px, 4vw, 58px);
 font-weight: 700;
 line-height: 1.05;
 letter-spacing: -1.8px;
}


 .mda-regia-title span {
  display: block;
  color: var(--mda-orange);
 }


.mda-regia-intro {
 max-width: 720px;
 margin: 0;
 color: #6d665f;
 font-size: 17px;
 line-height: 1.7;
}


/* ==========================================================
   FLUSSO PRINCIPALE
   ========================================================== */

.mda-regia-flow {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr) 60px minmax(0, 1fr);
 align-items: stretch;
 gap: 0;
 margin-bottom: 42px;
}


/* ==========================================================
   BLOCCO
   ========================================================== */

.mda-regia-step {
 position: relative;
 display: flex;
 gap: 16px;
 min-height: 180px;
 padding: 24px;
 background: rgba(255, 255, 255, 0.66);
 border: 1px solid rgba(214, 203, 194, 0.85);
 border-radius: 12px;
 transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}


 .mda-regia-step:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 123, 32, 0.35);
  background: #ffffff;
 }


.mda-regia-step-primary {
 background: #ffffff;
 border-color: rgba(244, 123, 32, 0.28);
}


/* ==========================================================
   ICONA
   ========================================================== */

.mda-regia-icon {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 48px;
 height: 48px;
 flex: 0 0 48px;
 border-radius: 50%;
 background: rgba(244, 123, 32, 0.10);
 color: var(--mda-orange);
 font-size: 20px;
}


/* ==========================================================
   TESTO STEP
   ========================================================== */

.mda-regia-step-text {
 min-width: 0;
}


.mda-regia-step-label {
 display: block;
 margin-bottom: 5px;
 color: var(--mda-orange);
 font-size: 10px;
 font-weight: 800;
 letter-spacing: 1.5px;
}


.mda-regia-step h3 {
 margin: 0 0 9px;
 color: #262626;
 font-size: 18px;
 font-weight: 700;
 line-height: 1.3;
}


.mda-regia-step p {
 margin: 0;
 color: #777069;
 font-size: 13.5px;
 line-height: 1.6;
}


/* ==========================================================
   FRECCE
   ========================================================== */

.mda-regia-arrow {
 display: flex;
 align-items: center;
 justify-content: center;
 color: var(--mda-orange);
 font-size: 22px;
}


 .mda-regia-arrow i {
  opacity: 0.72;
 }


/* ==========================================================
   COMPETENZE
   ========================================================== */

.mda-regia-competences {
 position: relative;
 padding: 28px 30px;
 background: #ffffff;
 border-radius: 12px;
 border: 1px solid #ece4dd;
}


.mda-regia-competences-label {
 margin-bottom: 16px;
 color: #4a4541;
 font-size: 13px;
 font-weight: 700;
}


.mda-regia-tags {
 display: flex;
 flex-wrap: wrap;
 gap: 9px;
}


.mda-regia-tag {
 display: inline-flex;
 align-items: center;
 gap: 7px;
 min-height: 36px;
 padding: 8px 13px;
 border: 1px solid #e8dfd8;
 border-radius: 100px;
 background: #fffdfb;
 color: #4e4945;
 font-size: 12.5px;
 font-weight: 600;
 white-space: nowrap;
 transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}


 .mda-regia-tag i {
  color: var(--mda-orange);
  font-size: 14px;
 }


 .mda-regia-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(244, 123, 32, 0.40);
  color: var(--mda-orange);
 }


/* ==========================================================
   CHIUSURA
   ========================================================== */

.mda-regia-bottom {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 35px;
 margin-top: 32px;
 padding-top: 25px;
 border-top: 1px solid #ded5cd;
}


 .mda-regia-bottom p {
  max-width: 700px;
  margin: 0;
  color: #716a64;
  font-size: 14px;
  line-height: 1.6;
 }


.mda-regia-link {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 flex-shrink: 0;
 color: var(--mda-orange);
 font-size: 13.5px;
 font-weight: 700;
 text-decoration: none;
}


 .mda-regia-link i {
  transition: transform 0.2s ease;
 }


 .mda-regia-link:hover {
  color: var(--mda-orange);
 }


  .mda-regia-link:hover i {
   transform: translateX(4px);
  }


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

 .mda-regia-header {
  margin-bottom: 38px;
 }


 .mda-regia-flow {
  grid-template-columns: 1fr;
  gap: 14px;
 }


 .mda-regia-arrow {
  height: 25px;
  transform: rotate(90deg);
 }


 .mda-regia-step {
  min-height: 0;
 }


 .mda-regia-bottom {
  align-items: flex-start;
  flex-direction: column;
  gap: 16px;
 }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

 .mda-regia-title {
  font-size: clamp(34px, 10vw, 46px);
  letter-spacing: -1px;
 }


 .mda-regia-intro {
  font-size: 15px;
 }


 .mda-regia-step {
  padding: 20px;
  gap: 13px;
 }


 .mda-regia-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  font-size: 18px;
 }


 .mda-regia-step h3 {
  font-size: 16px;
 }


 .mda-regia-competences {
  padding: 22px 18px;
 }


 .mda-regia-tags {
  gap: 7px;
 }


 .mda-regia-tag {
  font-size: 12px;
 }
}