
/* =========================================
   STUDIO ELASTICO — MAIN CSS
   ========================================= */

/* 01 — DESIGN TOKENS */

:root {
  --green: #0DFF00;
  --ink: #171717;
  --paper: #fff;
  --line: #dedede;
  --gutter: clamp(20px, 3vw, 52px);
  --font: "articulat-cf", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

img, video {
  max-width: 100%;
}

h1, h2, h3, h4, p {
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -80px;
  background: var(--green);
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 10px;
}


/* 02 — HEADER / NAVIGATION */

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-top: 23px;
  min-height: var(--el-layout-header-height, 150px);
}

.brand {
  display: inline-flex;
}

.brand img {
  display: block;
  width: clamp(110px, 12vw, 170px);
  height: auto;
}

.primary-nav {
  display: flex;
  gap: var(--el-layout-nav-gap, 28px);
  padding-top: 10px;
}

.primary-nav a {
  font-size: var(--el-nav, 14px);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-underline-offset: .2em;
}

.menu-toggle {
  display: none;
}


/* 03 — HERO */

.hero {
  min-height: min(740px, calc(100svh - 150px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--el-layout-hero-top, 52px);
  padding-bottom: var(--el-layout-hero-bottom, 65px);
}

.hero-topline,
.hero-bottomline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.hero-topline {
  font-size: var(--el-hero-kicker, 13px);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.hero h1 {
  font-weight: 700;
  font-size: var(--el-hero, 148px);
  line-height: .93;
  letter-spacing: var(--el-track-hero, -.075em);
  margin: 50px 0;
  max-width: 100%;
  text-wrap: balance;
  hyphens: none;
}

.hero h1 span {
  color: var(--green);
}

.hero-bottomline p {
  font-size: var(--el-hero-text, 23px);
  line-height: 1.25;
  max-width: 470px;
  margin: 0;
  overflow-wrap: break-word;
}

.text-link {
  font-weight: 650;
  font-size: var(--el-hero-cta, 15px);
  padding-top: 7px;
}

.text-link span {
  margin-left: 12px;
}


/* 04 — SECTIONS */

.next-section {
  border-top: 1px solid var(--ink);
  min-height: 330px;
  padding-top: var(--el-layout-section-top, 20px);
  padding-bottom: var(--el-layout-section-bottom, 65px);
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.section-heading span {
  font-size: var(--el-section-kicker, 13px);
}

.section-heading h2 {
  font-size: var(--el-section-title, 95px);
  letter-spacing: var(--el-track-section, -.06em);
  line-height: 1;
  margin: 5px 0;
  max-width: 100%;
  text-wrap: balance;
  hyphens: none;
}

.placeholder-note {
  margin: 70px 0 0;
  color: #666;
  font-size: 16px;
}


/* 05 — SELECTED WORK
   HOME PAGE: 1:1
*/

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--el-layout-work-gap, 44px);
  row-gap: var(--el-layout-work-row-gap, 70px);
  margin-top: var(--el-layout-work-top, 50px);
}

.project-card {
  min-width: 0;
}

.project-card-link {
  display: block;
  text-decoration: none !important;
}

.project-cover {
  aspect-ratio: 1 / 1;
  background: #f0f0f0;
  overflow: hidden;
  contain: paint;
}

.project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

@media (hover: hover) {
  .project-card-link:hover .project-cover img {
    transform: scale(1.035);
  }
}

.project-cover-empty {
  height: 100%;
  display: grid;
  place-items: center;
  background: #f1f1f1;
  color: #777;
  font-size: 13px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding-top: 13px;
}

.project-meta h3 {
  font-size: var(--el-project-card, 30px);
  line-height: 1.1;
  letter-spacing: var(--el-track-projects, -.035em);
  font-weight: 650;
  margin: 0;
  transition: color .2s ease;
}

.project-meta h3 span {
  font-size: .7em;
}

.project-card-link:hover .project-meta h3 {
  color: #367f29;
}

.project-subline {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: end;
  color: #666;
  font-size: 12px;
  padding-top: 6px;
  text-align: right;
}

.projects-empty {
  background: #f5f5f5;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  padding: clamp(24px, 4vw, 65px);
  margin-top: 40px;
}

.projects-empty p {
  font-size: clamp(25px, 3vw, 45px);
  font-weight: 650;
  letter-spacing: -.04em;
  margin: 0 0 10px;
}

.projects-empty span {
  font-size: 14px;
  color: #666;
}


/* 06 — SINGLE PROJECT */

.project-detail {
  padding-top: 35px;
  padding-bottom: 100px;
  min-height: 75vh;
}

.project-back {
  font-size: 14px;
}

.project-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin: 50px 0 45px;
}

.project-detail-heading h1 {
  font-size: var(--el-project-title, 110px);
  line-height: .93;
  letter-spacing: var(--el-track-projects, -.035em);
  margin: 0;
  hyphens: none;
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
}

.project-detail-cover {
  margin: 0;
}

.project-detail-cover img {
  width: 100%;
  height: auto;
  display: block;
}

.project-content {
  max-width: none;
  font-size: var(--el-project-body, 24px);
  line-height: 1.45;
  margin: clamp(35px, 5vw, 75px) 0 0;
}

.project-content img {
  max-width: 100%;
  height: auto;
}

.project-content > p,
.project-content > h2,
.project-content > h3,
.project-content > ul,
.project-content > ol {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.project-bottom-back {
  display: inline-block;
  margin-top: 35px;
}


/* 07 — GUTENBERG GALLERY
   PROJECT INTERNO: 4:5
*/

.project-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 44px);
}

.project-featured-tile {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3f3f3;
}

.project-featured-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content .wp-block-gallery,
.project-content .blocks-gallery-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 44px) !important;
  align-items: start;
  margin: clamp(30px, 4vw, 65px) 0;
  padding: 0;
  list-style: none;
}

.project-content .wp-block-gallery > .wp-block-image,
.project-content .wp-block-gallery > figure,
.project-content .blocks-gallery-grid > li {
  width: 100% !important;
  max-width: none !important;
  flex: none !important;
  min-width: 0;
  margin: 0 !important;
  position: relative;
}

.project-content .wp-block-gallery figure img,
.project-content .blocks-gallery-grid img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 4 / 5;
  object-fit: cover !important;
  display: block;
}

.project-content .wp-block-gallery figure,
.project-content .blocks-gallery-grid figure {
  width: 100%;
  margin: 0 !important;
}

.project-content .wp-block-gallery figcaption {
  position: static !important;
  background: none !important;
  color: var(--ink) !important;
  font-size: 12px;
  padding: 8px 0 !important;
  text-align: left;
}


/* 08 — CLIENTS MARQUEE */

.clients-section {
  overflow: hidden;
  padding-left: 0;
  padding-right: 0;
}

.clients-marquee {
  width: 100%;
  overflow: hidden;
  margin-top: clamp(45px, 6vw, 100px);
  margin-bottom: clamp(25px, 3vw, 60px);
}

.clients-track {
  display: flex;
  width: max-content;
  align-items: center;
  animation: elastico-client-scroll 38s linear infinite;
  will-change: transform;
}

.clients-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: var(--el-layout-clients-gap, 90px);
  padding-right: var(--el-layout-clients-gap, 90px);
}

.client-item {
  width: var(--el-layout-clients-logo-width, 180px);
  height: var(--el-layout-clients-logo-height, 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.client-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.client-logo {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
}

.clients-marquee:hover .clients-track,
.clients-marquee:focus-within .clients-track {
  animation-play-state: paused;
}

.clients-marquee--static .clients-track {
  width: 100%;
  animation: none;
  justify-content: center;
}

.clients-marquee--static .clients-group {
  padding-right: 0;
}

@keyframes elastico-client-scroll {
  to {
    transform: translateX(-50%);
  }
}


/* 09 — ABOUT */

.about-statement {
  font-size: var(--el-about-statement, 94px);
  line-height: 1.02;
  letter-spacing: var(--el-track-about, -.065em);
  font-weight: 650;
  max-width: 1450px;
  margin: clamp(45px, 7vw, 110px) 0
          clamp(35px, 5vw, 75px);
  text-wrap: balance;
  hyphens: none;
}

.about-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--el-layout-about-photos-gap, 44px);
}

.about-photo {
  aspect-ratio: 4 / 5;
  margin: 0;
  background: #f4f4f4;
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(25px, 6vw, 100px);
  margin: var(--el-layout-about-intro-top, 110px) 0
          clamp(60px, 8vw, 135px);
}

.about-label {
  font-size: var(--el-about-label, 14px);
  line-height: 1.4;
  margin: 0;
  font-weight: 650;
}

.about-copy {
  max-width: 920px;
  font-size: var(--el-about-body, 25px);
  line-height: 1.27;
  letter-spacing: -.035em;
}

.about-copy p {
  margin: 0 0 1em;
}

.about-copy p:last-child {
  margin-bottom: 0;
}


/* 10 — COSA FACCIAMO */

.about-services {
  border-top: 1px solid var(--ink);
  margin-top: 40px;
}

.about-services-topline {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: baseline;
  padding: 20px 0 clamp(30px, 4vw, 65px);
}

.about-services-topline span {
  font-size: 13px;
}

.about-services-topline h3 {
  font-size: var(--el-services-heading, 68px);
  font-weight: 650;
  letter-spacing: var(--el-track-services-heading, -.06em);
  line-height: 1;
  margin: 0;
}

.about-service-item {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(40px, 10%) 1fr;
  gap: 12px;
  padding: var(--el-layout-service-row-padding, 40px) 0;
}

.about-service-number {
  font-size: var(--el-service-number, 13px);
  padding-top: 10px;
}

.about-service-item h4 {
  font-size: var(--el-service-title, 66px);
  font-weight: 650;
  letter-spacing: var(--el-track-services, -.06em);
  line-height: 1.05;
  margin: 0 0 12px;
  hyphens: none;
}

.about-service-item p {
  font-size: var(--el-service-text, 20px);
  line-height: 1.3;
  max-width: 850px;
  margin: 0;
  color: #4b4b4b;
}


/* 11 — FOOTER */

.site-footer {
  background: var(--green);
  color: var(--ink);
  padding: var(--el-footer-pad-top, 38px) 0
           var(--el-footer-pad-bottom, 28px);
}

.footer-content {
  display: block;
}

.footer-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.4;
}

.footer-headline {
  font-family: var(--font);
  font-weight: 650;
  font-size: var(--el-footer-headline, 92px);
  letter-spacing: -.06em;
  line-height: .99;
  margin: clamp(75px, 11vw, 160px) 0 18px;
  max-width: 1100px;
}

.footer-email {
  display: inline-block;
  font-size: var(--el-footer-email, 42px);
  font-weight: 550;
  letter-spacing: -.045em;
  line-height: 1.1;
  text-decoration: none;
  overflow-wrap: anywhere;
  border-bottom: 2px solid currentColor;
  padding-bottom: 6px;
  text-underline-offset: .2em;
}

.footer-email:hover,
.footer-social a:hover,
.footer-end a:hover {
  opacity: .65;
}

.footer-bottom {
  border-top: 1px solid rgba(23, 23, 23, .65);
  margin-top: clamp(90px, 13vw, 180px);
  padding-top: 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 1fr);
  gap: 30px;
}

.footer-social {
  max-width: 580px;
}

.footer-small-label {
  display: block;
  font-size: 12px;
  letter-spacing: .025em;
  margin-bottom: 22px;
}

.footer-social p {
  font-size: var(--el-footer-social, 24px);
  line-height: 1.25;
  letter-spacing: -.025em;
  margin: 0 0 25px;
}

.footer-social a {
  font-size: var(--el-footer-social, 24px);
  font-weight: 650;
  text-underline-offset: 5px;
}

.footer-end {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
}

.footer-end a {
  color: inherit;
  text-decoration: none;
}

.footer-back-to-top {
  white-space: nowrap;
}

.basic-page {
  min-height: 70svh;
}


/* 12 — RESPONSIVE TABLET */

@media (max-width: 1100px) and (min-width: 781px) {

  .hero h1 {
    font-size: var(--el-hero, 148px);
  }

  .section-heading h2 {
    font-size: var(--el-section-title, 95px);
  }

  .about-statement {
    font-size: var(--el-about-statement, 94px);
  }

  .about-service-item h4 {
    font-size: var(--el-service-title, 66px);
  }

}


/* 13 — RESPONSIVE MOBILE */

@media (max-width: 780px) {

  :root {
    --gutter: var(--el-layout-gutter, 20px);
  }

  .site-header {
    align-items: flex-start;
    min-height: var(--el-layout-header-height, 110px);
  }

  .brand img {
    width: 125px;
  }

  .menu-toggle {
    display: block;
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: var(--el-menu-toggle, 16px);
    font-weight: 700;
    padding: 9px 0;
    cursor: pointer;
  }

  .menu-toggle span {
    padding-left: 7px;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 94px;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    padding: 24px var(--gutter) 30px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: var(--el-layout-nav-gap, 19px);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    font-size: var(--el-nav, 15px);
  }

  .hero {
    min-height: auto;
    gap: clamp(55px, 11vw, 110px);
    padding-top: var(--el-layout-hero-top, 45px);
    padding-bottom: var(--el-layout-hero-bottom, 55px);
  }

  .hero-topline {
    font-size: var(--el-hero-kicker, 11px);
  }

  .hero-topline span:last-child {
    max-width: 110px;
    text-align: right;
  }

  .hero h1 {
    font-size: var(--el-hero, 68px);
    letter-spacing: var(--el-track-hero, -.075em);
    margin: 0;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-bottomline {
    flex-direction: column;
    gap: 30px;
  }

  .hero-bottomline p {
    font-size: var(--el-hero-text, 18px);
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: var(--el-section-title, 60px);
    margin-top: 20px;
  }

  /* SELECTED WORK 1:1 */

  .projects-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: var(--el-layout-work-row-gap, 45px);
    margin-top: var(--el-layout-work-top, 35px);
  }

  .project-cover {
    aspect-ratio: 1 / 1;
  }

  .project-meta {
    gap: 10px;
  }

  .project-subline {
    font-size: 11px;
  }

  /* PROJECT INTERNO 4:5 */

  .project-detail-heading {
    display: block;
  }

  .project-detail-heading h1 {
    font-size: var(--el-project-title, 64px);
  }

  .project-detail-meta {
    margin-top: 25px;
  }

  .project-content {
    margin: 40px auto;
  }

  .project-featured-grid,
  .project-content .wp-block-gallery,
  .project-content .blocks-gallery-grid {
    grid-template-columns: 1fr;
  }

  /* CLIENTS */

  .clients-track {
    animation-duration: 28s;
  }

  /* ABOUT */

  .about-statement {
    font-size: var(--el-about-statement, 54px);
  }

  .about-photos {
    grid-template-columns: 1fr;
    gap: var(--el-layout-about-photos-gap, 20px);
  }

  .about-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
    margin-top: var(--el-layout-about-intro-top, 60px);
  }

  .about-services-topline {
    display: block;
  }

  .about-services-topline h3 {
    margin-top: 20px;
  }

  .about-service-item {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .about-service-number {
    padding-top: 5px;
  }

  .about-service-item h4 {
    font-size: var(--el-service-title, 38px);
  }

  /* FOOTER */

  .site-footer {
    padding: var(--el-footer-pad-top, 28px) 0
             var(--el-footer-pad-bottom, 24px);
  }

  .footer-header {
    font-size: 11px;
  }

  .footer-header span:last-child {
    text-align: right;
  }

  .footer-headline {
    font-size: var(--el-footer-headline, 48px);
    margin: 90px 0 20px;
  }

  .footer-email {
    font-size: var(--el-footer-email, 25px);
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 55px;
    margin-top: 100px;
  }

  .footer-social p,
  .footer-social a {
    font-size: var(--el-footer-social, 19px);
  }

  .footer-end {
    justify-content: space-between;
    gap: 16px;
  }

}


/* 14 — SMALL MOBILE */

@media (max-width: 420px) {

  .hero-topline {
    gap: 10px;
  }

  .hero-topline span:last-child {
    max-width: 125px;
  }

  .project-meta {
    flex-wrap: wrap;
  }

  .project-subline {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  .footer-header {
    flex-wrap: wrap;
  }

}


/* 15 — CUSTOMIZER LAYOUT */

:root {
  --gutter: var(--el-layout-gutter, 52px);
}

@media (max-width: 780px) {
  :root {
    --gutter: var(--el-layout-gutter, 20px);
  }
}


/* 16 — FLUIDIFICA TYPOGRAPHY */

.elastic-headline {
  position: relative;
  isolation: isolate;
}

.elastic-headline .liquify-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.elastic-headline.is-liquify-ready,
.elastic-headline.is-liquify-ready > span {
  color: transparent !important;
}


/* 17 — SCROLL TARGETS */

#work,
#clients,
#about,
#contact {
  scroll-margin-top: 24px;
}


/* 18 — REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .clients-track {
    animation: none;
    will-change: auto;
    width: auto;
    max-width: 100%;
  }

  .clients-group[aria-hidden="true"] {
    display: none;
  }

  .clients-group:not([aria-hidden="true"]) {
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    padding: 0 var(--gutter);
    gap: var(--el-layout-clients-gap, 48px);
  }

  .client-item {
    width: 140px;
  }

  .project-card-link:hover .project-cover img {
    transform: none;
  }

  .elastic-headline .liquify-layer {
    display: none !important;
  }

  .elastic-headline.is-liquify-ready,
  .elastic-headline.is-liquify-ready > span {
    color: revert !important;
  }

}


/* 19 — PRINT */

@media print {

  .site-header {
    min-height: auto;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    padding: 0;
    border: 0;
  }

  .hero {
    min-height: auto;
    gap: 65px;
  }

  .projects-grid,
  .about-photos,
  .project-featured-grid,
  .project-content .wp-block-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .project-card,
  .about-photo,
  .about-service-item,
  .client-item {
    break-inside: avoid;
  }

  .clients-track {
    animation: none;
  }

  .clients-group[aria-hidden="true"] {
    display: none;
  }

  .elastic-headline .liquify-layer {
    display: none !important;
  }

  .elastic-headline.is-liquify-ready,
  .elastic-headline.is-liquify-ready > span {
    color: revert !important;
  }

  .site-footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

}

/* =========================================
   MENU WORDPRESS — STUDIO ELASTICO
   ========================================= */

.primary-nav-list {
  display: flex;
  align-items: center;
  gap: var(--el-layout-nav-gap, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav-list li {
  margin: 0;
  padding: 0;
}

.primary-nav-list a {
  display: inline-block;
  text-decoration: none;
}

.primary-nav-list a:hover {
  text-decoration: underline;
}

@media (max-width: 780px) {

  .primary-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--el-layout-nav-gap, 19px);
    width: 100%;
  }

}

/* =========================================
   STUDIO ELASTICO — MENU HOVER
   ========================================= */

/* Transizione colore menu */

.primary-nav a,
.primary-nav-list a {
  transition: color 0.25s ease;
}

/* Hover: verde + italic */

@media (hover: hover) {

  .primary-nav a:hover,
  .primary-nav-list a:hover {
    color: var(--green);
    font-style: italic;
    text-decoration: none;
  }

}

/* Navigazione da tastiera */

.primary-nav a:focus-visible,
.primary-nav-list a:focus-visible {
  color: var(--green);
  font-style: italic;
}


/* =========================================
   STUDIO ELASTICO — SERVICES GREEN TITLES
   ========================================= */

.about-service-item h4 {
  color: var(--green);
}

/* =========================================
   STUDIO ELASTICO — INSTAGRAM FOOTER
   ========================================= */

/* Più spazio alla sezione Instagram */

.footer-social {
  max-width: 850px;
}

/* Testo introduttivo Instagram */

.footer-social p {
  font-size: clamp(26px, 3.2vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 35px;
}

/* Collegamento Instagram */

.footer-social a {
  display: inline-block;
  font-size: clamp(34px, 4.5vw, 68px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.05em;
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 8px;
  transition: opacity 0.2s ease;
}

.footer-social a:hover {
  opacity: 0.65;
}

/* Versione mobile */

@media (max-width: 780px) {

  .footer-social {
    max-width: 100%;
  }

  .footer-social p {
    font-size: 28px;
    line-height: 1.18;
  }

  .footer-social a {
    font-size: clamp(36px, 9vw, 52px);
  }

}

/* =========================================
   STUDIO ELASTICO — PAGINE STATICHE
   ========================================= */

.elastico-static-page {
  padding-top: 40px;
  padding-bottom: 120px;
}

.elastico-page-header {
  margin-bottom: 70px;
}

.elastico-page-header h1 {
  font-size: clamp(55px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-weight: 650;
  margin: 0;
}

.elastico-page-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.65;
}

.elastico-page-content h2 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 55px 0 20px;
}

.elastico-page-content h3 {
  font-size: 24px;
  line-height: 1.2;
  margin-top: 35px;
}

.elastico-page-content p {
  margin-bottom: 22px;
}

.elastico-page-content a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 780px) {
  .elastico-static-page {
    padding-top: 25px;
    padding-bottom: 80px;
  }

  .elastico-page-header {
    margin-bottom: 45px;
  }

  .elastico-page-header h1 {
    font-size: 52px;
  }

  .elastico-page-content {
    font-size: 16px;
    line-height: 1.6;
  }

  .elastico-page-content h2 {
    font-size: 26px;
  }
}


/* =========================================
   STUDIO ELASTICO — INSTAGRAM BUTTON
   ========================================= */

/* Ultima voce del menu WordPress */

.site-header .primary-nav
.primary-nav-list > li:last-child > a {

  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  padding: 10px 22px !important;
  margin-top: -10px;

  border: 2px solid #0DFF00 !important;
  border-radius: 999px !important;

  background: transparent !important;
  color: #0DFF00 !important;

  font-style: normal !important;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none !important;

  transition:
    background-color .25s ease,
    color .25s ease;
}

/* Hover: sfondo verde, testo nero */

.site-header .primary-nav
.primary-nav-list > li:last-child > a:hover,

.site-header .primary-nav
.primary-nav-list > li:last-child > a:focus-visible {

  background: #0DFF00 !important;
  color: #171717 !important;
  font-style: normal !important;
  text-decoration: none !important;
}

/* Mobile */

@media (max-width: 780px) {

  .site-header .primary-nav
  .primary-nav-list > li:last-child > a {

    margin-top: 5px;
    padding: 12px 24px !important;
  }

}

/* =========================================
   STUDIO ELASTICO — MENU BOLD
   ========================================= */

.site-header .primary-nav a,
.site-header .primary-nav-list a {
  font-family: var(--font);
  font-weight: 700 !important;
}

/* Manteniamo l'italic sulle voci normali */

@media (hover: hover) {
  .site-header .primary-nav a:hover {
    font-style: italic;
  }

  /* Instagram rimane upright anche all'hover */

  .site-header .primary-nav-list > li:last-child > a:hover {
    font-style: normal !important;
  }
}


/* =========================================
   STUDIO ELASTICO — DATI FISCALI FOOTER
   ========================================= */

.site-footer .footer-social .footer-company-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  margin-top: 35px;

  font-family: "articulat-cf", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  color: #171717;
}

.site-footer .footer-social .footer-company-details span {
  display: block;
}

@media (max-width: 780px) {
  .site-footer .footer-social .footer-company-details {
    margin-top: 28px;
    font-size: 12px;
  }
}



/* HERO — Allineamento etichetta su mobile */
@media (max-width: 780px) {
  .hero .hero-topline {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  .hero .hero-topline span {
    width: 100%;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}
