/*
Theme Name: Sara Petrucci Child
Template: generatepress
Version: 1.0
Description: Child theme di GeneratePress per sarapetrucci.it
*/

/* ===== FONT ===== */
@font-face {
  font-family: 'Raleway';
  src: url('Fonts/raleway-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Courier Prime';
  src: url('Fonts/courier-prime-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Jost';
  src: url('Fonts/jost-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ===== COLORI ===== */
:root {
  --verde: #3E603B;
  --verde-chiaro: #CFE1CE;
  --testo: #5C5C5C;
  --sfondo-rosa: #F7EEEA;
  --sfondo-card: #FAFAFA;
}

/* ===== BASE ===== */
body {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 15px;
  color: var(--testo);
  background: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--verde);
}

.entry-content h2 { font-size: 50px; }
.entry-content h5 { font-size: 30px; }

a { color: var(--verde); }

/* ===== LAYOUT A TUTTA LARGHEZZA ===== */
.grid-container {
  max-width: 100%;
}

.site-content {
  padding: 0;
}

.separate-containers .site-main {
  margin: 0;
}

.separate-containers .inside-article {
  padding: 0;
  background: transparent;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--verde);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 10;
}

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0;
}

.site-branding,
.site-logo {
  margin: 0 10px 0 0;
}

/* Logo carciofo al posto del nome del sito (SVG gia' bianco) */
.main-title {
  margin: 0;
  line-height: 0;
}

.main-title a {
  display: block;
  width: 26px;
  height: 34px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  background: url('Images/logo-carciofo.svg') no-repeat center / contain;
}

.site-description {
  display: none;
}

.main-navigation,
.main-navigation ul ul,
.nav-float-right #site-navigation {
  background: transparent;
  width: auto;
  margin-left: 0;
  float: none;
}

.main-navigation .main-nav ul li a {
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 15px;
  line-height: 43px;
  padding: 0 16px;
  color: var(--verde-chiaro);
}

.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  color: #ffffff;
  background: transparent;
}

.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  font-weight: bold;
}

/* Accesso resta separato dal menu e allineato al margine destro della barra. */
.sp-header-access {
  position: absolute;
  z-index: 20;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  padding: 0 8px;
  color: var(--verde-chiaro);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 15px;
  line-height: 2;
  text-decoration: none;
}

.sp-header-access:hover,
.sp-header-access:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

#wpadminbar,
#wpadminbar .ab-top-menu > li,
#wpadminbar .ab-top-menu > li > .ab-item,
#wpadminbar .quicklinks .ab-empty-item,
#wpadminbar .quicklinks a,
#wpadminbar .shortlink-input {
  background: var(--verde);
  color: #ffffff;
}

#wpadminbar .ab-top-menu > li:hover > .ab-item,
#wpadminbar .ab-top-menu > li.hover > .ab-item,
#wpadminbar .ab-top-menu > li > .ab-item:focus,
#wpadminbar .ab-top-menu > li > .ab-item:hover,
#wpadminbar .ab-top-menu > li > .ab-item:focus-visible {
  background: #345232;
  color: #ffffff;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--verde);
  box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.25);
  position: relative;
}

.site-info {
  background: transparent;
  color: #ffffff;
  padding: 8px 20px 6px;
}

.site-info .inside-site-info {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.site-info .copyright-bar {
  text-align: left;
}

.site-info a,
.site-info a:visited {
  color: #ffffff;
  text-decoration: underline;
}

.site-info a:hover {
  color: var(--verde-chiaro);
}

.sp-footer {
  max-width: 620px;
  margin: 0 auto;
}

.sp-footer__info {
  font-size: 15px;
  line-height: 1.1;
  text-align: left;
}

.sp-footer__bottom {
  margin-top: 28px;
  font-size: 11px;
  line-height: 1.2;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
}

.sp-footer__bottom img {
  display: block;
  width: 100px;
  height: auto;
  filter: brightness(0) invert(1);
}

@media (max-width: 768px) {
  .sp-footer__info {
    text-align: center;
  }
  .sp-footer__bottom {
    justify-content: center;
    text-align: center;
    margin-top: 20px;
  }
}

/* Attività in fondo agli articoli: condivisione, statistiche e letture recenti. */
.sp-post-engagement,
.sp-post-recent {
  width: min(860px, calc(100% - 48px));
  margin: 0 auto;
  color: #555;
  font-family: 'Courier Prime', 'Courier New', monospace;
}
.sp-post-engagement { padding: 26px 0 34px; border-top: 1px solid #e4e0dc; }
.sp-post-share, .sp-post-stats { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-post-share { margin-bottom: 20px; }
.sp-post-share__label { margin-right: 4px; font-size: 16px; }
.sp-post-share__button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d8ded6; border-radius: 50%; background: #fff; color: var(--verde, #3e603b); font: 600 16px/1 Arial, sans-serif; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.sp-post-share__button:hover, .sp-post-share__button:focus-visible { background: var(--verde, #3e603b); color: white; transform: translateY(-2px); }
.sp-post-share__button--linkedin { font-size: 13px; }
.sp-post-stats { gap: 22px; font-size: 14px; }
.sp-post-stats a { color: inherit; text-decoration: none; }
.sp-post-like { padding: 4px 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.sp-post-like.is-liked { color: #a94d51; }
.sp-post-like__icon { margin-right: 4px; color: #a94d51; }
.sp-post-like__count { margin-left: 4px; }
.sp-post-like--compact { font-size: 13px; }
.sp-post-recent { padding: 10px 0 64px; }
.sp-post-recent__heading { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 20px; }
.sp-post-recent__heading h2 { margin: 0; color: var(--verde, #3e603b); font: 500 28px/1.25 'Raleway', sans-serif; }
.sp-post-recent__heading > a { color: var(--verde, #3e603b); font-size: 14px; }
.sp-post-recent__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sp-post-recent-card { min-width: 0; }
.sp-post-recent-card__image { display: block; overflow: hidden; aspect-ratio: 1.25 / 1; background: #f3f2ef; }
.sp-post-recent-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sp-post-recent-card__image:hover img { transform: scale(1.035); }
.sp-post-recent-card h3 { margin: 12px 0 8px; font: 500 19px/1.35 'Raleway', sans-serif; }
.sp-post-recent-card h3 a { color: #4d4d4d; text-decoration: none; }
.sp-post-recent-card h3 a:hover { color: var(--verde, #3e603b); }
.sp-post-recent-card__stats { display: flex; align-items: center; gap: 12px; color: #777; font-size: 13px; }
.sp-post-recent-card__stats a { color: inherit; text-decoration: none; }
.sp-single-post #comments { width: min(860px, calc(100% - 48px)); margin: 0 auto 56px; }
.sp-single-post #comments .comments-title { color: var(--verde, #3e603b); font: 500 28px/1.25 'Raleway', sans-serif; }
.sp-single-post #comments .comment-list { padding-left: 24px; }
.sp-single-post #comments p, .sp-single-post #comments label { font: 400 16px/1.6 'Courier Prime', 'Courier New', monospace; }
.sp-single-post #comments input:not([type="submit"]), .sp-single-post #comments textarea { width: 100%; max-width: 100%; padding: 10px 12px; border: 1px solid #c9d2c6; background: #fff; }
.sp-single-post #comments input[type="submit"] { padding: 10px 20px; border: 0; background: var(--verde, #3e603b); color: #fff; cursor: pointer; }
@media (max-width: 680px) {
  .sp-post-engagement, .sp-post-recent, .sp-single-post #comments { width: calc(100% - 40px); }
  .sp-post-recent__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .sp-post-recent-card__image { aspect-ratio: 1.45 / 1; }
  .sp-post-recent__heading h2, .sp-single-post #comments .comments-title { font-size: 24px; }
  .sp-post-stats { gap: 12px; }
}

.sp-single-post .wp-block-embed.is-type-video { width: min(760px, 100%); margin: 30px auto; }
.sp-single-post .wp-block-embed__wrapper { position: relative; aspect-ratio: 16 / 9; }
.sp-single-post .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ===== CONTENUTI DELLE PAGINE ===== */
.sp-page { color: var(--testo); }
.sp-page__inner { width: min(100% - 48px, 980px); margin-inline: auto; padding: 64px 0 82px; }
.sp-page__title { margin: 0 0 30px; font-size: clamp(34px, 5vw, 50px); line-height: 1.12; }
.sp-page p { margin: 0 0 1.25em; line-height: 1.65; }
.sp-page h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; margin: 1.65em 0 .6em; }
.sp-page h3, .sp-page h5 { font-size: 23px; line-height: 1.3; margin: 1.8em 0 .55em; }
.sp-page__lead { font-size: 18px; }
.sp-page__photo { display: block; width: 100%; height: auto; }
.sp-home-hero { min-height: 470px; display: grid; place-items: center; position: relative; overflow: hidden; background: #f7eeea; }
.sp-home-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.sp-home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(24,35,22,.35),rgba(24,35,22,.04)); }
.sp-home-hero__title { position: relative; z-index: 1; width: min(1100px, calc(100% - 48px)); margin: 0; color: #fff; font-size: clamp(58px, 10vw, 119px); line-height: .95; text-shadow: 0 2px 12px rgba(0,0,0,.18); }
.sp-home-hero__title small { display: block; margin-top: 22px; font-size: clamp(18px, 2vw, 24px); letter-spacing: .12em; }
.sp-home-intro { display: grid; grid-template-columns: minmax(240px, .85fr) 1.15fr; gap: clamp(28px, 6vw, 84px); align-items: center; width: min(100% - 48px, 980px); margin: 80px auto; }
.sp-home-intro img { width: 100%; max-height: 500px; object-fit: cover; }
.sp-about-layout { display: grid; grid-template-columns: minmax(220px, .68fr) 1.32fr; gap: clamp(30px, 6vw, 76px); align-items: start; }
.sp-about-layout > img { position: sticky; top: 28px; max-height: 680px; object-fit: cover; }
.sp-home-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; width: min(100% - 48px, 1120px); margin: 0 auto 90px; }
.sp-home-card { background: #fafafa; text-align: center; }
.sp-home-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.sp-home-card__body { padding: 24px 22px 28px; }
.sp-home-card h2 { margin: 0 0 12px; font-size: 25px; }
.sp-home-card p { margin-bottom: 18px; }
.sp-text-link { font-weight: 600; text-underline-offset: 4px; }
.sp-work-area { background: var(--sfondo-rosa); padding: 56px 24px; text-align: center; }
.sp-work-area h2 { margin: 0 0 12px; }
.sp-image-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; margin: 34px 0 48px; }
.sp-image-row img { width: 100%; height: 260px; object-fit: cover; }
.sp-project-grid, .sp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.sp-project-card { display: block; position: relative; overflow: hidden; background: #f5f1ed; color: #fff; }
.sp-project-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; transition: transform .35s ease; }
.sp-project-card:hover img, .sp-project-card:focus img { transform: scale(1.035); }
.sp-project-card span { position: absolute; inset: auto 0 0; padding: 34px 18px 16px; background: linear-gradient(transparent,rgba(24,35,22,.76)); color: #fff; font-family: 'Raleway',sans-serif; font-size: 18px; }
.sp-project-detail { width: min(100% - 48px, 1040px); margin: 0 auto; padding: 58px 0 76px; }
.sp-project-detail > .sp-page__title { margin: 16px 0 30px; }
.sp-project-back { display: inline-block; color: var(--verde); text-underline-offset: 4px; }
.sp-project-detail__meta { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 0 0 30px; }
.sp-project-detail__meta h2 { margin: 0 0 6px; font: 600 14px/1.3 'Raleway', sans-serif; }
.sp-project-detail__meta p { margin: 0; }
.sp-project-detail__cover { display: block; width: 100%; max-height: 620px; object-fit: cover; margin: 0 auto 34px; }
.sp-project-detail > p { max-width: 820px; margin: 0 0 1.25em; line-height: 1.7; }
.sp-project-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin: 40px 0; }
.sp-project-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sp-project-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 42px; padding-top: 20px; border-top: 1px solid #d7ddd4; }
.sp-project-nav a { color: var(--verde); }
.sp-publication { display: grid; grid-template-columns: minmax(180px, .62fr) 1.38fr; align-items: center; gap: 38px; margin: 44px 0; }
.sp-publication img { width: 100%; max-width: 340px; max-height: 430px; object-fit: contain; justify-self: center; }
.sp-partner-list { display: grid; gap: 0; }
.sp-partner-list p { margin: 0; padding: 15px 20px; border-left: 3px solid var(--verde); background: #fafafa; }
.sp-partner-list p + p { margin-top: 8px; }
.sp-partner { padding: 22px 26px; border-left: 3px solid var(--verde); background: #fafafa; }
.sp-partner h3 { margin: 0 0 10px; }
.sp-partner p:last-child { margin-bottom: 0; }
.sp-post-card { background: #fafafa; }
.sp-post-card img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sp-post-card__body { padding: 20px; }
.sp-post-card h2 { margin: 0 0 10px; font-size: 22px; }
.sp-post-card time { display: block; margin-bottom: 12px; font-size: 13px; }
.sp-contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.sp-social-links { display: flex; gap: 16px; margin-top: 22px; }
.sp-social-links a { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; border: 1px solid var(--verde); border-radius: 50%; text-decoration: none; font-weight: 600; }
.sp-form label { display: block; margin: 0 0 16px; }
.sp-form input:not([type=checkbox]), .sp-form textarea { width: 100%; background: #fafafa; border: 1px solid #b8c6b7; padding: 12px 14px; font: inherit; }
.sp-form input[type=submit] { background: var(--verde); color: #fff; border: 0; padding: 13px 24px; font: inherit; cursor: pointer; }
.sp-page--privacy .sp-page__inner { max-width: 880px; }
.sp-page--privacy h3 { font-size: 18px; }
.sp-single-post .sp-post-meta { color: #747474; font-size: 13px; }
.single-post .featured-image, .single-post .entry-header, .single-post .entry-meta { display: none; }
.sp-lightbox { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 56px 24px 24px; background: rgba(18, 25, 17, .92); }
.sp-lightbox__image { max-width: min(100%, 1280px); max-height: 100%; object-fit: contain; }
.sp-lightbox__close { position: absolute; top: 14px; right: 20px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: transparent; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
body.sp-lightbox-open { overflow: hidden; }
@media (max-width: 768px) {
  .sp-page__inner { width: min(100% - 36px, 620px); padding: 44px 0 58px; }
  .sp-home-hero { min-height: 370px; }
  .sp-home-intro, .sp-contact-grid, .sp-about-layout { grid-template-columns: 1fr; gap: 24px; margin-block: 48px; }
  .sp-about-layout > img { position: static; max-height: 380px; }
  .sp-home-intro img { max-height: 360px; }
  .sp-home-cards, .sp-project-grid, .sp-post-grid { grid-template-columns: 1fr; gap: 18px; }
  .sp-home-cards { width: min(100% - 36px, 560px); margin-bottom: 52px; }
  .sp-image-row { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .sp-image-row img { height: 180px; }
  .sp-publication { grid-template-columns: 1fr; gap: 20px; }
  .sp-publication img { max-height: 350px; }
  .sp-project-detail { width: min(100% - 36px, 620px); padding: 40px 0 54px; }
  .sp-project-detail__meta { gap: 18px 24px; }
  .sp-project-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 28px 0; }
  .sp-project-nav { flex-direction: column; }
}

/* Replica delle composizioni Home, Galleria e Blog viste sul sito Wix. */
.sp-home-exact { overflow: hidden; }
.sp-home-exact p:empty, .sp-blog-index p:empty { display: none !important; }
.sp-home-exact .sp-home-hero { width: min(784px, 100%); height: 407px; min-height: 0; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; background: #fafafa; }
.sp-home-exact .sp-home-hero__image { position: static; width: 100%; height: 100%; object-fit: cover; object-position: 52% center; }
.sp-home-brand { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px; background: #fafafa; }
.sp-home-brand > img { display: block; width: 78px; height: 100px; object-fit: contain; filter: brightness(0) saturate(100%) invert(73%) sepia(13%) saturate(550%) hue-rotate(78deg) brightness(94%) contrast(88%); }
.sp-home-brand h1 { margin: 0; color: var(--verde); font: 600 48px/.9 'Raleway', sans-serif; }
.sp-home-brand h1 span { display: block; }
.sp-home-brand h1 small { display: block; margin-top: 14px; color: #334e6a; font: 400 15px/1.2 'Courier Prime', monospace; letter-spacing: .06em; white-space: nowrap; }
.sp-home-feature { width: min(664px, calc(100% - 48px)); margin: 146px auto 172px; display: grid; grid-template-columns: minmax(0, 402px) minmax(0, 220px); gap: 22px; align-items: center; }
.sp-home-feature--collaborazioni { grid-template-columns: minmax(0, 220px) minmax(0, 402px); }
.sp-home-feature__photo { min-width: 0; position: relative; }
.sp-home-feature__photo > img { display: block; width: 100%; height: 260px; object-fit: cover; }
.sp-home-feature__copy { position: relative; min-width: 0; padding: 16px 0; }
.sp-home-feature__copy h2 { margin: 0 0 26px; font-size: 24px; line-height: 1.2; }
.sp-home-feature__copy p { margin: 0 0 4px; color: #555; font-size: 13px; line-height: 1.55; }
.sp-home-feature__copy a { font-size: 13px; font-style: italic; text-decoration: none; }
.sp-home-seal { position: absolute; top: -22px; right: -62px; z-index: 1; display: grid; place-items: center; width: 112px; height: 112px; border: 1px solid #9fbea0; border-radius: 50%; background: rgba(255,255,255,.25); }
.sp-home-seal::before, .sp-home-seal::after { content: ""; position: absolute; inset: 5px; border: 1px dotted #9fbea0; border-radius: 50%; }
.sp-home-seal::after { inset: 10px; }
.sp-home-seal img { width: 40px; height: 55px; object-fit: contain; opacity: .72; filter: brightness(0) saturate(100%) invert(73%) sepia(13%) saturate(550%) hue-rotate(78deg) brightness(94%) contrast(88%); }
.sp-home-work { min-height: 280px; padding: 48px 24px 36px; }
.sp-home-work h2 { width: min(620px, 100%); margin: 0 auto 30px; padding-bottom: 10px; border-bottom: 1px solid #b9cbb8; font-size: 38px; }
.sp-home-slider { width: min(620px, 100%); margin: 0 auto; display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 24px; align-items: center; }
.sp-home-slider button { padding: 0; border: 0; background: transparent; color: #8caf90; font: 300 38px/1 'Jost', sans-serif; cursor: pointer; }
.sp-home-slider__items { position: relative; min-width: 0; min-height: 90px; display: block; overflow: hidden; text-align: center; }
.sp-home-slide { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; opacity: 0; transform: translateX(var(--slide-offset, 0)); transition: transform .48s cubic-bezier(.22,.61,.36,1), opacity .32s ease; }
.sp-home-slide.is-active { opacity: 1; transform: translateX(0); }
.sp-home-slide.is-leaving { opacity: 0; transform: translateX(var(--slide-offset, 0)); }
.sp-home-slider.is-transitioning button { pointer-events: none; }
.sp-home-slide p { margin: 0; color: var(--verde); font-size: 16px; line-height: 1.5; }
.sp-home-slide small { display: block; margin-top: 6px; font-size: 13px; }

/* Allineamento delle pagine interne alle composizioni originali Wix. */
.sp-page--about .sp-page__inner { width: 100%; max-width: none; padding: 0 0 70px; }
.sp-about-layout > p, .sp-publication > p { display: none !important; }
.sp-about-layout { width: 100%; grid-template-columns: minmax(360px, 34.7%) minmax(0, 1fr); gap: 0; align-items: stretch; }
.sp-about-layout > img { position: sticky; top: 54px; width: 100%; height: calc(100vh - 54px); max-height: none; object-fit: cover; object-position: center; align-self: start; }
.sp-about-layout > div { width: min(640px, calc(100% - 72px)); margin: 0 auto; padding: 30px 0 36px; }
.sp-page--about .sp-page__title { position: relative; margin: 0 0 100px; color: var(--verde); font-size: clamp(42px, 4vw, 54px); }
.sp-page--about .sp-page__title::before { content: ""; position: absolute; width: 130px; height: 130px; left: -134px; top: -24px; border: 2px solid #99bb96; border-radius: 50%; background: url('Images/logo-carciofo.svg') center/42px 68px no-repeat; opacity: .8; filter: brightness(0) saturate(100%) invert(74%) sepia(13%) saturate(550%) hue-rotate(78deg) brightness(94%) contrast(88%); }
.sp-page--about .sp-page__inner > .sp-page__title { display: none; }
.sp-about-layout > div > .sp-page__lead { font-size: 16px; }
.sp-about-layout h2, .sp-about-layout h5 { font: 500 28px/1.2 'Raleway',sans-serif; color: var(--verde); }
.sp-about-activities { width: min(930px, calc(100% - 48px)); margin: 0 auto; }
.sp-about-activity { display: grid; grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); gap: 24px; margin: 44px 0; }
.sp-about-activity h2, .sp-about-activity h3 { margin: 0; padding-right: 22px; text-align: right; color: var(--verde); font: 500 27px/1.2 'Raleway',sans-serif; }
.sp-about-activity__copy { border-left: 1px solid var(--verde); padding-left: 24px; }
.sp-about-activity__copy p { margin: 0 0 1.25em; }
.sp-page--pubblicazioni, .sp-page--portfolio, .sp-page--collaborazioni { padding-top: 0; }
.sp-page--pubblicazioni .sp-page__inner, .sp-page--portfolio .sp-page__inner, .sp-page--collaborazioni .sp-page__inner { width: min(980px, calc(100% - 48px)); padding-top: 0; }
.sp-page-banner { position: relative; left: 50%; width: 100vw; height: 365px; margin: 0; transform: translateX(-50%); background-position: center 48%; background-size: cover; }
.sp-page--pubblicazioni .sp-page-banner { background-image: url('../../uploads/sara-originals/scrivania-legno.jpg'); }
.sp-page--collaborazioni .sp-page-banner { background-image: url('../../uploads/sara-originals/semina-orto.jpg'); }
.sp-page-banner__panel { position: absolute; width: min(980px, calc(100% - 40px)); min-height: 280px; left: 50%; bottom: -1px; transform: translateX(-50%); padding: 68px 90px 28px; background: #fff; text-align: center; }
.sp-page-banner__panel h1 { margin: 0 0 34px; color: var(--verde); font: 500 clamp(38px, 4vw, 56px)/1.2 'Raleway',sans-serif; }
.sp-page-banner__panel p { max-width: 760px; margin: 0 auto; text-align: left; }
.sp-page--pubblicazioni .sp-page-banner__panel h1::before, .sp-page--portfolio .sp-page-banner__panel h1::before { content: ""; display: inline-block; width: 96px; height: 96px; vertical-align: middle; margin: -5px -18px 0 0; border: 2px solid #99bb96; border-radius: 50%; background: url('Images/logo-carciofo.svg') center/35px 58px no-repeat; opacity: .8; filter: brightness(0) saturate(100%) invert(74%) sepia(13%) saturate(550%) hue-rotate(78deg) brightness(94%) contrast(88%); }
.sp-page--pubblicazioni .sp-publication { grid-template-columns: 1fr 1fr; gap: 64px; margin: 130px 0 100px; }
.sp-page--pubblicazioni .sp-publication:nth-of-type(2n) { direction: rtl; }
.sp-page--pubblicazioni .sp-publication > * { direction: ltr; }
.sp-page--pubblicazioni .sp-publication img { max-width: 380px; max-height: 440px; padding: 8px; border: 1px solid #eee; box-shadow: 0 2px 9px #00000010; }
.sp-page--pubblicazioni .sp-publication h2 { margin: 0 0 24px; color: #4d4947; font: 400 30px/1.25 'Courier Prime',monospace; }
.sp-page--portfolio .sp-page-banner { height: 365px; background: #687349 url('../../uploads/sara-originals/spighe-grano-video.jpg') center 48%/cover no-repeat; }
.sp-page--portfolio .sp-page-banner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-page--portfolio .sp-page-banner__panel { min-height: 200px; padding-top: 24px; }
.sp-page--portfolio .sp-page-banner__panel h1 { margin-bottom: 18px; }
.sp-page--portfolio .sp-page-banner__panel p { text-align: center; }
.sp-page--portfolio .sp-page__inner > .sp-page__title, .sp-page--portfolio .sp-page__inner > .sp-page__lead,
.sp-page--pubblicazioni .sp-page__inner > .sp-page__title, .sp-page--collaborazioni .sp-page__inner > .sp-page__title { display: none; }
.sp-page--portfolio .sp-project-grid { width: calc(100vw - 80px); margin: 80px 0 60px 50%; transform: translateX(-50%); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px 40px; }
.sp-page--portfolio .sp-project-card img { aspect-ratio: 1 / 1; }
.sp-page--collaborazioni .sp-page-banner__panel { min-height: 172px; padding-top: 38px; }
.sp-partner-grid { width: min(1340px, calc(100vw - 80px)); margin: 64px 50% 50px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 38px 40px; }
.sp-partner-card { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; align-items: stretch; background: #fafafa; }
.sp-partner-card img { width: 100%; height: 100%; min-height: 170px; object-fit: cover; }
.sp-partner-card > p { display: contents; }
.sp-partner-card__copy { padding: 6px 16px 16px 26px; }
.sp-partner-card__copy h2 { margin: 0; color: #5c5c5c; font: 400 15px/1.5 'Courier Prime',monospace; }
.sp-partner-card__copy p { margin: 0; }
.sp-partner-card__copy p + p { margin-top: 8px; }
.sp-page--collaborazioni .sp-partner-list { display: none; }
.sp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.sp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sp-reveal { opacity: 1; transform: none; transition: none; } }
@media (max-width: 768px) {
 .sp-page--about .sp-page__inner { padding-bottom: 50px; }
 .sp-about-layout { grid-template-columns: 1fr; }
 .sp-about-layout > img { position: static; top: auto; height: min(105vw, 560px); max-height: none; }
 .sp-about-layout > div { width: min(100% - 36px, 620px); padding: 54px 0 10px; }
 .sp-page--about .sp-page__title { margin-bottom: 42px; }
 .sp-page--about .sp-page__title::before { width: 90px; height: 90px; left: -8px; top: -18px; opacity: .35; }
 .sp-about-activity { grid-template-columns: 1fr; gap: 14px; margin: 34px 0; }
 .sp-about-activity h2, .sp-about-activity h3 { text-align: left; }
 .sp-about-activity__copy { padding-left: 16px; }
 .sp-page-banner { height: 280px; }
 .sp-page-banner__panel { width: calc(100% - 28px); min-height: 190px; padding: 32px 22px 20px; }
 .sp-page-banner__panel h1 { margin-bottom: 20px; }
 .sp-page--pubblicazioni .sp-publication { grid-template-columns: 1fr; gap: 22px; margin: 58px auto; }
 .sp-page--pubblicazioni .sp-publication:nth-of-type(2n) { direction: ltr; }
 .sp-page--pubblicazioni .sp-publication img { max-height: 360px; }
 .sp-page--portfolio .sp-project-grid, .sp-partner-grid { width: 100%; margin: 42px auto; transform: none; grid-template-columns: 1fr; gap: 20px; }
 .sp-partner-card { grid-template-columns: 120px 1fr; }
 .sp-partner-card img { min-height: 150px; }
 .sp-page--pubblicazioni .sp-page-banner__panel h1::before, .sp-page--portfolio .sp-page-banner__panel h1::before { width: 72px; height: 72px; background-size: 28px 44px; }
}
.sp-gallery-inner { width: min(980px, calc(100% - 40px)); margin: 0 auto; padding: 45px 0 56px; }
.sp-gallery-inner > .sp-page__title { margin: 0 0 58px; font-size: 44px; }
.sp-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sp-gallery-column { display: grid; gap: 10px; align-content: start; min-width: 0; }
.sp-gallery-grid figure { display: block; width: 100%; margin: 0; }
.sp-gallery-grid img { display: block; width: 100%; height: auto; }
.sp-gallery-grid a { display: block; overflow: hidden; cursor: zoom-in; }
.sp-gallery-grid a img { transition: transform .35s ease; }
.sp-gallery-grid a:hover img, .sp-gallery-grid a:focus-visible img { transform: scale(1.035); }
.sp-lightbox { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 40px 72px; background: rgba(18, 24, 18, .94); }
.sp-lightbox__image { display: block; width: auto; height: auto; max-width: min(100%, 1440px); max-height: calc(100vh - 80px); object-fit: contain; }
.sp-lightbox__close { position: absolute; top: 14px; right: 20px; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; font: 300 38px/1 'Jost',sans-serif; cursor: pointer; }
.sp-lightbox-open { overflow: hidden; }
.sp-page--contatti .sp-page__inner { width: 100%; max-width: none; padding: 0 0 78px; }
.sp-page--contatti .sp-page__inner > .sp-page__title { display: none; }
.sp-contact-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 446px; }
.sp-contact-hero__photo { min-height: 446px; background: url('../../uploads/sara-originals/appunti-agronomia.jpg') center/cover no-repeat; }
.sp-contact-hero__panel { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 60px clamp(38px, 7vw, 125px); background: #fafafa; }
.sp-contact-hero__panel h1 { position: relative; z-index: 1; margin: 0 0 28px; color: var(--verde); font: 600 clamp(42px, 4vw, 58px)/1.12 'Raleway',sans-serif; }
.sp-contact-hero__panel > p { position: relative; z-index: 1; max-width: 510px; margin: 0; font-size: 16px; line-height: 1.8; }
.sp-contact-seal { position: absolute; z-index: -1; left: -122px; top: -15px; width: 125px; height: 125px; }
.sp-contact-seal svg { width: 100%; height: 100%; fill: none; stroke: #96b996; stroke-width: .8; }
.sp-contact-layout { display: flex; flex-direction: column; gap: 0; width: 100%; margin: 0; }
.sp-contact-cards { width: min(1040px, calc(100% - 56px)); margin: 92px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border-block: 1px solid #dedbd8; }
.sp-contact-card { min-height: 210px; padding: 28px 26px; text-align: center; }
.sp-contact-card + .sp-contact-card { border-left: 1px solid #dedbd8; }
.sp-contact-card__icon { display: block; width: 38px; height: 38px; margin: 0 auto 14px; color: var(--verde); }
.sp-contact-card__icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-contact-card h2 { margin: 0 0 12px; color: #3f4140; font: 500 20px/1.3 'Raleway',sans-serif; }
.sp-contact-card p { margin: 0; }
.sp-contact-card a { color: inherit; text-decoration: none; }
.sp-contact-card a:hover { color: var(--verde); text-decoration: underline; }
.sp-contact-card .sp-social-links { display: flex; justify-content: center; gap: 12px; }
.sp-contact-card .sp-social-links a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #8db28d; border-radius: 50%; color: var(--verde); font-weight: 600; }
.sp-page--contatti .sp-form { width: min(755px, calc(100% - 48px)); margin: 76px auto 0; }
.sp-page--contatti .sp-form h2 { margin: 0 0 30px; color: #414141; font: 500 34px/1.2 'Raleway',sans-serif; }
.sp-page--contatti .wpcf7-form > p { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 28px; margin: 0; }
.sp-page--contatti .wpcf7-form > p > label { display: block; min-width: 0; color: #444; font-size: 15px; }
.sp-page--contatti .wpcf7-form > p > label.sp-contact-field--message,
.sp-page--contatti .wpcf7-form > p > label.sp-contact-field--privacy,
.sp-page--contatti .wpcf7-form > p > input[type="submit"] { grid-column: 1 / -1; }
.sp-page--contatti .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.sp-page--contatti .wpcf7-form-control:not([type="checkbox"]):not([type="submit"]) { width: 100%; min-height: 40px; padding: 7px 2px; border: 0; border-bottom: 1px solid #5c5c5c; border-radius: 0; background: transparent; box-shadow: none; color: #333; font: 400 16px/1.5 'Courier Prime',monospace; }
.sp-page--contatti .wpcf7-form-control.wpcf7-textarea { min-height: 124px; resize: vertical; }
.sp-page--contatti .sp-contact-field--required::after { content: ' *'; color: #568257; }
.sp-page--contatti .sp-contact-field--privacy { display: flex !important; align-items: flex-start; gap: 9px; font-size: 13px !important; line-height: 1.5; }
.sp-page--contatti .sp-contact-field--privacy .wpcf7-form-control-wrap { display: inline-block; flex: 0 0 auto; margin: 0; }
.sp-page--contatti .wpcf7-form-control[type="submit"] { justify-self: start; min-width: 130px; padding: 12px 28px; border: 1px solid var(--verde); background: var(--verde); color: #fff; font: 500 15px 'Raleway',sans-serif; cursor: pointer; }
.sp-page--contatti .wpcf7-form-control[type="submit"]:hover { background: #fff; color: var(--verde); }
.sp-contact-trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sp-page--contatti .sp-contact-status { margin: 0 0 24px; padding: 14px 18px; border-left: 3px solid var(--verde); background: #f4f6f2; color: #333; }
.sp-page--contatti .sp-contact-status--mail-error,
.sp-page--contatti .sp-contact-status--invalid,
.sp-page--contatti .sp-contact-status--config-error { border-color: #a33; background: #fbf3f2; }
.sp-page--contatti .wpcf7-form-control[type="submit"]:disabled { opacity: .55; cursor: not-allowed; }
.sp-blog-index { position: relative; }
.sp-blog-inner { position: relative; width: min(584px, calc(100% - 36px)); margin: 0 auto; padding: 44px 0 58px; }
.sp-blog-inner > .sp-page__title { position: relative; margin: 0 0 62px; padding-left: 75px; font-size: 34px; line-height: 1.1; }
.sp-blog-inner > .sp-page__title::before { content: ""; position: absolute; left: 0; top: -10px; width: 68px; height: 68px; border: 1px solid #a9c5aa; border-radius: 50%; background: url('Images/logo-carciofo.svg') center/27px 40px no-repeat; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px #a9c5aa; opacity: .75; }
.sp-blog-search { position: absolute; top: 57px; right: 2px; display: flex; align-items: center; }
.sp-blog-search input { width: 0; padding: 0; border: 0; opacity: 0; transition: width .2s, opacity .2s; }
.sp-blog-search:focus-within input { width: 150px; padding: 5px 8px; border-bottom: 1px solid #a9c5aa; opacity: 1; }
.sp-blog-search button { width: 26px; height: 26px; border: 0; background: transparent; color: #777; font-size: 18px; cursor: pointer; }
.sp-post-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.sp-post-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; background: #fff; }
.sp-post-card__image { display: block; min-width: 0; height: 280px; background: #f6f3f0; }
.sp-post-card__image img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.sp-post-card__body { min-width: 0; padding: 22px 20px; }
.sp-post-card__body .sp-post-card__meta { margin: 0 0 14px; color: #777; font-size: 10px; line-height: 1.4; }
.sp-post-card h2 { margin: 0 0 12px; font-size: 18px; line-height: 1.25; }
.sp-post-card h2 a { color: #424242; text-decoration: none; }
.sp-post-card__body > p:not(.sp-post-card__meta) { margin: 0 0 13px; color: #666; font-size: 12px; line-height: 1.5; }
.sp-post-card__body > .sp-text-link { font-size: 12px; }
@media (max-width: 768px) {
  .sp-home-exact .sp-home-hero { width: 100%; height: auto; min-height: 0; grid-template-columns: 1fr; }
  .sp-home-exact .sp-home-hero__image { height: auto; aspect-ratio: 1.45; }
  .sp-home-brand { min-height: 190px; }
  .sp-home-brand h1 { font-size: clamp(38px, 11vw, 48px); }
  .sp-home-feature, .sp-home-feature--collaborazioni { width: min(100% - 36px, 560px); margin: 72px auto 88px; grid-template-columns: 1fr; gap: 20px; }
  .sp-home-feature--collaborazioni .sp-home-feature__copy { order: 2; }
  .sp-home-feature--collaborazioni .sp-home-feature__photo { order: 1; }
  .sp-home-feature__photo > img { height: auto; aspect-ratio: 1.5; }
  .sp-home-seal { width: 82px; height: 82px; right: -8px; top: -22px; }
  .sp-home-seal img { width: 30px; height: 42px; filter: brightness(0) saturate(100%) invert(73%) sepia(13%) saturate(550%) hue-rotate(78deg) brightness(94%) contrast(88%); }
  .sp-home-work { min-height: 240px; }
  .sp-home-work h2 { font-size: 30px; }
  .sp-home-slider { grid-template-columns: 28px 1fr 28px; gap: 10px; }
  .sp-gallery-inner { width: min(100% - 28px, 560px); padding-top: 34px; }
  .sp-gallery-inner > .sp-page__title { margin-bottom: 30px; font-size: 36px; }
  .sp-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sp-gallery-column { gap: 8px; }
  .sp-blog-inner { padding-top: 34px; }
  .sp-blog-inner > .sp-page__title { margin-bottom: 42px; }
  .sp-blog-search { top: 42px; }
  .sp-post-grid { gap: 14px; }
  .sp-post-card { grid-template-columns: 1fr 1fr; min-height: 180px; }
  .sp-post-card__image { height: 180px; }
  .sp-post-card__body { padding: 14px 12px; }
  .sp-post-card h2 { font-size: 15px; }
  .sp-post-card__body > p:not(.sp-post-card__meta) { font-size: 11px; }
}
@media (max-width: 480px) {
  .sp-post-card { grid-template-columns: 1fr; }
  .sp-post-card__image { height: auto; aspect-ratio: 1.3; }
  .sp-post-card__body { padding: 15px 16px 18px; }
  .sp-page--contatti .wpcf7-form > p { grid-template-columns: 1fr; gap: 16px; }
}

/* Wix sections reveal with opacity as they enter the viewport; avoid the old upward jump. */
.sp-reveal { opacity: 0; transform: none; transition: opacity .9s ease; }
.sp-reveal--left, .sp-reveal--right, .sp-reveal--up { transform: none; }
.sp-reveal.is-visible { opacity: 1; transform: none; }
.sp-home-exact .sp-home-hero__image { animation: sp-hero-image-enter 1.15s ease-out both; }
.sp-home-brand > * { animation: sp-hero-brand-enter .9s .16s ease-out both; }
.sp-page--about .sp-about-layout > img { animation: sp-about-image-enter 1.15s cubic-bezier(.22,.61,.36,1) both; }
.sp-page--about .sp-about-layout > div { animation: sp-about-copy-enter .9s .16s cubic-bezier(.22,.61,.36,1) both; }
@keyframes sp-hero-image-enter {
  from { opacity: .25; }
  to { opacity: 1; }
}
@keyframes sp-hero-brand-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes sp-about-image-enter {
  from { opacity: .35; transform: translate3d(-30px, var(--sp-parallax-y, 0px), 0) scale(1.1); }
  to { opacity: 1; transform: translate3d(0, var(--sp-parallax-y, 0px), 0) scale(1.06); }
}
@keyframes sp-about-copy-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sp-page--about .sp-about-layout > img { transform: translate3d(0, var(--sp-parallax-y, 0px), 0) scale(1.06); transform-origin: center; will-change: transform; }
@media (max-width: 768px) {
  .sp-reveal--left { transform: translate3d(-22px, 0, 0); }
  .sp-reveal--right { transform: translate3d(22px, 0, 0); }
  .sp-page--about .sp-about-layout > img { transform: none; will-change: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-reveal, .sp-reveal--left, .sp-reveal--right, .sp-reveal--up { opacity: 1; transform: none; transition: none; }
  .sp-page--about .sp-about-layout > img { transform: none; will-change: auto; }
  .sp-home-exact .sp-home-hero__image, .sp-home-brand > *, .sp-page--about .sp-about-layout > img, .sp-page--about .sp-about-layout > div { animation: none; }
}

/* Portfolio archive: the title occupies the lower left of the grain video panel,
   while the introduction sits beneath it as on the original site. */
.sp-page--portfolio .sp-page-banner { overflow: hidden; }
.sp-page--portfolio .sp-page-banner::after { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(255,255,255,.18); pointer-events: none; }
.sp-page--portfolio .sp-page-banner__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-page--portfolio .sp-page-banner__panel { min-height: 196px; height: 196px; padding: 28px 70px; text-align: left; display: flex; align-items: flex-start; justify-content: flex-start; z-index: 1; }
.sp-page--portfolio .sp-page-banner__panel h1 { margin: 0; line-height: 1.35; }
.sp-page--portfolio .sp-page-banner__panel > p { display: none; }
.sp-page--portfolio > .sp-page-banner + p { width: min(900px, calc(100% - 40px)); margin: 24px auto 72px; text-align: center; font-size: 18px; line-height: 1.55; }
.sp-page--portfolio .sp-project-card span { opacity: 0; transition: opacity .25s ease; }
.sp-page--portfolio .sp-project-card:hover span, .sp-page--portfolio .sp-project-card:focus-visible span { opacity: 1; }
.sp-page--portfolio .sp-project-grid { position: relative; left: 50%; margin: 80px 0 60px; transform: translateX(-50%); }
.sp-page--portfolio { overflow-x: clip; }

/* Project details: full-bleed faded cover behind the title, then project facts,
   description and a navigable photo gallery. */
.sp-project-detail { width: 100%; max-width: none; margin: 0; padding: 0 0 76px; }
.sp-project-back { display: none; }
.sp-project-hero { position: relative; min-height: clamp(430px, 46vw, 590px); display: flex; align-items: flex-end; padding: 70px max(6.3vw, 34px) 64px; background-position: center 48%; background-size: cover; overflow: hidden; isolation: isolate; }
.sp-project-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgba(255,255,255,.57); backdrop-filter: blur(1px); pointer-events: none; }
.sp-project-hero > h1 { position: relative; z-index: 2; width: min(1120px, 100%); margin: 0 auto; color: var(--verde); font: 600 clamp(38px, 4.2vw, 56px)/1.2 'Raleway',sans-serif; }
.sp-project-hero__open { position: absolute; inset: 0; z-index: 1; }
.sp-project-detail__meta { width: min(1120px, calc(100% - 48px)); margin: 86px auto 48px; display: grid; grid-template-columns: 1.7fr .7fr .7fr; gap: 30px; }
.sp-project-detail__meta h2 { margin: 0 0 8px; color: var(--verde); font: 600 18px/1.3 'Raleway',sans-serif; }
.sp-project-detail__meta p { margin: 0; }
.sp-project-detail > p { width: min(900px, calc(100% - 48px)); margin: 0 auto 1.3em; font-size: 16px; line-height: 1.7; }
.sp-project-gallery { width: min(1600px, calc(100% - 48px)); margin: 86px auto 42px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sp-project-gallery > a { display: block; min-width: 0; overflow: hidden; }
.sp-project-gallery img { display: block; width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s ease; }
.sp-project-gallery a:hover img, .sp-project-gallery a:focus-visible img { transform: scale(1.035); }
.sp-lightbox__prev, .sp-lightbox__next { position: absolute; top: 50%; width: 48px; height: 56px; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.7); background: rgba(0,0,0,.18); color: #fff; font: 300 42px/1 'Jost',sans-serif; cursor: pointer; }
.sp-lightbox__prev { left: 18px; }
.sp-lightbox__next { right: 18px; }
@media (max-width: 768px) {
  .sp-page--portfolio .sp-page-banner__panel { width: calc(100% - 28px); min-height: 150px; height: 150px; padding: 22px 26px; }
  .sp-page--portfolio .sp-page-banner__panel h1 { font-size: 38px; }
  .sp-page--portfolio > .sp-page-banner + p { margin: 22px auto 42px; font-size: 16px; }
  .sp-project-hero { min-height: 390px; padding: 42px 24px; }
  .sp-project-hero > h1 { font-size: clamp(30px, 8vw, 42px); }
  .sp-project-detail__meta { grid-template-columns: 1fr 1fr; gap: 22px; margin: 48px auto 32px; }
  .sp-project-detail__meta > div:first-child { grid-column: 1 / -1; }
  .sp-project-detail > p { width: calc(100% - 40px); font-size: 15px; }
  .sp-project-gallery { width: calc(100% - 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 52px; }
  .sp-lightbox__prev { left: 6px; }
  .sp-lightbox__next { right: 6px; }
  .sp-contact-hero { grid-template-columns: 1fr; }
  .sp-contact-hero__photo { min-height: 0; aspect-ratio: 1.5; }
  .sp-contact-hero__panel { min-height: 260px; padding: 54px 28px; }
  .sp-contact-hero__panel h1 { margin-bottom: 20px; font-size: 42px; }
  .sp-contact-seal { left: -6px; top: -34px; width: 90px; height: 90px; opacity: .4; }
  .sp-contact-cards { width: min(100% - 36px, 520px); margin-top: 46px; grid-template-columns: 1fr; }
  .sp-contact-card { min-height: 0; padding: 24px 12px; }
  .sp-contact-card + .sp-contact-card { border-top: 1px solid #dedbd8; border-left: 0; }
  .sp-page--contatti .sp-form { width: min(100% - 36px, 620px); margin-top: 52px; }
  .sp-page--contatti .sp-form h2 { font-size: 30px; }
  .sp-lightbox { padding: 48px 12px; }
  .sp-lightbox__image { max-width: 100%; max-height: calc(100vh - 96px); }
}

/* Typography and media sizing calibrated against the original Wix layouts and
   the supplied full-page reference captures (desktop and mobile). */
body { font-size: 16px; }
.sp-page p, .sp-project-detail > p, .sp-about-activity__copy p,
.sp-partner-card__copy p, .sp-publication > div > p { font-size: 16px; line-height: 1.65; }
.sp-home-feature__copy h2 { font-size: 27px; }
.sp-home-feature__copy p, .sp-home-feature__copy a { font-size: 15px; line-height: 1.6; }
.sp-home-slide p { font-size: 17px; }
.sp-home-slide small { font-size: 15px; }
.sp-about-activity h2, .sp-about-activity h3 { font-size: 29px; }
.sp-page-banner__panel p { font-size: 17px; line-height: 1.7; }
.sp-page--pubblicazioni .sp-publication h2 { font-size: 32px; }
.sp-partner-card__copy h2 { font-size: 17px; line-height: 1.55; }
.sp-contact-hero__panel > p { font-size: 18px; }
.sp-contact-card p { font-size: 16px; }
.sp-page--contatti .wpcf7-form > p > label { font-size: 16px; }
.sp-page--contatti .sp-contact-field--privacy { font-size: 14px !important; }
.sp-blog-inner { width: min(660px, calc(100% - 36px)); }
.sp-blog-inner > .sp-page__title { font-size: 40px; }
.sp-post-card { min-height: 320px; }
.sp-post-card__image { height: 320px; }
.sp-post-card__body { padding: 24px 24px; }
.sp-post-card__body .sp-post-card__meta { font-size: 12px; }
.sp-post-card h2 { font-size: 21px; }
.sp-post-card__body > p:not(.sp-post-card__meta) { font-size: 14px; line-height: 1.6; }
.sp-post-card__body > .sp-text-link { font-size: 14px; }
.sp-gallery-inner { width: min(780px, calc(100% - 40px)); }
.sp-gallery-inner > .sp-page__title { font-size: 48px; }
.sp-project-detail > p { font-size: 17px; }
.sp-project-detail__meta p { font-size: 16px; }
.sp-home-feature__title-link { color: inherit; text-decoration: none; }
.sp-home-feature__title-link:hover, .sp-home-feature__title-link:focus-visible { text-decoration: underline; text-underline-offset: 5px; }
.sp-home-feature__image-link { display: block; overflow: hidden; }
.sp-home-feature__image-link img { transition: transform .45s ease; }
.sp-home-feature__image-link:hover img, .sp-home-feature__image-link:focus-visible img { transform: scale(1.025); }
.sp-home-feature__image-link:focus-visible, .sp-home-feature__title-link:focus-visible { outline: 2px solid #86a985; outline-offset: 4px; }
@media (max-width: 768px) {
  .sp-page p, .sp-project-detail > p, .sp-about-activity__copy p,
  .sp-partner-card__copy p, .sp-publication > div > p { font-size: 16px; }
  .sp-post-card { min-height: 240px; }
  .sp-post-card__image { height: 240px; }
  .sp-post-card h2 { font-size: 18px; }
  .sp-post-card__body > p:not(.sp-post-card__meta) { font-size: 13px; }
  .sp-gallery-inner { width: min(100% - 28px, 560px); }
}
@media (max-width: 480px) {
  .sp-post-card { min-height: 0; }
  .sp-post-card__image { height: auto; }
  .sp-post-card h2 { font-size: 19px; }
  .sp-post-card__body > p:not(.sp-post-card__meta) { font-size: 14px; }
}

/* Match measured live Wix dimensions at the same 1080px viewport. These rules
   replace the earlier undersized caps on Home, Gallery and Blog. */
body { font-size: 18px; }
.sp-page p, .sp-project-detail > p, .sp-about-activity__copy p,
.sp-partner-card__copy p, .sp-publication > div > p { font-size: 18px; line-height: 1.65; }
.sp-home-exact .sp-home-hero { width: min(1200px, 90vw); height: auto; aspect-ratio: 1.94; }
.sp-home-exact .sp-home-hero__image { min-width: 0; }
.sp-home-brand h1 { font-size: 56px; }
.sp-home-brand h1 small { font-size: 18px; }
.sp-home-feature { width: min(855px, calc(100% - 48px)); margin: 180px auto 172px; grid-template-columns: minmax(0, 1.45fr) minmax(0, .95fr); }
.sp-home-feature--collaborazioni { grid-template-columns: minmax(0, .95fr) minmax(0, 1.45fr); }
.sp-home-feature__photo > img { height: auto; aspect-ratio: 1.55; }
.sp-home-feature__copy h2 { font-size: 30px; }
.sp-home-feature__copy p, .sp-home-feature__copy a { font-size: 18px; line-height: 1.6; }
.sp-home-slide p { font-size: 18px; }
.sp-home-slide small { font-size: 16px; }
.sp-page--about .sp-page__title { font-size: clamp(58px, 5vw, 68px); }
.sp-about-layout > div > .sp-page__lead { font-size: 18px; }
.sp-about-layout h2, .sp-about-layout h5 { font-size: 32px; }
.sp-about-activity h2, .sp-about-activity h3 { font-size: 30px; }
.sp-page-banner__panel h1 { font-size: clamp(54px, 5vw, 66px); }
.sp-page-banner__panel p { font-size: 18px; line-height: 1.7; }
.sp-page--pubblicazioni .sp-publication h2 { font-size: 36px; }
.sp-partner-card__copy h2 { font-size: 18px; }
.sp-partner-card__copy p { font-size: 18px; }
.sp-project-card span { font-size: 22px; }
.sp-gallery-inner { width: min(1200px, 90vw); }
.sp-gallery-inner > .sp-page__title { font-size: 56px; }
.sp-blog-inner { width: min(1120px, 86vw); }
.sp-blog-inner > .sp-page__title { margin-bottom: 62px; padding-left: 123px; font-size: 62px; }
.sp-blog-inner > .sp-page__title::before { top: -15px; width: 132px; height: 132px; border: 1px solid #a9c5aa; background: url('Images/logo-carciofo.svg') center/48px 70px no-repeat; box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #a9c5aa; opacity: .75; }
.sp-post-card { min-height: clamp(320px, 41.4vw, 448px); column-gap: 32px; }
.sp-post-card__image { height: clamp(320px, 41.4vw, 448px); }
.sp-post-card__body { padding: 28px 28px; }
.sp-post-card__body .sp-post-card__meta { font-size: 14px; }
.sp-post-card h2 { font-size: 30px; line-height: 1.2; }
.sp-post-card__body > p:not(.sp-post-card__meta) { font-size: 16px; line-height: 1.6; }
.sp-post-card__body > .sp-text-link { font-size: 16px; }
.sp-contact-hero__panel > p { font-size: 18px; }
.sp-contact-card p { font-size: 18px; }
.sp-page--contatti .wpcf7-form > p > label { font-size: 18px; }
.sp-page--contatti .sp-contact-field--privacy { font-size: 15px !important; }
.site-header .inside-header { min-height: 54px; }
.main-title a { width: 34px; height: 44px; }
.main-navigation .main-nav ul li a { font-size: 16px; line-height: 54px; padding-inline: 18px; }
.sp-footer__info { font-size: 18px; }
.sp-footer__bottom { font-size: 12px; }
.sp-home-feature { width: min(855px, calc(100% - 48px)); }
.sp-page--pubblicazioni .sp-page-banner { height: 440px; }
.sp-page--pubblicazioni .sp-page-banner__panel { height: 292px; min-height: 292px; text-align: left; padding: 0; }
.sp-page--pubblicazioni .sp-page-banner__panel h1 { position: absolute; top: 82px; left: 128px; margin: 0; font-size: 62px; }
.sp-page--pubblicazioni .sp-page-banner__panel h1::before { position: absolute; top: -62px; left: -108px; width: 120px; height: 120px; margin: 0; background-size: 48px 72px; }
.sp-page--pubblicazioni .sp-page-banner__panel p { position: absolute; top: 193px; left: 113px; width: min(760px, calc(100% - 140px)); max-width: none; margin: 0; line-height: 1.8; }
.sp-page--pubblicazioni .sp-publication { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 22px; margin-top: 190px; }
.sp-page--pubblicazioni .sp-publication h2 { font-size: 32px; }
.sp-page--pubblicazioni .sp-page-banner__panel p,
.sp-page--pubblicazioni .sp-publication > div > p { font-size: 18px; }
.sp-page--pubblicazioni .sp-publication img { max-width: 400px; }
.sp-page--collaborazioni .sp-page-banner { height: 376px; }
.sp-gallery-inner { padding-top: 60px; }
.sp-blog-inner { padding-top: 32px; }
@media (max-width: 768px) {
  body { font-size: 17px; }
  .sp-page p, .sp-project-detail > p, .sp-about-activity__copy p,
  .sp-partner-card__copy p, .sp-publication > div > p { font-size: 17px; }
  .sp-home-exact .sp-home-hero { width: 100%; aspect-ratio: 1.5; }
  .sp-home-feature, .sp-home-feature--collaborazioni { width: min(100% - 36px, 600px); margin: 84px auto 92px; }
  .sp-home-feature__photo > img { height: auto; aspect-ratio: 1.5; }
  .sp-home-feature__copy h2 { font-size: 28px; }
  .sp-home-feature__copy p, .sp-home-feature__copy a { font-size: 17px; }
  .sp-page--about .sp-page__title { font-size: clamp(48px, 9vw, 60px); }
  .sp-page-banner__panel h1 { font-size: 48px; }
  .site-header .inside-header { min-height: 54px; }
  .main-navigation .main-nav ul li a { line-height: 54px; }
  .sp-page--pubblicazioni .sp-page-banner { height: 520px; }
  .sp-page--pubblicazioni .sp-page-banner__panel { height: auto; min-height: 420px; padding: 22px 22px; }
  .sp-page--pubblicazioni .sp-page-banner__panel h1 { position: relative; top: auto; left: auto; margin: 0 0 20px; font-size: 48px; }
  .sp-page--pubblicazioni .sp-page-banner__panel h1::before { position: static; width: 72px; height: 72px; margin: 0 8px 0 0; background-size: 28px 44px; }
  .sp-page--pubblicazioni .sp-page-banner__panel p { position: relative; top: auto; left: auto; width: auto; margin: 0; }
  .sp-page--pubblicazioni .sp-publication { grid-template-columns: 1fr; gap: 22px; margin: 58px auto; }
  .sp-page--collaborazioni .sp-page-banner { height: 376px; }
  .sp-gallery-inner { padding-top: 40px; }
  .sp-blog-inner { padding-top: 34px; }
  .sp-gallery-inner { width: calc(100% - 28px); }
  .sp-blog-inner { width: calc(100% - 36px); }
  .sp-blog-inner > .sp-page__title { padding-left: 96px; font-size: 44px; }
  .sp-blog-inner > .sp-page__title::before { top: -6px; width: 86px; height: 86px; }
  .sp-post-card { min-height: 300px; }
  .sp-post-card__image { height: 300px; }
  .sp-post-card h2 { font-size: 22px; }
  .sp-post-card__body > p:not(.sp-post-card__meta) { font-size: 15px; }
}
@media (max-width: 480px) {
  .sp-header-access { right: 10px; font-size: 14px; }
  .sp-page--contatti .wpcf7-form > p { grid-template-columns: 1fr; gap: 16px; }
}


/* Visual corrections from the live Wix comparison (2026-11-05). */
html { overflow-x: clip; }
.sp-page--about .sp-page__title::before,
.sp-page--portfolio .sp-page-banner__panel h1::before,
.sp-blog-inner > .sp-page__title::before {
  background-image: url('Images/manoecarciofo.svg');
}
.sp-page--pubblicazioni .sp-page-banner__panel h1::before {
  background-image: url('Images/Piuma.svg');
}

/* Wix seals are full illustrations; use each original SVG as a complete seal. */
.sp-page--about .sp-page__title::before,
.sp-page--portfolio .sp-page-banner__panel h1::before,
.sp-blog-inner > .sp-page__title::before {
  border: 0 !important;
  background: url('Images/manoecarciofo.svg') center / contain no-repeat !important;
  box-shadow: none !important;
  filter: none !important;
}
.sp-page--pubblicazioni .sp-page-banner__panel h1::before {
  border: 0 !important;
  background: url('Images/Piuma.svg') center / contain no-repeat !important;
  box-shadow: none !important;
  filter: none !important;
}

/* Contact hero: match the tall, deliberately softened Wix image panel. */
@media (min-width: 769px) {
  .sp-contact-hero { min-height: 70vh; overflow: hidden; }
  .sp-contact-hero__photo { min-height: 70vh; filter: blur(8px); transform: scale(1.06); }
}

/* Desktop widths measured against the original Gallery and Blog layouts. */
@media (min-width: 769px) {
  .sp-gallery-inner { width: min(780px, 90vw); padding-top: 45px; }
  .sp-gallery-inner > .sp-page__title { font-size: 44px; }
  .sp-blog-inner { width: min(760px, 86vw); }
  .sp-blog-inner > .sp-page__title { font-size: 52px; }
  .sp-post-card { min-height: 360px; column-gap: 22px; }
  .sp-post-card__image { height: 360px; }
  .sp-post-card__body { padding: 24px 22px; }
  .sp-post-card__meta { font-size: 12px !important; }
  .sp-post-card h2 { font-size: 25px; }
}

/* The live Wix blog feed uses a wide centered two-column card at this viewport. */
@media (min-width: 769px) {
  .sp-blog-inner { width: min(930px, 86vw); }
  .sp-post-card { min-height: clamp(320px, 41.4vw, 448px); column-gap: 32px; }
  .sp-post-card__image { height: clamp(320px, 41.4vw, 448px); }
  .sp-post-card__body { padding: 28px; }
}

/* Match the original seal scale beside the two page titles. */
.sp-page--pubblicazioni .sp-page-banner__panel h1::before {
  top: -72px;
  left: -108px;
  width: 140px;
  height: 140px;
}
.sp-page--portfolio .sp-page-banner__panel h1::before {
  width: 140px;
  height: 140px;
  margin-left: -20px;
}

/* Motion and image proportions refined against the live Wix pages. */
@media (min-width: 769px) {
  .sp-contact-hero { min-height: 0; height: min(733px, calc(100vh - 54px)); overflow: hidden; }
  .sp-contact-hero__photo { min-height: 0; height: 100%; filter: none !important; transform: translate3d(0, var(--sp-parallax-y, 0px), 0) scale(1.04) !important; will-change: transform; }
  .sp-contact-hero__panel { min-height: 100%; }
  .sp-about-layout { grid-template-columns: minmax(360px, 35%) minmax(0, 1fr); align-items: start; }
  .sp-about-layout > img { position: relative !important; top: auto !important; height: auto !important; max-height: none !important; aspect-ratio: 443 / 836; object-fit: cover; transform: translate3d(0, var(--sp-parallax-y, 0px), 0) !important; will-change: transform; }
  .sp-about-layout > div { width: min(640px, calc(100% - 72px)); padding-top: 30px; }
}
.sp-home-exact .sp-home-hero { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.sp-home-exact .sp-home-hero__image { grid-column: 1; grid-row: 1; width: 100%; height: 100%; object-fit: cover; animation: none !important; }
.sp-home-exact .sp-home-brand { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 0; box-sizing: border-box; background: #FAFAFA; }
.sp-home-exact .sp-home-brand > img,
.sp-home-exact .sp-home-brand h1 > span,
.sp-home-exact .sp-home-brand h1 > small { opacity: 1; transform: none; }
.sp-home-motion-ready .sp-home-brand > img,
.sp-home-motion-ready .sp-home-brand h1 > span { animation: sp-brand-zoom-out .85s cubic-bezier(.2,.7,.25,1) both; }
.sp-home-motion-ready .sp-home-brand > img { animation-delay: .32s; }
.sp-home-motion-ready .sp-home-brand h1 > span { animation-delay: .32s; }
.sp-home-motion-ready .sp-home-brand h1 > small { animation: sp-tagline-from-right .75s cubic-bezier(.2,.7,.25,1) 1.2s both; }
@keyframes sp-brand-zoom-out { from { opacity: 0; transform: scale(1.16); } to { opacity: 1; transform: scale(1); } }
@keyframes sp-tagline-from-right { from { opacity: 0; transform: translateX(38px); } to { opacity: 1; transform: translateX(0); } }
.sp-home-seal { border: 0 !important; background: transparent !important; }
.sp-home-seal::before, .sp-home-seal::after { display: none !important; }
.sp-home-seal img { width: 112px !important; height: 112px !important; object-fit: contain !important; opacity: 1 !important; filter: none !important; }
.sp-reveal { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .85s ease, transform .85s cubic-bezier(.2,.7,.2,1); }
.sp-reveal--left { transform: translate3d(30px, 0, 0); }
.sp-reveal--right { transform: translate3d(-30px, 0, 0); }
.sp-reveal--up { transform: translate3d(0, 30px, 0); }
.sp-reveal--down { transform: translate3d(0, -22px, 0); }
.sp-reveal--fade { transform: none; }
.sp-reveal.is-visible { opacity: 1; transform: translate3d(0,0,0); }
.sp-home-feature__photo.is-visible .sp-home-seal { animation: sp-seal-rise .8s cubic-bezier(.2,.7,.2,1) .12s both; }
@keyframes sp-seal-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.sp-home-work h2 { opacity: 0; transition: opacity .9s ease; }
.sp-home-work.is-visible h2 { opacity: 1; }
.sp-home-slider__items { overflow: hidden; }
.sp-home-slide { transition: transform .6s cubic-bezier(.22,.61,.36,1), opacity .45s ease; }
.sp-home-slide.is-active { transform: translateX(0); }
@media (max-width: 768px) {
  .sp-home-exact .sp-home-hero { grid-template-columns: 1fr; }
  .sp-home-exact .sp-home-brand { grid-column: 1; grid-row: 2; min-height: 190px; }
  .sp-about-layout > img { position: relative !important; height: auto !important; aspect-ratio: 443 / 836; transform: none !important; }
  .sp-contact-hero__photo { filter: none !important; transform: none !important; }
  .sp-reveal, .sp-reveal--left, .sp-reveal--right, .sp-reveal--up, .sp-reveal--down, .sp-reveal--fade { opacity: 1; transform: none; transition: none; }
  .sp-home-work h2 { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-home-motion-ready .sp-home-brand > img,
  .sp-home-motion-ready .sp-home-brand h1 > span,
  .sp-home-motion-ready .sp-home-brand h1 > small,
  .sp-home-feature__photo.is-visible .sp-home-seal { animation: none !important; }
  .sp-reveal, .sp-home-work h2 { opacity: 1; transform: none; transition: none; }
}
.sp-home-feature__copy h2 { margin: 0 0 18px; font: 500 30px/1.2 'Raleway', sans-serif !important; color: var(--verde); }
.sp-home-feature__copy h2 a { color: inherit; font: inherit; text-decoration: none; }
.sp-home-feature__copy > p { font-size: 18px; line-height: 1.7; }
.sp-home-exact .sp-home-hero { width: min(980px, 78vw); }
@media (max-width: 768px) {
  .sp-home-exact .sp-home-hero { width: 100%; }
  .sp-home-feature__copy h2 { font-size: 28px !important; }
}

/* Match the inspected Wix Home hero measurements (490 × 578 px per column). */
@media (min-width: 769px) {
  .sp-home-exact .sp-home-hero {
    width: min(980px, 90vw);
    aspect-ratio: 980 / 578;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sp-home-exact .sp-home-hero__image,
  .sp-home-exact .sp-home-brand { height: 100%; min-height: 0; }
  .sp-home-exact .sp-home-brand {
    background-color: #FAFAFA !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .sp-home-brand > img { width: 121px; height: 148px; flex: 0 0 121px; }
  .sp-home-brand h1 { font-size: 60px; line-height: .9; }
  .sp-home-brand h1 small { font-size: 23px; }
  .sp-home-feature--about .sp-home-feature__photo > img { aspect-ratio: 501 / 323; height: auto; object-fit: cover; }
  .sp-home-feature--collaborazioni .sp-home-feature__photo > img { aspect-ratio: 500 / 320; height: auto; object-fit: cover; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > img { width: 100%; height: auto; aspect-ratio: 500 / 389; object-fit: cover; object-position: center; }
}
@media (max-width: 768px) {
  .sp-home-brand > img { width: 92px; height: 112px; flex-basis: 92px; }
  .sp-home-brand h1 { font-size: clamp(38px, 11vw, 48px); }
  .sp-home-brand h1 small { font-size: 18px; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > img { aspect-ratio: 500 / 389; height: auto; object-fit: cover; }
}
@media (min-width: 769px) {
  .sp-home-feature--pubblicazioni .sp-home-feature__photo { height: auto; aspect-ratio: 500 / 389; overflow: hidden; align-self: start; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > .sp-home-feature__image-link { position: absolute; inset: 0; display: block; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > .sp-home-feature__image-link > img { display: block; width: 100%; height: 100% !important; aspect-ratio: auto; object-fit: cover; object-position: center; }
}
@media (max-width: 768px) {
  .sp-home-feature--pubblicazioni .sp-home-feature__photo { height: auto; aspect-ratio: 500 / 389; overflow: hidden; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > .sp-home-feature__image-link { position: absolute; inset: 0; display: block; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > .sp-home-feature__image-link > img { width: 100%; height: 100% !important; aspect-ratio: auto; object-fit: cover; }
}

/* Home animation timing and per-section Wix seal placement. */
@media (min-width: 769px) {
  .sp-home-exact .sp-home-brand { background: rgba(250, 250, 250, .6) !important; }
  .sp-home-motion-ready .sp-home-brand > img,
  .sp-home-motion-ready .sp-home-brand h1 > span { animation-duration: 1.6s; animation-delay: .4s; }
  .sp-home-motion-ready .sp-home-brand h1 > small { animation-duration: 1.2s; animation-delay: 2.05s; }

  .sp-home-feature--about .sp-home-seal { top: -47px; right: -111px; left: auto; width: 190px; height: 190px; }
  .sp-home-feature--about .sp-home-seal img { width: 190px !important; height: 190px !important; }
  .sp-home-feature--collaborazioni .sp-home-seal { top: -41px; left: -125px; right: auto; width: 200px; height: 200px; }
  .sp-home-feature--collaborazioni .sp-home-seal img { width: 200px !important; height: 200px !important; }
  .sp-home-feature--pubblicazioni .sp-home-seal { top: -70px; right: 0; left: auto; width: 230px; height: 230px; }
  .sp-home-feature--pubblicazioni .sp-home-seal img { width: 230px !important; height: 230px !important; }
}
@media (max-width: 768px) {
  .sp-home-exact .sp-home-brand { background: rgba(250, 250, 250, .6) !important; }
  .sp-home-feature--about .sp-home-seal { width: 110px; height: 110px; right: -20px; left: auto; top: -26px; }
  .sp-home-feature--about .sp-home-seal img { width: 110px !important; height: 110px !important; }
  .sp-home-feature--collaborazioni .sp-home-seal { width: 110px; height: 110px; left: -14px; right: auto; top: -25px; }
  .sp-home-feature--collaborazioni .sp-home-seal img { width: 110px !important; height: 110px !important; }
  .sp-home-feature--pubblicazioni .sp-home-seal { width: 120px; height: 120px; right: -8px; left: auto; top: -32px; }
  .sp-home-feature--pubblicazioni .sp-home-seal img { width: 120px !important; height: 120px !important; }
  .sp-home-motion-ready .sp-home-brand > img,
  .sp-home-motion-ready .sp-home-brand h1 > span { animation-duration: 1.6s; animation-delay: .4s; }
  .sp-home-motion-ready .sp-home-brand h1 > small { animation-duration: 1.2s; animation-delay: 2.05s; }
}

@media (min-width: 769px) { .sp-home-feature--pubblicazioni .sp-home-seal { right: -155px; } }


/* Final Wix home seals: original assets, exact bounds and offsets from the supplied screenshots. */
@media (min-width: 769px) {
  .sp-home-exact .sp-home-brand { background: rgba(255, 255, 255, .6) !important; }
  .sp-home-feature--about .sp-home-seal { top: -46.56px; right: -108.29px; width: 189.11px; height: 189.11px; }
  .sp-home-feature--about .sp-home-seal img { width: 189.11px !important; height: 189.11px !important; }
  .sp-home-feature--collaborazioni .sp-home-seal { top: -40.94px; left: -124.94px; width: 199.88px; height: 199.88px; }
  .sp-home-feature--collaborazioni .sp-home-seal img { width: 199.88px !important; height: 199.88px !important; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo { overflow: visible; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > .sp-home-feature__image-link { overflow: hidden; }
  .sp-home-feature--pubblicazioni .sp-home-seal { top: -70.3px; right: -153.03px; width: 230.59px; height: 230.59px; }
  .sp-home-feature--pubblicazioni .sp-home-seal img { width: 230.59px !important; height: 230.59px !important; }
}
@media (max-width: 768px) {
  .sp-home-exact .sp-home-brand { background: rgba(255, 255, 255, .6) !important; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo { overflow: visible; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo > .sp-home-feature__image-link { overflow: hidden; }
}

/* Keep each Home seal on its own image, clear of the adjacent copy. */
@media (min-width: 769px) {
  .sp-home-exact .sp-home-hero { background: #fff !important; }
  .sp-home-exact .sp-home-brand { background: rgba(255, 255, 255, .6) !important; }
  .sp-home-feature--about .sp-home-seal { top: -30px; right: 8px; left: auto; width: 170px; height: 170px; }
  .sp-home-feature--about .sp-home-seal img { width: 170px !important; height: 170px !important; }
  .sp-home-feature--collaborazioni .sp-home-seal { top: -30px; left: 8px; right: auto; width: 180px; height: 180px; }
  .sp-home-feature--collaborazioni .sp-home-seal img { width: 180px !important; height: 180px !important; }
  .sp-home-feature--pubblicazioni .sp-home-seal { top: -42px; right: 8px; left: auto; width: 200px; height: 200px; }
  .sp-home-feature--pubblicazioni .sp-home-seal img { width: 200px !important; height: 200px !important; }
}

/* Home feature rows: Wix typography, image proportions and seal anchors. */
@media (min-width: 769px) {
  .sp-home-feature {
    width: min(863px, calc(100% - 48px));
    left: 16.5px;
    grid-template-columns: minmax(0, 501fr) minmax(0, 335fr);
    gap: 27px;
    align-items: start;
  }
  .sp-home-feature--collaborazioni {
    width: min(775px, calc(100% - 48px));
    left: 0;
    grid-template-columns: minmax(0, 248fr) minmax(0, 500fr);
    gap: 27px;
  }
  .sp-home-feature--pubblicazioni {
    width: min(809px, calc(100% - 48px));
    left: 17.5px;
    grid-template-columns: minmax(0, 500fr) minmax(0, 278fr);
    gap: 31px;
  }
  .sp-home-feature__photo { height: auto; overflow: visible !important; align-self: start; }
  .sp-home-feature__photo > .sp-home-feature__image-link { position: absolute; inset: 0; display: block; overflow: hidden; }
  .sp-home-feature__photo > .sp-home-feature__image-link > img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
  .sp-home-feature--about .sp-home-feature__photo { aspect-ratio: 501 / 323; }
  .sp-home-feature--collaborazioni .sp-home-feature__photo { aspect-ratio: 500 / 320; }
  .sp-home-feature--pubblicazioni .sp-home-feature__photo { aspect-ratio: 500 / 389; }
  .sp-home-feature__copy { z-index: 2; align-self: start; min-width: 0; padding: 0; }
  .sp-home-feature__copy h2 { margin: 0; font: 500 30px/35px 'Raleway', sans-serif !important; }
  .sp-home-feature__copy h2 a { font: inherit; }
  .sp-home-feature__copy > p { width: min(245px, 100%); max-width: 245px; margin: 0 0 4px; font: 400 15px/25.5px 'Courier Prime', 'Courier New', monospace !important; }
  .sp-home-feature__copy > p + p { margin-top: 4px; }
  .sp-home-feature--about .sp-home-feature__copy { padding-top: 43px; }
  .sp-home-feature--about .sp-home-feature__copy h2 { margin-bottom: 39px; }
  .sp-home-feature--collaborazioni .sp-home-feature__copy { padding-top: 73px; }
  .sp-home-feature--collaborazioni .sp-home-feature__copy h2 { margin-bottom: 29px; }
  .sp-home-feature--pubblicazioni .sp-home-feature__copy { padding-top: 125px; }
  .sp-home-feature--pubblicazioni .sp-home-feature__copy h2 { margin-bottom: 30px; }

  .sp-home-feature--about .sp-home-seal { top: -46.56px; right: -108.29px; left: auto; width: 189.11px; height: 189.11px; }
  .sp-home-feature--about .sp-home-seal img { width: 189.11px !important; height: 189.11px !important; }
  .sp-home-feature--collaborazioni .sp-home-seal { top: -40.94px; left: -124.94px; right: auto; width: 199.88px; height: 199.88px; }
  .sp-home-feature--collaborazioni .sp-home-seal img { width: 199.88px !important; height: 199.88px !important; }
  .sp-home-feature--pubblicazioni .sp-home-seal { top: -70.3px; right: -153.03px; left: auto; width: 230.59px; height: 230.59px; }
  .sp-home-feature--pubblicazioni .sp-home-seal img { width: 230.59px !important; height: 230.59px !important; }
}

@media (min-width: 769px) { .sp-home-feature { position: relative; } .sp-home-feature__copy > p { font-family: 'Courier New', Courier, monospace !important; } }


@media (min-width: 769px) { .sp-home-feature--about .sp-home-feature__copy h2 { margin-bottom: 65px; } .sp-home-feature--collaborazioni .sp-home-feature__copy h2 { margin-bottom: 51px; } }


@media (min-width: 769px) { .sp-home-feature--about { margin-top: 78px; } .sp-home-feature--about .sp-home-seal { right: -110.55px; } .sp-home-feature--pubblicazioni .sp-home-seal { right: -156.3px; } }


@media (min-width: 769px) { .sp-home-feature--about { margin-top: 112px; } }


/* About page portrait: viewport-height crop and slow Wix-style parallax. */
@media (min-width: 769px) {
  .sp-about-layout > img {
    top: -44px !important;
    height: 100vh !important;
    max-height: none !important;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

/* Keep the parallax photo behind the biography column while it moves. */
@media (min-width: 769px) {
  .sp-about-layout > img {
    z-index: 0 !important;
  }
  .sp-about-layout > div {
    position: relative;
    z-index: 1;
  }
}

/* The following biography sections must paint over the moving portrait. */
.sp-about-activities {
  position: relative;
  z-index: 2;
  background: #fff;
}
@media (min-width: 769px) {
  .sp-about-activities::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto 0 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: #fff;
  }
}

/* Contact hero: match the reference section height, seal, and slow parallax crop. */
@media (min-width: 769px) {
  .sp-contact-hero {
    height: 614px !important;
    min-height: 0 !important;
    overflow: hidden;
  }
  .sp-contact-hero__photo {
    position: relative;
    top: -65px;
    height: 100vh !important;
    min-height: 0 !important;
    filter: none !important;
    transform: translate3d(0, var(--sp-parallax-y, 0px), 0) !important;
    will-change: transform;
  }
  .sp-contact-hero__panel {
    min-height: 100%;
    padding: 78px clamp(43px, 7.5vw, 125px) 60px;
    background: #fff;
  }
  .sp-contact-seal {
    top: -56px;
    left: -135px;
    width: 160px;
    height: 160px;
    opacity: 1;
  }
  .sp-contact-seal img { display: block; width: 100%; height: 100%; object-fit: contain; }
  .sp-contact-seal svg { display: none; }
  .sp-contact-cards { margin-top: 0; }
}

/* The home title panel uses the site's white page background. */
.sp-home-exact .sp-home-brand,
.sp-home-exact .sp-home-brand[style] {
  background: #fff !important;
}
@media (min-width: 769px) {
  .sp-contact-hero {
    grid-template-rows: 614px;
  }
  .sp-contact-hero__photo {
    align-self: start;
  }
  .sp-contact-hero__panel {
    height: 614px;
    min-height: 0 !important;
    box-sizing: border-box;
  }
}
@media (min-width: 769px) {
  .sp-contact-hero__panel { padding: 94px 59px 60px clamp(43px, 7.5vw, 125px); }
  .sp-contact-hero__panel h1 { margin-bottom: 39px; font-size: 55px; }
  .sp-contact-hero__panel > p { max-width: 403px; font-size: 18px; line-height: 27px; }
  .sp-contact-cards { width: 100%; }
  .sp-contact-card { min-height: 311px; display: flex; flex-direction: column; justify-content: center; }
  .sp-page--contatti .sp-form { margin-top: 9px; }
}

/* Privacy consent stays on one continuous text line/column beside its checkbox. */
.sp-page--contatti .sp-contact-field--privacy {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
}
.sp-page--contatti .sp-contact-field--privacy .wpcf7-form-control-wrap {
  grid-column: 1;
  display: block;
  width: 16px;
  margin: 2px 0 0;
}
.sp-page--contatti .sp-contact-field--privacy .sp-contact-privacy-copy {
  grid-column: 2;
  display: block;
  min-width: 0;
  line-height: 1.5;
}
.sp-page--contatti .sp-contact-field--privacy input[type="checkbox"] { margin: 0; }
.sp-home-exact .sp-home-brand,
.sp-home-exact .sp-home-brand[style] {
  background-color: #fff !important;
  background-image: none !important;
  background-clip: padding-box;
  isolation: isolate;
  mix-blend-mode: normal;
}

/* Keep the section heading and remove the duplicate heading inside the form. */
.sp-page--contatti .sp-form #contact-form > h2 { display: none !important; }

/* The legacy hero wash was tinting both columns, including the white brand panel. */
.sp-home-exact .sp-home-hero::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

/* Requested trial: original #FAFAFA brand-panel color, with the hero wash disabled. */
.sp-home-exact .sp-home-brand,
.sp-home-exact .sp-home-brand[style] {
  background-color: #FAFAFA !important;
  background-image: none !important;
}

/* Collaborazioni: match Wix's 650 px cards, portrait crops and inline copy. */
.sp-page--collaborazioni .sp-partner-grid {
  width: min(1340px, calc(100vw - 80px));
  margin: 64px 50% 50px;
  transform: translateX(-50%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 273px;
  gap: 40px;
}
.sp-page--collaborazioni .sp-partner-card {
  height: 273px;
  min-height: 0;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  overflow: visible;
  background: #fafafa;
}
.sp-page--collaborazioni .sp-partner-card > img {
  display: block;
  width: 216px;
  height: 278px;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  transform: translateY(-5px);
}
.sp-page--collaborazioni .sp-partner-card > img.sp-partner-card__image--zucchini {
  object-position: 78.4% 50%;
}
.sp-page--collaborazioni .sp-partner-card__copy {
  min-width: 0;
  padding: 0 0 0 26px;
  color: #5c5c5c;
  font: 400 15px/21px 'Courier Prime', 'Courier New', monospace;
  text-align: left;
}
.sp-page--collaborazioni .sp-partner-card__copy h2 { display: none !important; }
.sp-page--collaborazioni .sp-partner-card__copy p {
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: inherit;
}
.sp-page--collaborazioni .sp-partner-card__copy p + p { margin-top: 0; }
.sp-page--collaborazioni .sp-partner-card__copy p.sp-partner-card__titleline { text-align: left; }
.sp-page--collaborazioni .sp-partner-card__titleline + p { text-align: left; }
.sp-page--collaborazioni .sp-partner-card__copy a { color: inherit; text-decoration: underline; }

/* Wix changes to a single centered card column below the wide desktop layout. */
@media (max-width: 1499px) {
  .sp-page--collaborazioni .sp-partner-grid {
    width: min(650px, calc(100vw - 48px));
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  .sp-page--collaborazioni .sp-partner-grid {
    width: min(650px, calc(100vw - 32px));
    margin-top: 44px;
    grid-auto-rows: auto;
    gap: 28px;
  }
  .sp-page--collaborazioni .sp-partner-card {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .sp-page--collaborazioni .sp-partner-card > img {
    width: 100%;
    height: min(70vw, 300px);
    aspect-ratio: auto;
    transform: none;
  }
  .sp-page--collaborazioni .sp-partner-card__copy {
    padding-left: 0;
    font-size: 15px;
    line-height: 21px;
  }
}

/* Blog search results mirror Wix's text-led result feed. */
.sp-search-page {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  min-height: 60vh;
  background: #fff;
}
.sp-search-blog.sp-blog-inner {
  width: min(930px, 86vw);
  margin: 0 auto !important;
  transform: none;
  padding: 40px 0 70px;
}
.sp-search-blog > .sp-page__title {
  margin: 0 0 54px;
  padding-left: 123px;
  font-size: 62px;
}
.sp-search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 0 0 28px;
}
.sp-blog-categories {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px 22px;
  min-width: 0;
}
.sp-blog-categories a {
  color: #5c5c5c;
  font: 400 14px/1.5 'Courier Prime', 'Courier New', monospace;
  text-decoration: none;
  white-space: nowrap;
}
.sp-blog-categories a:hover,
.sp-blog-categories a:focus-visible { color: var(--verde); text-decoration: underline; }
.sp-blog-categories__more { position: relative; }
.sp-blog-categories__more > summary {
  color: #5c5c5c;
  font: 400 14px/1.5 'Courier Prime', 'Courier New', monospace;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
.sp-blog-categories__more > summary::-webkit-details-marker { display: none; }
.sp-blog-categories__menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 8px);
  left: 0;
  display: grid;
  min-width: 190px;
  gap: 12px;
  padding: 14px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 4px 14px rgb(0 0 0 / 9%);
}
.sp-blog-categories__menu a { white-space: normal; }
.sp-blog-search--results {
  position: static;
  flex: 0 0 205px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sp-blog-search--results button {
  order: -1;
  flex: 0 0 28px;
  color: #777;
}
.sp-blog-search--results input,
.sp-blog-search--results:focus-within input {
  width: 100%;
  min-width: 0;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1px solid #d4d4d4;
  border-radius: 0;
  background: transparent;
  color: #5c5c5c;
  font: 400 14px/1.5 'Courier Prime', 'Courier New', monospace;
  opacity: 1;
}
.sp-blog-search__clear {
  flex: 0 0 20px;
  color: #777;
  font: 400 22px/1 'Raleway', sans-serif;
  text-align: center;
  text-decoration: none;
}
.sp-search-results { display: grid; gap: 60px; }
.sp-search-result {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 40px 30px 26px;
  border: 1px solid #f7f7f7;
  background: #fff;
}
.sp-search-result__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 18px;
  padding-right: 30px;
  color: #777;
  font: 400 11px/1.4 'Courier Prime', 'Courier New', monospace;
}
.sp-search-result__actions {
  position: absolute;
  top: 17px;
  right: 15px;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #777;
  font: 500 20px/1 'Raleway', sans-serif;
  cursor: pointer;
}
.sp-search-result__menu {
  position: absolute;
  z-index: 2;
  top: 44px;
  right: 16px;
  min-width: 150px;
  padding: 6px;
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
}
.sp-search-result__menu[hidden] { display: none; }
.sp-search-result__share {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: #fff;
  color: #555;
  font: 400 13px/1.4 'Raleway', sans-serif;
  text-align: left;
  cursor: pointer;
}
.sp-search-result__share:hover,
.sp-search-result__share:focus-visible { background: #f6f5f3; }
.sp-search-result h2 {
  margin: 25px 34px 17px 0;
  color: #5c5c5c;
  font: 500 20px/1.25 'Raleway', sans-serif;
}
.sp-search-result h2 a { color: inherit; text-decoration: none; }
.sp-search-result h2 a:hover,
.sp-search-result h2 a:focus-visible { text-decoration: underline; }
.sp-search-result__excerpt {
  margin: 0;
  color: #777;
  font: 400 15px/21px 'Courier Prime', 'Courier New', monospace;
}
.sp-search-result mark {
  padding: 0 1px;
  background: #f5dec4;
  color: inherit;
}
.sp-search-empty {
  min-height: 180px;
  padding: 28px 30px;
  border: 1px solid #f7f7f7;
  color: #666;
  font: 400 15px/1.5 'Courier Prime', 'Courier New', monospace;
}
.sp-search-pagination { margin-top: 32px; text-align: center; }
.sp-search-pagination .nav-links { display: flex; justify-content: center; gap: 10px; }
.sp-search-pagination a,
.sp-search-pagination span { color: #5c5c5c; font: 400 15px 'Courier Prime', monospace; }
@media (max-width: 768px) {
  .sp-search-blog.sp-blog-inner { width: calc(100% - 36px); padding: 34px 0 50px; }
  .sp-search-blog > .sp-page__title { margin-bottom: 36px; padding-left: 96px; font-size: 44px; }
  .sp-search-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .sp-blog-categories { width: 100%; gap: 9px 16px; }
  .sp-blog-categories a { font-size: 13px; }
  .sp-blog-categories__more > summary { font-size: 13px; }
  .sp-blog-search--results { align-self: flex-end; flex-basis: auto; width: min(220px, 100%); }
  .sp-search-results { gap: 28px; }
  .sp-search-result { padding: 18px 16px 20px; }
  .sp-search-result__meta { font-size: 10px; }
  .sp-search-result h2 { margin: 18px 30px 14px 0; font-size: 18px; }
  .sp-search-result__excerpt { font-size: 14px; line-height: 21px; }
}

/* Mobile reading flow: place paired photos above full-width copy. */
@media (max-width: 768px) {
  .sp-about-layout,
  .sp-about-layout > div,
  .sp-contact-layout,
  .sp-publication,
  .sp-page--collaborazioni .sp-partner-card__copy {
    width: 100%;
    max-width: none;
  }

  .sp-about-layout { gap: 0; }
  .sp-about-layout > img {
    width: 100%;
    max-height: 56vh;
    object-fit: cover;
  }
  .sp-about-layout > div { padding-inline: 20px; }

  .sp-home-feature,
  .sp-home-feature--collaborazioni {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-home-feature__copy { width: 100%; }

  .sp-page--collaborazioni .sp-partner-grid {
    width: calc(100% - 40px);
  }
  .sp-page--collaborazioni .sp-partner-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-page--collaborazioni .sp-partner-card > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.25;
    object-fit: cover;
  }
  .sp-page--collaborazioni .sp-partner-card__copy {
    padding: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .sp-publication {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin: 42px auto;
  }
  .sp-publication img {
    width: 100%;
    max-width: min(100%, 420px);
    max-height: 55vh;
  }

  .sp-post-card {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .sp-post-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1.35;
  }
  .sp-post-card__body { padding: 20px; }
  .sp-post-card h2 { font-size: 21px; }
  .sp-post-card__body > p:not(.sp-post-card__meta) { font-size: 15px; }

  .sp-page--contatti .sp-page__inner { padding-bottom: 48px; }
  .sp-contact-hero {
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    overflow: hidden;
  }
  .sp-contact-hero__photo {
    width: 100%;
    height: min(58vw, 350px) !important;
    min-height: 240px !important;
    top: auto !important;
    transform: none !important;
    background-position: center 45%;
  }
  .sp-contact-hero__panel {
    height: auto !important;
    min-height: 0 !important;
    padding: 44px 24px 40px;
    background: #fff;
  }
  .sp-contact-hero__panel h1 { margin-bottom: 18px; font-size: 44px; }
  .sp-contact-hero__panel > p { max-width: none; font-size: 16px; line-height: 1.65; }
  .sp-contact-seal { left: auto; right: 18px; top: -38px; width: 92px; height: 92px; }
  .sp-contact-cards {
    width: calc(100% - 40px);
    margin: 20px auto 0;
    grid-template-columns: minmax(0, 1fr);
  }
  .sp-contact-card { min-height: 0; padding: 24px 12px; }
  .sp-contact-card + .sp-contact-card { border-left: 0; border-top: 1px solid #dedbd8; }
  .sp-page--contatti .sp-form { width: calc(100% - 40px); margin: 42px auto 0; }
  .sp-page--contatti .sp-form h2 { font-size: 28px; }
  .sp-page--contatti .wpcf7-form > p { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sp-page--contatti .wpcf7-form > p > label,
  .sp-page--contatti .wpcf7-form > p > label.sp-contact-field--message,
  .sp-page--contatti .wpcf7-form > p > label.sp-contact-field--privacy,
  .sp-page--contatti .wpcf7-form > p > input[type="submit"] { grid-column: 1; }

  .sp-page--privacy .sp-page__inner { width: calc(100% - 40px); }
}

/* New Gutenberg posts use the same reading column and typography as the archive. */
.sp-single-post .sp-page__inner {
  width: min(898px, calc(100% - 48px));
  padding: 58px 0 82px;
}
.sp-single-post > .sp-page__inner > .sp-page__title {
  width: 100%;
  margin: 0 0 12px;
  margin-right: auto;
  margin-left: auto;
  color: var(--verde);
  font-size: clamp(34px, 4.5vw, 48px);
  line-height: 1.15;
}
.sp-single-post .sp-post-meta {
  margin: 0 0 30px;
  color: #777;
  font: 400 14px/1.5 'Courier Prime', 'Courier New', monospace;
}
.sp-single-post .sp-page__inner > p:not(.sp-post-meta),
.sp-single-post .sp-page__inner > ul,
.sp-single-post .sp-page__inner > ol,
.sp-single-post .sp-page__inner > blockquote,
.sp-single-post .sp-page__inner > .wp-block-paragraph,
.sp-single-post .sp-page__inner > .wp-block-list,
.sp-single-post .sp-page__inner > .wp-block-quote {
  max-width: 912px;
  margin-right: auto;
  margin-left: auto;
  color: #5c5c5c;
  font: 400 18px/1.75 'Courier Prime', 'Courier New', monospace;
}
.sp-single-post .sp-page__inner > h2,
.sp-single-post .sp-page__inner > .wp-block-heading:not(.sp-page__title) {
  max-width: 912px;
  margin: 1.7em auto .55em;
  color: var(--verde);
  font: 600 30px/1.25 'Raleway', sans-serif;
}
.sp-single-post .sp-page__inner > h3 {
  max-width: 912px;
  margin: 1.5em auto .55em;
  color: var(--verde);
  font: 600 24px/1.3 'Raleway', sans-serif;
}
.sp-single-post .sp-page__inner a { color: var(--verde); text-underline-offset: 3px; }
/* Immagini degli articoli: regole distinte senza sovrascritture. */
.sp-single-post .wp-block-image:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) {
  width: min(100%, 898px);
  max-width: 898px;
  margin: 22px auto;
}
.sp-single-post .wp-block-image:not(.alignleft):not(.alignright):not(.alignwide):not(.alignfull) img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 0 auto;
  object-fit: contain;
}
.sp-single-post .sp-post-inline-image {
  display: block;
  width: min(100%, 898px);
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 22px auto;
  object-fit: contain;
}
.sp-single-post img.sp-post-featured {
  display: block;
  width: min(100%, 898px);
  max-width: 100%;
  height: auto;
  max-height: none;
  margin: 28px auto 38px;
  object-fit: contain;
}
.sp-single-post .wp-block-image figcaption {
  margin-top: 10px;
  color: #777;
  font: 400 14px/1.5 'Courier Prime', 'Courier New', monospace;
  text-align: center;
}
.sp-single-post .wp-block-quote,
.sp-single-post blockquote {
  padding: 14px 22px;
  border-left: 2px solid var(--verde);
  background: #fafafa;
}
.sp-single-post .wp-block-separator { max-width: 760px; margin: 38px auto; border-color: #cbd6ca; }
@media (max-width: 768px) {
  .sp-single-post .sp-page__inner { width: calc(100% - 40px); padding: 38px 0 54px; }
  .sp-single-post .sp-page__inner > p:not(.sp-post-meta),
  .sp-single-post .sp-page__inner > ul,
  .sp-single-post .sp-page__inner > ol,
  .sp-single-post .sp-page__inner > blockquote,
  .sp-single-post .sp-page__inner > .wp-block-paragraph,
  .sp-single-post .sp-page__inner > .wp-block-list,
  .sp-single-post .sp-page__inner > .wp-block-quote { font-size: 16px; line-height: 1.7; }
  .sp-single-post .sp-page__inner > h2,
  .sp-single-post .sp-page__inner > .wp-block-heading:not(.sp-page__title) { font-size: 26px; }
}

/* Ritocchi richiesti sulle pagine biografia, portfolio e privacy. */
.sp-about-layout > div p,
.sp-about-activity__copy p,
.sp-about-activities__intro {
  text-align: justify;
  font-size: 17px;
}

.sp-page--about .sp-about-activities > h2.sp-about-activities__intro {
  width: min(660px, 100%);
  margin: 0 0 48px auto;
  color: var(--testo);
  font: 400 18px/1.55 'Courier Prime', 'Courier New', monospace;
}

.sp-page--about .sp-page__title {
  font-size: 55px;
}

.sp-about-activity h2,
.sp-about-activity h3 {
  font-size: 30px;
}

.sp-project-hero::before {
  background: linear-gradient(to top, rgba(255,255,255,.82) 0%, rgba(255,255,255,.5) 34%, rgba(255,255,255,0) 100%);
  backdrop-filter: none;
}

.sp-page--privacy p {
  text-align: justify;
}

.sp-page--privacy p > strong {
  font-weight: 700;
}

@media (max-width: 768px) {
  .sp-page--about .sp-about-activities > h2.sp-about-activities__intro {
    width: 100%;
    margin: 0 0 32px;
    font-size: 18px;
  }

  .sp-page--about .sp-page__title {
    font-size: clamp(38px, 9vw, 46px);
  }
}

/* Intestazione mobile: accesso a sinistra, logo e menu a destra. */
@media (max-width: 768px) {
  .site-header {
    position: relative;
    z-index: 1000;
  }

  .site-header .inside-header {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    min-height: 68px;
    padding: 0 10px;
    text-align: left;
  }

  .site-header .site-branding,
  .site-header .site-logo {
    position: absolute;
    top: 50%;
    right: 68px;
    z-index: 2;
    margin: 0;
    transform: translateY(-50%);
  }

  .site-header .main-title a {
    width: 30px;
    height: 40px;
  }

  #mobile-menu-control-wrapper {
    display: flex;
    position: relative;
    z-index: 1002;
    margin: 0;
  }

  #mobile-menu-control-wrapper .menu-toggle {
    display: inline-flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 0;
    color: #fff;
    font-size: 30px;
    line-height: 1;
  }

  #mobile-menu-control-wrapper .gp-icon,
  #mobile-menu-control-wrapper .gp-icon svg {
    color: #fff;
    fill: currentColor;
  }

  #mobile-menu-control-wrapper .gp-icon {
    position: relative;
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
  }

  #mobile-menu-control-wrapper .gp-icon svg {
    position: absolute;
    inset: 0;
    display: block !important;
    width: 30px;
    height: 30px;
    transition: opacity .22s ease, transform .32s cubic-bezier(.2,.7,.25,1);
  }

  #mobile-menu-control-wrapper .gp-icon svg:first-child {
    opacity: 1;
    transform: rotate(0) scale(1);
  }

  #mobile-menu-control-wrapper .gp-icon svg:nth-child(2) {
    opacity: 0;
    transform: rotate(-90deg) scale(.72);
  }

  #mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .gp-icon svg:first-child {
    opacity: 0;
    transform: rotate(90deg) scale(.72);
  }

  #mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .gp-icon svg:nth-child(2) {
    opacity: 1;
    transform: rotate(0) scale(1);
  }

  #mobile-menu-control-wrapper .menu-toggle .mobile-menu {
    display: none;
  }

  #site-navigation {
    position: absolute;
    top: calc(100% - 1px);
    right: 0;
    left: 0;
    z-index: 1001;
    width: 100%;
    margin: 0;
    background: var(--verde);
  }

  #site-navigation .inside-navigation {
    display: none;
    width: 100%;
    padding: 8px 0 14px;
    background: var(--verde);
  }

  #site-navigation.toggled .inside-navigation {
    display: block;
    background: #3E603B;
    clip-path: inset(0);
    animation: sp-mobile-menu-enter .38s cubic-bezier(.2,.7,.25,1) both;
  }

  #site-navigation .menu-toggle {
    display: none !important;
  }

  #site-navigation .main-nav > ul {
    display: block;
    width: 100%;
    margin: 0;
    background: #3E603B;
  }

  #site-navigation .main-nav > ul > li {
    width: 100%;
    text-align: left;
    background: #3E603B;
  }

  #site-navigation .main-nav ul li a {
    padding-inline: 24px;
    background: #3E603B;
    color: var(--verde-chiaro);
    font-size: 20px;
    line-height: 48px;
    text-align: left;
  }

  #site-navigation .main-nav ul li a:hover,
  #site-navigation .main-nav ul li[class*="current-menu-"] > a {
    background: #3E603B;
    color: #fff;
  }

  .sp-header-access {
    top: 50%;
    right: auto;
    left: 16px;
    z-index: 1003;
    transform: translateY(-50%);
    color: #fff;
    font-size: 15px;
    line-height: 1.5;
  }

  .sp-header-access:hover,
  .sp-header-access:focus-visible {
    color: #fff;
  }

  @keyframes sp-mobile-menu-enter {
    from { clip-path: inset(0 100% 0 0); }
    to { clip-path: inset(0); }
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  #mobile-menu-control-wrapper .gp-icon svg,
  #mobile-menu-control-wrapper .menu-toggle[aria-expanded="true"] .gp-icon svg {
    transition: none;
  }

  #site-navigation.toggled .inside-navigation {
    animation: none;
    clip-path: none;
  }
}

/* On mobile, introduce the brand panel before the hero photograph. */
@media (max-width: 768px) {
  .sp-home-exact .sp-home-hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    height: auto;
    aspect-ratio: auto;
  }

  .sp-home-exact .sp-home-brand {
    grid-column: 1;
    grid-row: 1;
    min-height: 190px;
    background: #FAFAFA !important;
    opacity: 1 !important;
    animation: sp-mobile-brand-panel-in .85s cubic-bezier(.2,.7,.25,1) both;
  }

  .sp-home-exact .sp-home-hero__image {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: auto;
    aspect-ratio: 1.45;
    object-fit: cover;
    animation: sp-mobile-hero-photo-in .9s ease-out 3.25s both !important;
  }

  @keyframes sp-mobile-brand-panel-in {
    from { transform: scale(.97); }
    to { transform: scale(1); }
  }

  @keyframes sp-mobile-hero-photo-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .sp-home-exact .sp-home-brand,
  .sp-home-exact .sp-home-hero__image {
    opacity: 1;
    animation: none !important;
    transform: none;
  }
}

/* Mobile header sizing and menu attachment: position the dropdown against the full green bar. */
@media (max-width: 768px) {
  .site-header {
    position: relative;
    min-height: 76px;
    overflow: visible;
  }

  .site-header .inside-header {
    position: static;
    min-height: 76px;
  }

  .site-header .site-branding,
  .site-header .site-logo {
    right: 80px;
  }

  .site-header .main-title a {
    width: 36px;
    height: 48px;
  }

  #mobile-menu-control-wrapper .menu-toggle {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
  }

  #mobile-menu-control-wrapper .gp-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }

  #mobile-menu-control-wrapper .gp-icon svg {
    width: 36px;
    height: 36px;
  }

  #site-navigation {
    top: calc(100% - 1px);
  }
}

/* Carosello Ambiti lavorativi: spazio per i testi lunghi e peso tipografico uniforme. */
.sp-home-slider__items { min-height: 176px; }
.sp-home-slide p,
.sp-home-slide small { font-weight: 700; }

@media (max-width: 768px) {
  .sp-home-slider__items { min-height: 260px; }
}

/* Nel lettore foto mostra solo la X, senza il cerchio di sfondo. */
.sp-lightbox .sp-lightbox__close,
.sp-lightbox .sp-lightbox__close:hover,
.sp-lightbox .sp-lightbox__close:focus {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Navigazione categorie sotto il titolo della pagina Blog. */
.sp-blog-index .sp-blog-inner > .sp-page__title { margin-bottom: 22px; }
.sp-blog-index .sp-blog-categories { margin: 0 0 34px; }
.sp-single-post__categories { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 28px; color: #686868; font: 400 15px/1.5 'Courier Prime', 'Courier New', monospace; }
.sp-single-post__categories > span { color: var(--verde, #3e603b); font-weight: 700; }
.sp-single-post__categories a { display: inline-block; padding: 3px 10px; border: 1px solid #d9e2d7; border-radius: 20px; color: var(--verde, #3e603b); text-decoration: none; }
.sp-single-post__categories a:hover,
.sp-single-post__categories a:focus-visible { background: #eef3ed; }
.sp-category-index .sp-page__title { margin-bottom: 22px; }
.sp-category-index .sp-category-heading { margin: 24px 0 26px; color: var(--verde, #3e603b); font: 500 28px/1.25 'Raleway', sans-serif; }
.sp-category-index .sp-blog-category--current { color: var(--verde, #3e603b); font-weight: 700; }
.sp-category-index .sp-post-card h2 { font-size: 22px; }
.sp-category-index { width: 100%; padding: 48px 20px 72px; }
.sp-category-index .sp-blog-inner { width: min(980px, calc(100% - 24px)); margin: 0 auto; padding: 38px 42px 48px; border: 1px solid #e5e5e2; background: #fff; box-shadow: 0 4px 18px rgb(40 50 38 / 7%); }
.sp-category-index .sp-post-grid { width: min(100%, 780px); margin: 0 auto; }
.single-post .entry-content > .sp-single-post__categories { width: min(760px, calc(100% - 40px)); margin: 26px auto 48px; }
@media (max-width: 768px) {
  .sp-single-post__categories { font-size: 14px; }
  .sp-category-index { padding: 28px 12px 48px; }
  .sp-category-index .sp-blog-inner { width: 100%; padding: 28px 18px 36px; }
  .sp-category-index .sp-post-grid { width: 100%; }
  .sp-category-index .sp-search-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 22px; }
  .sp-category-index .sp-blog-categories { width: 100%; gap: 9px 16px; }
  .sp-category-index .sp-post-card { grid-template-columns: 1fr; }
  .sp-category-index .sp-post-card__image { height: auto; aspect-ratio: 1.3; }
}

/* Blog metadata stays on one line where space allows. */
.sp-post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.sp-post-card time { display: inline; margin: 0; }

/* Keep the inline chain icon visible even when a global SVG rule collapses it. */
.sp-post-share__copy > svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px;
  flex: 0 0 20px;
  overflow: visible;
}

/* Mostra sulla barra WordPress mobile i collegamenti personalizzati dell'autrice. */
@media screen and (max-width: 782px) {
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-new-blog-post,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-site-home,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-manage-blog-posts,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-blog-editor-logout {
    display: block !important;
  }

  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-new-blog-post > a.ab-item,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-site-home > a.ab-item,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-manage-blog-posts > a.ab-item,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-blog-editor-logout > a.ab-item {
    width: auto;
    padding: 0 5px !important;
    overflow: visible;
    text-indent: 0;
    white-space: nowrap;
    font-size: 12px;
  }
}

@media screen and (max-width: 360px) {
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-new-blog-post > a.ab-item,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-site-home > a.ab-item,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-manage-blog-posts > a.ab-item,
  #wpadminbar #wp-toolbar > ul > li#wp-admin-bar-sp-blog-editor-logout > a.ab-item {
    padding: 0 3px !important;
    font-size: 11px;
  }
}
