/* ==========================================================
   STUDIO INDACO - CUSTOM CSS
   Joomla 4.4 / JA Purity IV (T4)
   ========================================================== */

/* 1. SEZIONE BENVENUTO */
.indaco-welcome,
.indaco-welcome * {
  box-sizing: border-box;
}

.indaco-welcome {
  background-color: #FAF9F6;
  padding: 55px 30px 40px;
}

.indaco-welcome .indaco-welcome__container {
  display: grid;
  grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.indaco-welcome .indaco-welcome__image,
.indaco-welcome .indaco-welcome__content {
  min-width: 0;
}

.indaco-welcome .indaco-welcome__image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 580px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.indaco-welcome .indaco-welcome__content {
  width: 100%;
  max-width: 580px;
}

.indaco-welcome .indaco-welcome__eyebrow {
  display: block;
  color: #687A98;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.indaco-welcome h2 {
  color: #263656;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 25px;
}

.indaco-welcome .indaco-welcome__line {
  width: 55px;
  height: 2px;
  background-color: #34456B;
  margin-bottom: 30px;
}

.indaco-welcome .indaco-welcome__description {
  color: #484D55;
  font-size: 17px;
  line-height: 1.8;
}

.indaco-welcome .indaco-welcome__description p {
  margin: 0 0 18px;
}

.indaco-welcome .indaco-welcome__description p:last-child {
  margin-bottom: 0;
}

.indaco-welcome .indaco-welcome__contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 38px;
  padding-top: 25px;
  border-top: 1px solid #DDDCD7;
}

.indaco-welcome .indaco-welcome__contacts h3 {
  color: #263656;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 10px;
}

.indaco-welcome .indaco-welcome__contacts p,
.indaco-welcome .indaco-welcome__contacts a {
  color: #555B63;
  font-size: 14px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.indaco-welcome .indaco-welcome__contacts p {
  margin: 0;
}

.indaco-welcome .indaco-welcome__contacts a {
  color: #34456B;
  text-decoration: none;
}

.indaco-welcome .indaco-welcome__contacts a:hover,
.indaco-welcome .indaco-welcome__contacts a:focus-visible {
  text-decoration: underline;
}

/* 2. TITOLO ATTIVITA' */
.blog-featured .view-masonry .page-header {
  text-align: center;
  margin: 0 auto 35px;
}

.blog-featured .view-masonry .page-header h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.3;
  text-transform: none !important;
  color: #263656;
  margin: 0;
  padding: 0;
}

.blog-featured .view-masonry .page-header::after {
  content: '';
  display: block;
  width: 55px;
  height: 2px;
  background-color: #34456B;
  margin: 25px auto 0;
}

/* 3. SPAZIATURE SEZIONI T4
   Nota: #t4-main-body e' usato anche su altre pagine.
   Manteniamo qui gli stessi valori gia' presenti nel sito. */
#t4-main-body {
  padding-top: 25px;
  padding-bottom: 40px;
}

#t4-section-2 {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* 4. CAROSELLI DELLE ATTIVITA'
   Spiritualita': 215 | Formazione: 216 | Cucito: 217
   Il selettore :is() mantiene un'unica grafica comune. */

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .owl-stage {
  display: flex;
  align-items: stretch;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .owl-item {
  display: flex;
  flex: none;
  height: auto;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #FFFFFF;
  border: 1px solid #EAE7E2;
  border-radius: 6px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-inner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(38, 54, 86, 0.10);
}

/* Fotografie con proporzioni uniformi */
:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) a.item-image {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  height: 260px;
  overflow: hidden;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) a.item-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  transition: transform 0.35s ease;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-inner:hover a.item-image img {
  transform: scale(1.04);
}

/* Testi e struttura verticale */
:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-ct {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 24px 26px;
  text-align: left;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.35;
  text-align: left;
  margin: 0 0 14px;
  color: #263656;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-title a {
  color: #263656;
  text-decoration: none;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-title a:hover,
:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-title a:focus-visible {
  color: #687A98;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-introtext {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.65;
  color: #555B63;
  text-align: left;
  margin: 0;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-meta {
  font-size: 12px;
  color: #687A98;
  margin-bottom: 10px;
}

/* Leggi tutto: collegamento autentico generato da Joomla */
:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-readmore {
  margin: auto 0 0;
  padding-top: 24px;
  text-align: left;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-readmore a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #34456B;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-readmore a::after {
  content: "\2192";
  font-size: 19px;
  line-height: 1;
  transition: transform 0.2s ease;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-readmore a:hover {
  color: #687A98;
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-readmore a:hover::after {
  transform: translateX(4px);
}

:is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-readmore a:focus-visible {
  outline: 2px solid #34456B;
  outline-offset: 4px;
}

/* 5. TABLET */
@media (min-width: 768px) and (max-width: 991px) {
  .indaco-welcome {
    padding: 55px 25px 40px;
  }

  .indaco-welcome .indaco-welcome__container {
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    gap: 30px;
  }

  .indaco-welcome .indaco-welcome__image img {
    height: 490px;
  }

  .indaco-welcome .indaco-welcome__description {
    font-size: 16px;
    line-height: 1.7;
  }

  .indaco-welcome .indaco-welcome__contacts {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* 6. SMARTPHONE */
@media (max-width: 767px) {
  .indaco-welcome {
    padding: 35px 20px;
  }

  .indaco-welcome .indaco-welcome__container {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
  }

  .indaco-welcome .indaco-welcome__image img {
    height: 350px;
  }

  .indaco-welcome h2 {
    font-size: 30px;
  }

  .indaco-welcome .indaco-welcome__description {
    font-size: 16px;
    line-height: 1.75;
  }

  .indaco-welcome .indaco-welcome__contacts {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  #t4-main-body {
    padding-top: 20px;
    padding-bottom: 30px;
  }

  :is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-ct {
    padding: 18px;
  }

  :is(#magz-layout-215, #magz-layout-216, #magz-layout-217) .item-title {
    font-size: 21px;
  }

  :is(#magz-layout-215, #magz-layout-216, #magz-layout-217) a.item-image {
    height: 220px;
  }
}
