/* ==========================================================
   BRUNO MONTANI — STILE GENERALE
   Home + pagina Libri
   ========================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --content-width: 1400px;
  --gutter: clamp(24px, 5vw, 180px);
  --gap: 8px;

  --page-bg: #f5f3f1;
  --text: #222222;
  --dark: #1d1b18;
  --light: #ffffff;
  --header-gray: #a9aaad;

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  font-size: 100%;
  height: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.home-main {
  flex: 1;
}

/* FASCIA SUPERIORE E NAVIGAZIONE -------------------------- */

.announcement {
  width: 100%;
  min-height: 52px;
  background: var(--dark);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  min-height: 52px;
  margin: 0 auto;
}

.top-nav a,
.footer-nav a {
  color: var(--light);
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.top-nav .is-current,
.footer-nav .is-current {
  color: #FF9E50;
}

/* HOME — HERO --------------------------------------------- */

.hero {
  height: 439px;
}

.hero__placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  background: url("../images/hero.jpg") left center / cover no-repeat;
}

.hero-copy {
  position: absolute;
  top: 40px;
  left: max(var(--gutter), calc((100vw - var(--content-width)) / 2));
}

.site-title {
  margin: 0;
  color: var(--light);
  font-size: 3rem;
  font-weight: 200;
  line-height: 1;
}

.hero-subtitle {
  margin: 10px 0 0 0;
  font-size: 1.25rem;
  font-weight: 200;
  line-height: 1.4;
  color: rgb(249, 192, 149);
}

/* HOME — MENU VISIVO -------------------------------------- */

.visual-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin: -60px auto 0;
}

.visual-card {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  background: #cfcaca;
  text-decoration: none;
}

.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.projects {
  background: #d2cfcd;
}

.books {
  background: #c7c3c0;
}

.profile {
  background: #bbb6b2;
}

.visual-card span {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  color: #FFD483;
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* PAGINE INTERNE — TESTATA -------------------------------- */


.page-header {
  position: relative;
  width: 100%;
  height: 360px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Banner specifici */
.banner-home {
  background-image: url("../images/hero.jpg");
}

.banner-libri {
  background-image: url("../images/banner-libri.jpg");
}

.banner-progetti {
  background-image: url("../images/banner_progetto.png");
}

.banner-percorso {
  background-image: url("../images/banner_percorso.png");
}

.page-header__name {
  position: absolute;
  top: 58px;
  left: max(var(--gutter), calc((100vw - var(--content-width)) / 2));
  color: var(--light);
  font-size: 3rem;
  font-weight: 200;
  line-height: 1;
  text-decoration: none;
}

.page-header__title {
  position: absolute;
  left: max(var(--gutter), calc((100vw - var(--content-width)) / 2));
  bottom: 18px;
  color: #FF9E50;
  font-size: 3rem;
  font-weight: 200;
  line-height: 1;
}

/* PAGINA LIBRI -------------------------------------------- */

.books-page {
  width: 100%;
  padding: 42px var(--gutter) 70px;
  background: var(--light);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(48px, 5vw, 88px);
  row-gap: 80px;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}


/* SINGOLO LIBRO ------------------------------------------- */

.book {
  display: grid;
  grid-template-columns: minmax(200px, 255px) minmax(0, 1fr);
  column-gap: clamp(24px, 2vw, 34px);
  align-items: stretch;
  min-width: 0;
}

/* COPERTINA ------------------------------------------------ */

.book__cover {
  width: 100%;
  max-width: 255px;
  margin: 0;
  aspect-ratio: 148 / 210;
  overflow: hidden;
  background: #ffffff;
}

.book__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}


.book__visual {
  width: 100%;
  min-width: 0;
}

.book__isbn {
  margin-top: 9px;
  color: #666666;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-style: oblique;
  font-weight: 100;
  line-height: 1;
  letter-spacing: 0.04em;
}

.book-detail__intro strong,
.book-detail__notes strong {
  font-weight: 600;
}

/* TESTI ---------------------------------------------------- */

.book__details {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
}

.book__title {
  margin: -5px 0 30px;
  color: #6C6C6C;
  font-size: clamp(2rem, 2.15vw, 2.75rem);
  font-weight: 200;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.book__synopsis {
  min-width: 0;
}

.book__synopsis h3 {
  margin-bottom: 5px;
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.book__synopsis p {
  width: 100%;
  max-width: 35ch;

  font-size: 1rem;
  font-weight: 300;
  line-height: 1.62;

  text-align: justify;
  text-justify: inter-word;

  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

/* DOWNLOAD ------------------------------------------------- */

.book__download {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.2;
  text-align: right;
  text-decoration: none;
  text-transform: uppercase;
}

.book__download:hover,
.book__download:focus-visible {
  text-decoration: underline;
}

/* FOOTER --------------------------------------------------- */

.site-footer {
  width: 100%;
  min-height: 120px;
  margin-top: 60px;
  background: var(--dark);
  color: var(--light);
}

.books-page+.site-footer {
  margin-top: 0;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  min-height: 120px;
  margin: 0 auto;
  padding-bottom: 24px;
  font-size: 0.8rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

/* SCHERMI INTERMEDI --------------------------------------- */

@media (max-width: 1300px) {
  .books-grid {
    column-gap: 44px;
  }

  .page-header {
    height: 280px;
    background-position: 10% center;
  }

  .book {
    grid-template-columns: minmax(185px, 220px) minmax(0, 1fr);
    column-gap: 26px;
  }

  .book__cover {
    max-width: 220px;
  }

  .book__title {
    font-size: 2rem;
  }
}

/* TABLET --------------------------------------------------- */

@media (max-width: 1050px) {
  .hero {
    height: 420px;
  }

  .page-header {
    height: 280px;
    background-position: 10% center;
  }

  .visual-menu {
    grid-template-columns: 1fr;
    margin-top: -60px;
  }

  .visual-card {
    height: 280px;
  }

  .books-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    row-gap: 70px;
  }

  .book {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    column-gap: 40px;
  }

  .book__cover {
    max-width: 280px;
  }

  .book__title {
    font-size: 2.5rem;
  }
}

/* MOBILE --------------------------------------------------- */

@media (max-width: 650px) {
  :root {
    --gutter: 20px;
  }

  .announcement {
    min-height: 48px;
  }

  .top-nav {
    width: 100%;
    min-height: 48px;
    padding: 0 var(--gutter);
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .hero {
    height: 340px;
  }

  .visual-menu {
    margin-top: -30;
  }

  .site-title,
  .page-header__name {
    top: 24px;
    left: var(--gutter);
    font-size: 2.35rem;
  }

  .page-header {
    height: 280px;
    background-position: 10% center;
  }

  .page-header__title {
    left: var(--gutter);
    bottom: 18px;
    font-size: 2.5rem;
  }

  .books-page {
    padding-top: 30px;
    padding-bottom: 50px;
  }

  .books-grid {
    row-gap: 64px;
  }

  .book {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .book__cover {
    width: min(100%, 300px);
    max-width: 300px;
  }

  .book__title {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 2.25rem;
  }

  .book__synopsis p {
    max-width: none;
  }

  .book__download {
    align-self: flex-start;
    margin-top: 28px;
    padding-top: 0;
    text-align: left;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    min-height: auto;
    padding: 28px 0;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 14px 20px;
  }
}

.book__cover a,
.book__title a {
  color: inherit;
  text-decoration: none;
}

.book__title a:hover,
.book__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}


/* PAGINA DETTAGLIO LIBRO ---------------------------------- */

.book-detail-page {
  width: 100%;
  padding: 44px var(--gutter) 80px;
  background: var(--light);
}

.book-detail {
  display: grid;
  grid-template-columns: 310px minmax(0, 680px) 310px;
  column-gap: 50px;
  row-gap: 48px;
  width: min(var(--content-width), 100%);
  margin: 0 auto;
  align-items: start;
}

.book-detail__left,
.book-detail__main,
.book-detail__meta {
  min-width: 0;
}

.book-detail__cover {
  width: 100%;
  margin: 0;
  aspect-ratio: 148 / 210;
  overflow: hidden;
  background: #f1efed;
}

.book-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-detail__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.detail-action__icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
}

.detail-action__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--text);
  font: inherit;
  text-decoration: none;
  text-align: center;
  background: none;
  border: 0;
  cursor: pointer;
}


.detail-action__label {
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.detail-action:hover .detail-action__label,
.detail-action:focus-visible .detail-action__label {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.book-detail__intro,
.book-detail__notes {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.65;
}

.book-detail__intro p+p,
.book-detail__notes p+p {
  margin-top: 1.15em;
}

.book-detail__intro h2,
.book-detail__notes h2,
.book-detail__meta h2 {
  margin-bottom: 18px;
  color: #6c6c6c;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.book-detail__intro p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.book-detail__meta {
  padding-top: 2px;
}

.book-facts {
  margin: 0;
}

.book-facts__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid #8d8d8d;
}

.book-facts dt {
  font-weight: 400;
}

.book-facts dd {
  min-width: 0;
  text-align: right;
}

.book-detail__gallery {
  grid-column: 2 / 4;
  /* display:none;*/
}

.book-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.book-gallery__item {
  min-height: 260px;
  overflow: hidden;
  background: #262321;
}

.book-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-gallery__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 260px;
  padding: 24px;
  color: #bdb7b2;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

.book-detail__notes {
  grid-column: 2 / 4;
  max-width: 850px;
}

.share-status {
  margin-top: 12px;
  color: #666;
  font-size: 0.78rem;
  text-align: center;
}

/* DETTAGLIO LIBRO — SCHERMI INTERMEDI --------------------- */

@media (max-width: 1280px) {
  .book-detail {
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    column-gap: 44px;
  }

  .book-detail__meta {
    grid-column: 2;
  }

  .book-detail__gallery,
  .book-detail__notes {
    grid-column: 1 / -1;
  }

  .book-detail__notes {
    max-width: 860px;
    margin-left: min(344px, 28vw);
  }
}

@media (max-width: 850px) {
  .book-detail-page {
    padding-top: 34px;
  }

  .book-detail {
    grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    column-gap: 32px;
  }

  .book-detail__actions {
    gap: 14px;
  }

  .book-detail__gallery,
  .book-detail__notes {
    grid-column: 1 / -1;
  }

  .book-detail__notes {
    max-width: none;
    margin-left: 0;
  }

  .book-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* DETTAGLIO LIBRO — MOBILE -------------------------------- */

@media (max-width: 650px) {
  .page-header__title--book {
    max-width: calc(100% - var(--gutter) * 2);
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    line-height: 1.05;
  }

  .book-detail-page {
    padding-top: 28px;
    padding-bottom: 54px;
  }

  .book-detail {
    grid-template-columns: 1fr;
    row-gap: 34px;
  }

  .book-detail__left,
  .book-detail__main,
  .book-detail__meta,
  .book-detail__gallery,
  .book-detail__notes {
    grid-column: 1;
  }

  .book-detail__cover {
    width: min(100%, 310px);
  }

  .book-detail__actions {
    width: min(100%, 310px);
  }

  .book-detail__intro p {
    text-align: left;
  }

  .book-gallery {
    grid-template-columns: 1fr;
  }

  .book-gallery__item,
  .book-gallery__placeholder {
    min-height: 230px;
  }
}


.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ==========================================================
   GRID
========================================================== */

.modules {

  flex: 1;

  width: min(var(--content-width), calc(100% - var(--gutter) * 2));
  margin: 36px auto 75px;

}

.module-row {

  display: flex;
  gap: 22px;
  margin-bottom: 22px;

}

/* ==========================================================
   GRIGLIA MODULARE
   gap fisso: 22px
========================================================== */

.col-25 {
  flex: 0 0 calc((100% - 66px) / 4);
}

.col-33 {
  flex: 0 0 calc((100% - 44px) / 3);
}

.col-50 {
  flex: 0 0 calc((100% - 22px) / 2);
}

.col-66 {
  flex: 0 0 calc((((100% - 44px) / 3) * 2) + 22px);
}

.project-card {

  background: var(--dark);

}

.card-image {

  height: 520px;
  overflow: hidden;

}

.card-image img {

  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;

}

.card-footer {

  display: flex;
  height: 110px;
  background: var(--dark);

}

.card-icon {

  flex: 0 0 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 8px;
  color: #ffffff;

}

.card-icon img {

  width: 50px;
  height: 50px;

}

.card-content {

  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px 24px 18px 12px;

}

.card-title {

  margin: 0 0 8px;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1.1;

}

.card-excerpt {

  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.45;

}

.project-card--square .card-image {
  aspect-ratio: 1 / 1;
  height: auto;
}

/* ==========================================================
   QUOTE MODULE 1.0
========================================================== */

.quote-module {

  height: 630px;

  background: var(--dark);

  position: relative;

  display: flex;

  justify-content: center;

  align-items: center;

  padding: 60px 45px;

  box-sizing: border-box;

  overflow: hidden;

  text-align: center;

}

.quote-text {

  margin: 0;

  width: 82%;

  color: #FF6E00;

  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  font-size: 2.1rem;

  font-weight: 300;

  line-height: 1.20;

  letter-spacing: 1px;

}

.quote-mark {

  position: absolute;

  font-family: Georgia, serif;

  font-size: 199px;

  line-height: 1;

  color: #FF6E00;

  user-select: none;

}

.quote-open {

  top: 28px;

  left: 28px;

}

.quote-close {

  right: 28px;

  bottom: -10px;

}

.quote-author {

  position: absolute;

  right: 34px;
  bottom: 42px;

  margin: 0;

  text-align: right;

  color: rgb(249, 247, 245);

  font-size: .78rem;

  font-style: italic;

  font-weight: 300;

  line-height: 1.35;

}



/* ==========================================================
   MODULI RESPONSIVE v1
   ========================================================== */

@media (max-width:1050px) {

  .modules {
    width: min(760px, calc(100% - var(--gutter) * 2));
  }

  .module-row {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 44px;
  }

  .module-row:last-child {
    margin-bottom: 0;
  }

  .col-33,
  .col-50,
  .col-66 {
    flex: 0 0 auto;
    width: 100%;
  }

  .card-image {
    height: 430px;
  }

  .card-footer {
    height: 110px;
  }

  .quote-module {
    height: 540px;
  }
}

@media (max-width:650px) {

  .modules {
    width: calc(100% - var(--gutter) * 2);
    margin: 28px auto 55px;
  }

  .module-row {
    margin-bottom: 34px;
    gap: 18px;
  }

  .card-image {
    height: 300px;
  }

  .card-footer {
    height: 110px;
  }

  .card-content {
    justify-content: center;
    padding: 8px 24px 8px 12px;
  }

  .quote-module {
    height: 360px;
    padding: 40px 30px;
  }

  .quote-text {
    width: 90%;
    font-size: 1.45rem;
  }

  .quote-mark {
    font-size: 120px;
  }
}


/* ===== TEMPLATE PROGETTI ===== */
.project-detail {

  grid-template-columns:
    calc((((100% - 22px) / 3) * 2)) calc((100% - 22px) / 3);

  column-gap: 22px;

}

.project-detail .book-detail__cover {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.project-detail .book-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-detail .book-detail__notes {
  grid-column: 1;
  max-width: 926px;
  margin-left: 0;
}

.project-gallery {
  grid-column: 1 / -1;
}

.project-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-gallery__item {
  aspect-ratio: 3/2;
  overflow: hidden;
  background: #eee;
}

.project-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width:1050px) {
  .project-detail {
    grid-template-columns: 1fr;
  }

  .project-detail .book-detail__notes {
    max-width: none;
  }

  .project-gallery__grid {
    grid-template-columns: 1fr;
  }
}

.gallery-2 {
  grid-template-columns: repeat(2, 1fr);
}

/* ===========================
   PAGINE TESTUALI
=========================== */

.page-content {

  width: 100%;
  padding: 80px 30px 100px;

}

.text-page {

  max-width: 800px;
  margin: 0 auto;

}

.text-page h1 {

  margin: 0 0 40px;

  font-size: 2.3rem;
  font-weight: 300;
  line-height: 1.15;

}

.text-page h2 {

  margin: 55px 0 20px;

  font-size: 1.45rem;
  font-weight: 500;

}

.text-page p {

  margin: 0 0 1.4em;

  font-size: 1.08rem;
  line-height: 1.9;

}

.text-page ul {

  margin: 0 0 1.6em 1.4em;

}

.text-page li {

  margin-bottom: .6em;
  line-height: 1.8;

}

.text-page strong {

  font-weight: 600;

}

.text-page a {

  color: var(--accent);
  text-decoration: none;

}

.text-page a:hover {

  text-decoration: underline;

}


/* ===========================
   TABLET
=========================== */

@media (max-width:1050px) {

  .page-content {

    padding: 70px 28px 90px;

  }

}


/* ===========================
   SMARTPHONE
=========================== */

@media (max-width:650px) {

  .page-content {

    padding: 50px 22px 70px;

  }

  .text-page h1 {

    font-size: 1.9rem;

  }

  .text-page p {

    font-size: 1rem;
    line-height: 1.8;

  }


}

/* ==========================================================
   LEGAL BAR
========================================================== */

.legal-footer {

  width: 100%;

  background: #161412;
  /* leggermente più scuro del footer */

  border-top: 1px solid rgba(255, 255, 255, .08);

}

.legal-footer-inner {

  width: min(var(--content-width), calc(100% - var(--gutter) * 2));

  margin: 0 auto;

  height: 42px;

  display: flex;

  justify-content: center;

  align-items: center;

  gap: 10px;

  font-size: .72rem;

  font-weight: 300;

  letter-spacing: .02em;

}

.legal-footer a {

  color: rgba(255, 255, 255, .60);

  text-decoration: none;

  transition: .2s;

}

.legal-footer a:hover {

  color: #ffffff;

  text-decoration: none;

}

.legal-footer span {

  color: rgba(255, 255, 255, .28);

}

@media (max-width:650px) {

  .legal-footer-inner {

    height: auto;

    padding: 12px 0;

    flex-wrap: wrap;

    line-height: 1.8;

  }

}

/*SOTTOLINEATURA LINKS*/

.footer-nav a,
.top-nav a,
.legal-footer a {

  position: relative;
  text-decoration: none;
  transition: color .25s ease;

}

.footer-nav a::after,
.top-nav a::after,
.legal-footer a::after {

  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .80s ease;

}

.footer-nav a:hover::after,
.top-nav a:hover::after,
.legal-footer a:hover::after {

  width: 100%;

}

/* ==========================================
   PAGINA PERCORSO
========================================== */

.percorso-page {

  max-width: 1400px;
  margin: 70px auto 100px;
  padding: 0 30px;

}

.percorso-intro {

  display: flex;
  gap: 40px;
  align-items: flex-start;

}

.percorso-text {

  flex: 1;

}

.percorso-text h1 {

  margin: 0 0 28px;
  font-size: 3rem;
  font-weight: 100;
  line-height: 1.05;

}

.percorso-text p {

  text-align: justify;
  hyphens: auto;
  line-height: 1.8;

}

.percorso-image {

  flex: 0 0 460px;
  margin-top: 68px;

}

.percorso-image img {

  width: 100%;
  display: block;

}

.communication-path {
    display: inline-block;
    font-size: 1.05rem;
}

.communication-path strong {
    font-weight: 600;
}

.communication-path em {
    font-weight: 300;
    font-style: italic;
}


/* ==========================================
   TABLET
========================================== */

@media (max-width:1050px) {

  .percorso-page {

    padding: 0 24px;

  }

  .percorso-intro {

    flex-direction: column;
    gap: 40px;

  }

  .percorso-image {

    order: -1;
    flex: none;
    width: 420px;
    max-width: 100%;
    margin: 0 auto;

  }

}


/* ==========================================
   SMARTPHONE
========================================== */

@media (max-width:650px) {

  .percorso-page {

    margin: 45px auto 70px;
    padding: 0 18px;

  }

  .percorso-text h1 {

    font-size: 2.35rem;

  }

  .percorso-image {

    width: 100%;
    max-width: none;
    height: 400px;
    margin: 0;

  }

  .percorso-image img {

    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;

  }
}

/* ==========================================
   PAGINA PORTFOLIO COLORE SFONDO ANTRACITE
========================================== */


body.portfolio-page {
  background: #1d1b18
    /* !important;*/
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 60px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}