/* Acrilammide — replica of the production layout (Enfold) on core blocks. */

:root {
  --ink: #11202a;
  --text: #444444;
  --slate: #576270;
  --slate-dark: #4a5461;
  --grey: #abb1b8;
  --tan: #d4b98c;
  --tan-dark: #c5a670;
  --line: #e1e1e1;
  --socket: #36393d;
  --socket-ink: #a7abb1;
  --legal: #3323dc;
  --content: 1052px;
  --gutter: clamp(20px, 4vw, 50px);
  --header-h: 90px;
  --header-h-small: 56px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Open Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

[id] {
  scroll-margin-top: calc(var(--header-h-small) + 20px);
}

.wp-site-blocks {
  padding: 0;
}

.wp-site-blocks > *,
.wp-block-post-content > * {
  margin-block: 0;
}

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

/* ---------- Header: sticky, shrinks on scroll ---------- */

.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 100;
}

body.admin-bar .wp-site-blocks > header.wp-block-template-part {
  top: var(--wp-admin--admin-bar--height, 32px);
}

.acr-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-inline: var(--gutter);
  transition: box-shadow 0.3s ease;
}

.is-scrolled .acr-header {
  box-shadow: 0 2px 14px rgba(17, 32, 42, 0.08);
}

.acr-header__inner {
  max-width: var(--content);
  margin-inline: auto;
  min-height: var(--header-h);
  gap: 24px;
  transition: min-height 0.3s ease;
}

.is-scrolled .acr-header__inner {
  min-height: var(--header-h-small);
}

.acr-logo {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1;
  white-space: nowrap;
  transition: font-size 0.3s ease;
}

.acr-logo a {
  color: var(--slate);
  text-decoration: none;
}

.is-scrolled .acr-logo {
  font-size: 20px;
}

.acr-nav {
  font-size: 13px;
  font-weight: 600;
}

.acr-nav .wp-block-navigation__container {
  gap: 26px;
  align-items: center;
}

.acr-nav .wp-block-navigation-item__content {
  color: #55606e;
  text-decoration: none;
  transition: color 0.2s ease;
}

.acr-nav .wp-block-navigation-item__content:hover,
.acr-nav .wp-block-navigation-item__content:focus-visible {
  color: var(--tan-dark);
}

.acr-nav .acr-nav-cta .wp-block-navigation-item__content {
  background: var(--tan);
  color: #fff;
  border-radius: 3px;
  padding: 11px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: background-color 0.2s ease, padding 0.3s ease;
}

.acr-nav .acr-nav-cta .wp-block-navigation-item__content:hover {
  background: var(--tan-dark);
  color: #fff;
}

.is-scrolled .acr-nav .acr-nav-cta .wp-block-navigation-item__content {
  padding-block: 8px;
}

@media (max-width: 1100px) {
  .acr-nav .wp-block-navigation__container {
    gap: 18px;
  }
}

@media (max-width: 1000px) {
  .acr-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex;
  }
  .acr-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none;
  }
}

.acr-nav .wp-block-navigation__responsive-container.is-menu-open {
  padding: 24px var(--gutter);
}

.acr-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 20px;
  font-size: 16px;
}

/* ---------- Hero ---------- */

.acr-hero.wp-block-cover {
  min-height: 604px;
  padding: 60px var(--gutter);
}

.acr-hero .wp-block-cover__inner-container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

.acr-hero__caption {
  width: 384px;
  max-width: 100%;
}

.acr-hero__caption > * + * {
  margin-top: 1px;
}

.acr-hero__title {
  margin: 0;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
}

.acr-hero__text {
  margin-bottom: 0;
  padding: 10px 15px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.acr-hero .acr-hero__buttons {
  margin-top: 20px;
  gap: 20px;
}

.acr-btn-hero .wp-block-button__link {
  min-width: 140px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 3px solid #fff;
  border-radius: 3px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.acr-btn-hero .wp-block-button__link:hover,
.acr-btn-hero .wp-block-button__link:focus-visible {
  background: #fff;
  color: var(--ink);
}

/* ---------- Sections ---------- */

.acr-section {
  padding: 130px var(--gutter);
}

.acr-section--intro,
.acr-section--boxes {
  padding-block: 50px;
}

.acr-section--slate {
  background: var(--slate);
  color: #fff;
}

.acr-section--grey {
  background: var(--grey);
  color: #fff;
}

.acr-section p {
  margin-block: 13.6px;
}

.acr-title {
  margin: 0;
  font-size: 35px;
  font-weight: 300;
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--ink);
}

.acr-section--slate .acr-title {
  color: #ebeff5;
}

.acr-sep.wp-block-separator {
  width: 50px;
  height: 0;
  margin: 42px auto 30px;
  border: 0;
  border-top: 2px solid var(--ink);
  background: none;
  opacity: 1;
}

.acr-section--slate .acr-sep.wp-block-separator {
  border-top-color: #fff;
}

.acr-arrow {
  position: relative;
}

.acr-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  z-index: 2;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 20px solid var(--slate);
}

/* Intro */

.acr-intro-title {
  margin: 0 0 50px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.acr-intro-buttons.wp-block-columns {
  gap: 63px;
  margin: 0;
}

.acr-btn-tan .wp-block-button__link {
  min-width: 200px;
  padding: 25px 50px 23px;
  background: var(--tan);
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.2s ease;
}

.acr-btn-tan .wp-block-button__link:hover,
.acr-btn-tan .wp-block-button__link:focus-visible {
  background: var(--tan-dark);
  color: #fff;
}

/* Grey section */

.acr-section--grey .wp-block-columns {
  gap: 63px;
  margin: 0;
}

.acr-section--grey .wp-block-column > p:first-child {
  margin-top: 0;
}

.acr-infographic,
.acr-infographic img {
  display: block;
  width: 100%;
  margin: 0;
}

/* Dove è presente */

.acr-list {
  margin: 0;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.65;
}

.acr-list li {
  padding-block: 3px;
}

.acr-gallery.wp-block-group {
  gap: 6px;
  margin-top: 15px;
}

.acr-gallery .wp-block-image {
  margin: 0;
  overflow: hidden;
}

.acr-gallery .wp-block-image img {
  display: block;
  width: 100%;
  height: 171px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.acr-gallery .wp-block-image:hover img {
  transform: scale(1.04);
}

.acr-section--dove .acr-note {
  margin-top: 12px;
  font-size: 14px;
}

/* Boxes */

.acr-boxes.wp-block-columns {
  gap: 63px;
  margin: 0;
  align-items: flex-start;
}

.acr-box {
  position: relative;
  padding: 20px;
  background: var(--slate);
  border-radius: 3px;
  color: #fff;
  text-align: center;
  transition: background-color 0.2s ease;
}

.acr-box:hover,
.acr-box:focus-within {
  background: var(--slate-dark);
}

.acr-box .acr-box__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.acr-box__title a {
  color: #fff;
  text-decoration: none;
}

.acr-box__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.acr-box .acr-box__text {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.5;
}

/* ---------- Contatti ---------- */

.acr-contact-intro {
  max-width: 640px;
  margin-inline: auto;
}

.acr-contact.wp-block-columns {
  gap: 63px;
  margin: 50px 0 0;
  align-items: flex-start;
}

.acr-contact-box {
  padding: 30px;
  background: var(--slate);
  border-radius: 3px;
  color: #fff;
}

.acr-contact-box h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.acr-contact-box p {
  margin-block: 0 12px;
  font-size: 15px;
}

.acr-contact-box a {
  color: #fff;
}

/* ---------- Fluent Forms ---------- */

.fluentform .ff-el-group {
  margin-bottom: 20px;
}

.fluentform .ff-el-input--label label {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.fluentform .ff-el-form-control {
  padding: 12px 14px;
  background: #fcfcfc;
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}

.fluentform .ff-el-form-control:focus {
  background: #fff;
  border-color: var(--tan);
  outline: none;
}

.fluentform .ff-el-tc .ff-el-form-check-label,
.fluentform .ff_t_c {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

.fluentform .ff-el-tc a {
  color: var(--slate);
  text-decoration: underline;
}

.fluentform .ff-el-form-check-input {
  accent-color: var(--slate);
}

.fluentform .ff-btn-submit,
.fluentform .ff-btn-submit:hover {
  padding: 16px 40px;
  background: var(--tan);
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  transition: background-color 0.2s ease;
}

.fluentform .ff-btn-submit:hover {
  background: var(--tan-dark);
}

/* ---------- Footer ---------- */

.acr-socket {
  padding: 15px var(--gutter);
  background: var(--socket);
  color: var(--socket-ink);
  font-size: 12px;
  line-height: 2.2;
}

.acr-socket p {
  margin: 0;
}

.acr-socket a {
  color: inherit;
  text-decoration: none;
}

.acr-legal.wp-block-group {
  gap: 24px;
  padding: 18px var(--gutter);
  background: var(--legal);
}

.acr-legal p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.acr-legal a {
  color: #fff;
  text-decoration: none;
}

.acr-legal a:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .acr-gallery.wp-block-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 781px) {
  :root {
    --header-h: 70px;
  }
  .acr-section {
    padding-block: 70px;
  }
  .acr-title {
    font-size: 28px;
  }
  .acr-hero.wp-block-cover {
    min-height: 480px;
  }
  .acr-hero__title {
    font-size: 22px;
  }
  .acr-intro-buttons.wp-block-columns,
  .acr-section--grey .wp-block-columns,
  .acr-boxes.wp-block-columns,
  .acr-contact.wp-block-columns {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .acr-gallery.wp-block-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .acr-logo,
  .is-scrolled .acr-logo {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .acr-header,
  .acr-header__inner,
  .acr-logo,
  .acr-gallery .wp-block-image img {
    transition: none;
  }
}
