/*!
Theme Name: Beca
Theme URI: http://underscores.me/
Author: Eugenio Palazzi
Author URI: https://eugeniopalazzi.com
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: beca
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Beca is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	/* margin: 0 0 1.5em; */
  margin: 0;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

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

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

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

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

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

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

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

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

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Beca Custom Theme
--------------------------------------------- */

:root {
      --container: 1280px;
      --text: #222;
      --border: #cfcfcf;
      --light: #f4f4f4;
      --lighter: #fafafa;
      --placeholder: #e7e7e7;
      --dark: #222;
      --gap: 32px;
      --muted:#666;
      --ph:#e5e5e5;
      --beca-green: #2c7358;
      --beca-background: #f5f5f5;
      --green: #2a7452;
      --green-dark: #1f5a3f;
      --ink: #1d1d1b;
      --line: #dcdcdc;
      --grey: #eeeeee;
      --pad: 53px;
    }

    * { box-sizing: border-box; }

    a:link,
    a:visited,
    a:focus,
    a:active {
      color: #ffffff;
    }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      font-family: "Manrope", sans-serif;
      color: var(--text);
      background: #fff;
      line-height: 1.6;
    }

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

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

    button,
    input,
    select,
    textarea{
      font:inherit;
    }

    h2,
    h3 {
      line-height:1.12;
    }

    .container {
      width: min(calc(100% - 48px), var(--container));
      margin-inline: auto;
    }

    .container-w-95 {
      width: 95%;
    }

    .placeholder {
      position: relative;
      /* min-height:100%; */
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      background:
        linear-gradient(135deg, #ededed 25%, transparent 25%) -20px 0/40px 40px,
        linear-gradient(225deg, #ededed 25%, transparent 25%) -20px 0/40px 40px,
        linear-gradient(315deg, #ededed 25%, transparent 25%) 0 0/40px 40px,
        linear-gradient(45deg, #ededed 25%, #e3e3e3 25%) 0 0/40px 40px;
      border: 1px solid var(--border);
    }

    .placeholder.pagine {
      position:relative;min-height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:repeating-linear-gradient(45deg,#e3e3e3 0,#e3e3e3 20px,#ededed 20px,#ededed 40px);border:1px solid var(--border);
    }

    .placeholder::before {
      content: "IMAGE PLACEHOLDER";
      font-size: 13px;
      font-weight: 700;
      letter-spacing: .08em;
      color: #777;
    }

    .logo-placeholder {
      width: 150px;
      height: 52px;
      /* background: var(--placeholder);
      border: 1px solid var(--border); */
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 14px;
      letter-spacing: .08em;
    }

    .topbar {
      border-bottom: 1px solid var(--border);
      padding: 12px 0;
      font-size: 14px;
    }

    .topbar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    a.phone {
      font-weight: 700;
      color: #222;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 46px;
      padding: 0 24px;
      border: 1px solid var(--text);
      background: transparent;
      color: var(--text);
      font: inherit;
      font-weight: 700;
      cursor: pointer;
      transition: .2s ease;
    }

    .btn:hover {
      background: var(--text);
      color: #fff;
    }
    
    .btn.btn-hero {
      color: var(--lighter);
      border: 1px solid var(--lighter);
    }

    .btn.btn-hero:hover {
      color: var(--lighter);
      border: 1px solid var(--beca-green);
      background: var(--beca-green);
    }

    .btn-dark {
      background: var(--beca-green);
      color: #fff;
      border: 1px solid var(--beca-green);
    }

    .btn-dark:hover {
      background: transparent;
      color: var(--beca-green);
    }

    .cta-row .btn-dark:hover {
      background-color: #ffffff;
    }

    .header {
      border-bottom: 1px solid var(--border);
      padding: 20px 0;
    }

    .header-slide {
      transition: transform 0.4s ease-in-out;
    }

    .header-slide.menuShow {
      transform: translateY(0); /* slide down */
    }

    .header-slide.menuHide {
      transform: translateY(-100%); /* slide up */
    }

    /* Logo a sinistra, menu a destra */
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 40px;
    }

    .main-nav .menu-menu-1-container ul {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 34px;
      flex: 1;
      flex-wrap: wrap;
      margin: 0;
    }

    .main-nav .menu-menu-1-container ul li {
      list-style-type: none;
    }
    
    .main-nav a {
      font-size: 14px;
      font-weight: 700;
    }

    .eyebrow {
      margin: 0 0 12px;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: .08em;
    }
    
    .hero {
      min-height: 720px;
      position: relative;
      display: flex;
      align-items: center;
      background: #eee;
      border-bottom: 1px solid var(--border);
      color: var(--lighter);
    }

    .hero.home {
      /* min-height: calc(100vh - (70px + 91px)); */
      min-height: calc(100vh + 1px);
    }

    .menu-mt-slide {
      padding-top: 162px;
    }

    .container-margin-top {
      margin-top: 162px;
    }

    .menu-absolute {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 2;
      background: white;
    }

    .hero-placeholder::before {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 45%,
        rgba(0, 0, 0, 0) 80%
      );
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 70px;
      align-items: center;
    }

    .hero-image {
      position: absolute;
      inset: 0;
      background: var(--placeholder);
      min-height: 470px;
      background-image: url(../../uploads/2026/11/hero.jpg);
      background-size: cover;
      background-repeat: no-repeat;
    }

    .img-border {
      border: 1px solid #ccc;
    }

    .hero-content {
      position: relative;
      z-index: 1;
      width: 650px;
      padding: 90px 0;
    }

    .hero h1 {
      margin: 0 0 24px;
      max-width: 680px;
      font-size: clamp(42px, 5vw, 72px);
      line-height: 1.05;
      letter-spacing: -.04em;
    }

    .hero p {
      max-width: 600px;
      margin: 0 0 30px;
      /* color: var(--muted); */
      font-size: 17px;
    }

    .hero-subtitle {
      max-width: 620px;
      margin: 0 0 32px;
      font-size: 18px;
    }

    .cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      margin-bottom: 56px;
    }

    .stats {
      display: flex;
      flex-wrap: wrap;
      column-gap: 55px;
      row-gap: 28px;
    }

    .stat-number {
      display: block;
      font-size: 36px;
      font-weight: 800;
      line-height: 1;
      margin-bottom: 8px;
    }

    .stat-label {
      font-size: 14px;
      font-weight: 600;
    }

    section {
      padding: 100px 0;
    }

    .center-heading {
      max-width: 750px;
      margin: 0 auto 50px;
      text-align: center;
    }
    
    .center-heading h2,
    .section-copy h2 {
      margin: 0 0 15px;
      font-size: clamp(32px,4vw,48px);
      letter-spacing: -.03em;
    }
    
    .center-heading p,
    .section-copy p {
      color:var(--muted);
    }

    .section-title {
      margin: 0 0 18px;
      font-size: clamp(32px, 4vw, 52px);
      line-height: 1.1;
      letter-spacing: -.03em;
    }

    .section-subtitle {
      margin: 0;
      color: #555;
    }

    .partners {
      border-bottom: 1px solid var(--border);
      text-align: center;
    }

    .partners h2 {
      margin: 0 0 45px;
      font-size: 30px;
    }

    .partners-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      flex-wrap: wrap;
    }

    .partner-logo {
      width: 150px;
      height: auto;
      flex: 1 1 130px;
      max-width: 180px;
      /* background: var(--placeholder); */
      /* border: 1px solid var(--border); */
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      color: #777;
    }

    .intro {
      background: var(--beca-background);
    }

    .intro-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 100px;
      align-items: start;
    }

    .intro-text {
      font-size: 18px;
      color: #555;
    }

    .intro-text p a {
      color: #2c7358;
    }

    .feature {
      padding: 90px 0;
      border-bottom: 1px solid var(--border);
    }

    .feature-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 70px;
      align-items: center;
    }

    .feature-copy p {
      color: #555;
      max-width: 580px;
    }

    .feature-image {
      min-height: 390px;
    }

    .feature-image-auto {
      min-height: auto;
    }

    .feature:nth-of-type(even) .feature-grid {
      /* mantenuto esplicito per poter modificare facilmente l'alternanza */
    }

    .feature.reverse .feature-grid {
      direction: rtl;
    }

    .feature.reverse .feature-copy {
      direction: ltr;
    }

    .feature.reverse .feature-image {
      direction: ltr;
    }

    .case-study {
      text-align: center;
    }

    .case-study-header {
      max-width: 760px;
      margin: 0 auto 55px;
    }

    .case-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 28px;
      text-align: left;
    }

    .case-card {
      border: 1px solid var(--border);
      background: #fff;
    }

    .case-image {
      height: 250px;
    }

    .case-body {
      padding: 26px;
    }

    .case-body h3 {
      margin: 0 0 10px;
      font-size: 22px;
      line-height: 1.2;
    }

    .case-body p {
      margin: 0 0 22px;
      color: #555;
    }

    .grid-section {
      background: var(--beca-background);
    }

    .grid-intro {
      display: grid;
      grid-template-columns: 1fr 2fr;
      gap: 80px;
      margin-bottom: 60px;
    }

    .benefit-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--border);
      border-left: 1px solid var(--border);
    }

    .benefit {
      min-height: 190px;
      padding: 30px;
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .benefit h3 {
      margin: 0 0 12px;
      font-size: 20px;
    }

    .benefit p {
      margin: 0;
      color: #555;
    }

    .contact-section {
      padding: 55px 0;
    }

    .contact-box {
      display: grid;
      grid-template-columns: 1fr auto auto;
      gap: 30px;
      align-items: center;
      padding: 38px 42px;
      border: 1px solid var(--border);
      background: var(--light);
    }

    .contact-bh2 {
      margin: 0;      font-weight: 800;
      white-space: nowrap;
    }

    .map {
      min-height: 360px;
      border: 1px solid var(--border);
      background:
          repeating-linear-gradient(
              30deg,
              transparent 0,
              transparent 48px,
              #d0d0d0 49px,
              #d0d0d0 50px
          ),
          #e9e9e9;
      display: grid;
      place-items: center;
    }

    .pin {
        width: 45px;
        height: 45px;
        border: 3px solid #555;
        border-radius: 50% 50% 50% 0;
        transform: rotate(-45deg);
        display: grid;
        place-items: center;
    }

    .pin:after {
        content: "";
        width: 11px;
        height: 11px;
        background: #555;
        border-radius: 50%;
    }

    footer {
      background: #2c7358;
      color: #fff;
      padding: 70px 0 25px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
      gap: 70px;
      padding-bottom: 55px;
      border-bottom: 1px solid #ddd;
    }

    .footer-logo {
      color: #222;
    }

    .footer-logo a img {
      filter: brightness(0) invert(1);
    }

    .footer p {
      max-width: 380px;
      color: #bbb;
    }

    .footer-nav {
      display: grid;
      gap: 6px;
      align-content: start;
    }

    .footer-nav a {
      color: #ddd;
      font-size: 14px;
    }

    .footer-nav span {
      font-weight: 600;
    }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      padding-top: 22px;
      color: #ddd;
      font-size: 12px;
    }

    @media (max-width: 900px) {
      .main-nav {
        gap: 18px;
      }

      .hero {
        min-height: 650px;
      }

      .hero-content {
        width: 100%;
      }

      .intro-grid,
      .feature-grid,
      .grid-intro {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .case-grid,
      .benefit-grid {
        grid-template-columns: 1fr;
      }

      .feature.reverse .feature-grid {
        direction: ltr;
      }

      .contact-box {
        grid-template-columns: 1fr;
      }

      .contact-phone {
        white-space: normal;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
      }
    }

    @media (max-width: 680px) {
      .container {
        width: min(calc(100% - 32px), var(--container));
      }

      .topbar-inner,
      .header-inner {
        flex-direction: column;
        align-items: stretch;
      }

      .main-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
      }

      .hero {
        min-height: 720px;
      }

      .hero h1 {
        font-size: 44px;
      }

      .stats {
        gap: 25px;
      }

      .partners-row {
        justify-content: center;
      }

      .contact-box {
        padding: 30px;
      }

      .footer-bottom {
        flex-direction: column;
      }
    }



.quote-section {
    padding-top: 70px;
}

.quote-box {
    border: 1px solid var(--border);
    padding: 40px;
    background: #fff;
}

.quote-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.quote-header h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.quote-header p {
    margin: 0;
    color: var(--muted);
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.step {
    flex: 1;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.step-number {
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    border: 1px solid var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

.form-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr;
    gap: 35px;
    margin-top: 35px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-group label {
    font-size: 13px;
    font-weight: 800;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.choice {
    min-height: 85px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    background: #fff;
}

.radio-list {
    display: grid;
    gap: 12px;
    font-size: 13px;
}

.radio-list label {
    display: flex;
    gap: 10px;
    font-weight: 500;
}

.upload {
    min-height: 120px;
    border: 1px dashed #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
}

.personal-data {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.services,
.team,
.area {
    background: var(--beca-background);
}

.bg-beca {
    background: var(--beca-background);
}

.bg-beca-invert {
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.service-card {
    min-height: 200px;
    padding: 28px;
    border: 1px solid var(--border);
    background: #fff;
}

.icon {
    width: 42px;
    height: 42px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 13px;
}

.service-card .icon {
  background: #2c7358;
  color: #fff;
  font-weight: 700;
}

.service-card a  {
  color: #2c7358;
}

.service-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.eternit-grid,
.team-grid,
.area-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.before-after {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.before-after-item {
    position: relative;
}

.before-after .placeholder {
    height: 190px;
}

.label {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 800;
}

.team-image {
    min-height: inherit;
}

.team-content h2 {
    margin: 0 0 15px;
    font-size: 42px;
}

.team-content > p {
    color: var(--muted);
}

.team-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 35px;
}

.team-column {
    padding-left: 25px;
    border-left: 1px solid var(--border);
}

.team-column h3 {
    font-size: 17px;
}

.team-column ul {
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 13px;
}

.team-column li {
    margin: 7px 0;
}

.team-column li:before {
    content: "✓";
    margin-right: 8px;
    font-weight: 800;
}

.clients {
    padding: 70px 0;
}

.client-row {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.client-row-pages img {
  object-fit: contain;
}

.client-logo {
    height: 65px;
    background: var(--ph);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.faq {
    padding-bottom: 70px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.faq-card {
    min-height: 150px;
    padding: 24px;
    border: 1px solid var(--border);
    position: relative;
}

.faq-card h3 {
    margin: 0 30px 12px 0;
    font-size: 15px;
}

.faq-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.arrow {
    position: absolute;
    right: 20px;
    top: 20px;
}

.final-cta {
    padding: 45px 0;
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 30px;
    align-items: center;
    padding: 35px 40px;
    border: 1px solid var(--border);
    background: var(--light);
}

.cta-box h2 {
    margin: 0 0 7px;
    font-size: 24px;
}

.cta-box p {
    margin: 0;
    color: var(--muted);
}

.cta-phone {
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
    text-align: center;
}

#smaltimento {
  color: var(--text);
}

.placeholder-img-hero::before {
  content: "";
}

.pagine.placeholder-img-hero img {
  min-height: 540px;
}

.pagine.placeholder-img-hero img.fotovoltaico-img-hero {
  min-height: 630px;
}

.before-after.fotovoltaico-img {
  grid-template-rows: repeat(3, 300px);
}

.before-after.fotovoltaico-img.facciate-grid {
  grid-template-rows: repeat(2, 300px);
}

.before-after.fotovoltaico-img.raffrescatori-grid {
  grid-template-rows: repeat(1, auto);
}

.facciate-grid-one-col {
  grid-template-columns: 1fr;
}

.before-after.fotovoltaico-img .placeholder {
  height: 100%;
}

.marazzi svg,
.sacmi svg,
.casalgrande svg,
.cmb,
.mapei,
.remro,
.mindif,
.cerrub,
.vallelunga,
.serra, 
.victoriaplc,
.italpizza,
.dado,
.petrus,
.italgraniti {
  filter: grayscale(1) contrast(0) brightness(0.7);
}

.colli,
.ascot,
.capri,
.domdesigngroup {
  filter: grayscale(1);
}

.icg {
  filter: brightness(0) invert(0.5);
}

.casalgrande svg {
  border: none;
  margin: 0;
  width: 150px;
}

.marazzi svg:hover,
.sacmi svg:hover,
.casalgrande svg:hover,
.cmb:hover,
.mapei:hover,
.ascot:hover,
.cerrub:hover,
.vallelunga:hover, 
.colli:hover,
.serra:hover,
.capri:hover,
/* .victoriaplc:hover, */
.domdesigngroup:hover,
.italpizza:hover,
.petrus:hover,
.italgraniti:hover {
  filter: none;
}

.icg:hover {
  filter: brightness(0);
}

.marazzi svg {
  width: 120px;
}

.sacmi svg {
  width: 120px;
}

.cmb img {
  width: 110px;
}

.mapei img {
  width: 120px;
}

.remro img {
  width: 90px;
}

.mindif img {
  width: 120px;
}

.ascot img {
  width: 130px;
}

.cerrub img {
  width: 110px;
}

.vallelungi img {
  width: 90px;
}

.colli img {
  width: 80px;
}

.serra img {
  width: 120px;
}

.capri img {
  width: 90px;
}

.victoriapli img {
  width: 90px;
}

.domdesigngroup img {
  width: 90px;
}

.italpizza img {
  width: 110px;
}

.dado {
  width: 45px;
}

.dado-pages {
  width: 100%;
}

.petrus img {
  width: 120px;
}

.italgraniti img {
  width: 130px;
}

/* Sezione immagini orizzontali */


.projects-section {
    padding: 90px 0;
}

.projects-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
}

.projects-header h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.projects-header .eyebrow {
    margin-bottom: 12px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.project-image {
    /* aspect-ratio: 4 / 5; */
    min-height: 0;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #e5e5e5;
    transition: opacity 0.25s ease;
}

.project-image:hover {
    opacity: 0.8;
}

  .beca-kg {
    --beca-green: #2a7452;
    background: var(--beca-green);
    color: #fff;
    padding: 56px 53px;
    font-family: inherit;
  }
  .beca-kg__inner {
    max-width: 1920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 48px;
    align-items: center;
  }
  .beca-kg__intro h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
  }
  .beca-kg__intro p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    max-width: 38ch;
    opacity: .9;
  }
  .beca-kg__list {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
  .beca-kg__item {
    padding: 4px 24px;
    border-left: 1px solid rgba(255, 255, 255, .35);
  }
  .beca-kg__item dt {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: .9;
  }
  .beca-kg__item dd {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
  }
  .beca-kg__item dd span {
    font-size: .5em;
    font-weight: 600;
  }
 
  @media (max-width: 1000px) {
    .beca-kg__inner { grid-template-columns: 1fr; gap: 32px; }
    .beca-kg__list { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
    .beca-kg__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  }
  @media (max-width: 480px) {
    .beca-kg { padding: 40px 24px; }
    .beca-kg__list { grid-template-columns: 1fr; }
    .beca-kg__item { border-left: 0; padding: 0; }
  }

  .beca-cert {
    --beca-green: #2a7452;
    color: #1d1d1b;
    padding: 72px 53px;
    font-family: inherit;
  }
  .beca-cert__inner {
    max-width: 1920px;
    margin: 0 auto;
  }
  .beca-cert__inner > h2 {
    margin: 0 0 36px;
    font-size: 36px;
    line-height: 1.15;
    font-weight: 700;
  }
  .beca-cert__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .beca-cert__item {
    border: 1px solid #d9d9d9;
    border-top: 4px solid var(--beca-green);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
  }
  .beca-cert__item h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 700;
  }
  .beca-cert__item p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: #4a4a4a;
  }
  .beca-cert__item ul {
    margin: auto 0 0;
    padding: 14px 0 0;
    list-style: none;
    border-top: 1px solid #e5e5e5;
    font-size: 15px;
    font-weight: 600;
  }
  .beca-cert__item li { padding: 3px 0; }
  .beca-cert__item .beca-cert__num {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid #e5e5e5;
    color: var(--beca-green);
    font-weight: 700;
  }
 
  @media (max-width: 1200px) {
    .beca-cert__grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .beca-cert { padding: 48px 24px; }
    .beca-cert__inner > h2 { font-size: 28px; }
    .beca-cert__grid { grid-template-columns: 1fr; }
  }

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .projects-section {
        padding: 60px 0;
    }

    .projects-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-image {
        aspect-ratio: 4 / 3;
    }
}

/* FAQ */
.faq { padding: 90px var(--pad) 110px; }
.faq__inner { max-width: 960px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--line);
  margin-bottom: 14px;
  background: #fff;
}
.faq details[open] { border-color: var(--green); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 28px;
  font-size: 20px; font-weight: 700; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 3px solid var(--green); border-bottom: 3px solid var(--green);
  transform: rotate(45deg); margin-top: -6px; transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq summary:hover { color: var(--green); }
.faq summary:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.answer { padding: 0 28px 28px; font-size: 18px; color: var(--muted); }
.answer p { margin: 0 0 14px; }
.answer p:last-child { margin-bottom: 0; }
.answer h3 {
  margin: 26px 0 10px; font-size: 18px; color: var(--ink);
  padding-bottom: 6px; border-bottom: 2px solid var(--green); display: inline-block;
}
.answer h4 { margin: 18px 0 6px; font-size: 17px; color: var(--green); }
.answer ul { margin: 0 0 8px; padding-left: 22px; }
.answer li { margin-bottom: 6px; }
.answer a { color: var(--green); font-weight: 600; }

/* CTA */
.cta { background: var(--green); color: #fff; padding: 64px var(--pad); text-align: center; }
.cta h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.2; }
.cta p { margin: 0 0 28px; font-size: 19px; opacity: .92; }
.cta .btn { background: #fff; color: var(--green); }
.cta .btn:hover { background: var(--grey); }

@media (max-width: 1000px) {
  :root { --pad: 28px; }
  .nav { gap: 24px; }
  .nav a { font-size: 18px; }
  .hero { padding: 70px var(--pad); }
  .faq { padding: 60px var(--pad) 80px; }
}
@media (max-width: 600px) {
  .topbar { font-size: 14px; gap: 12px; }
  .topbar .btn { font-size: 15px; padding: 14px 18px; }
  .logo { font-size: 56px; }
  .hero p { font-size: 18px; }
  .faq summary { font-size: 17px; padding: 20px; }
  .answer { padding: 0 20px 22px; font-size: 16px; }
  .cta h2 { font-size: 26px; }
}

.no-bg {
  background: none;
}

/* Contatti */

  .main-nav a:hover,
  .main-nav a[aria-current="page"] { color: var(--beca-green); }
 
  /* Intestazione pagina */
  .page-head {
    padding: 90px 0 80px;
    background: var(--grey);
    border-bottom: 1px solid var(--border);
  }
  .page-head h1 {
    margin: 0 0 20px;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 1;
    letter-spacing: -.04em;
  }
  .page-head p { margin: 0; max-width: 560px; font-size: 19px; color: var(--muted); }
 
  /* Form */
  .contact-section { padding: 90px 0 40px; }
  .contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 35px;
  }
  .contact-form-grid .col { display: flex; flex-direction: column; gap: 22px; }
  .contact-form-grid textarea.form-control { flex: 1; min-height: 210px; resize: vertical; }
  .contact-form-grid .field-group { flex: initial; }
  .contact-form-grid .col-message .field-group { flex: 1; }
  .req { color: var(--beca-green); }
 
  .form-footer {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
  }
  .consent {
    display: flex; gap: 12px; align-items: flex-start;
    max-width: 720px; font-size: 13px; color: var(--muted); line-height: 1.5;
  }
  .consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--beca-green); flex: none; }
  .consent a { color: var(--beca-green); font-weight: 700; text-decoration: underline; }
  .form-control:focus { outline: 2px solid var(--beca-green); outline-offset: -1px; border-color: var(--beca-green); }
  textarea.form-control { font-family: inherit; }
  .form-footer .btn { min-width: 220px; min-height: 52px; }
 
  /* Schede contatti */
  .contact-info { padding: 40px 0 60px; }
  .contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .contact-cards .service-card { min-height: 0; }
  .contact-cards .icon { border-color: var(--beca-green); color: var(--beca-green); }
  .contact-cards .icon svg { width: 20px; height: 20px; }
  .contact-cards h3 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
  .contact-cards p { color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.45; }
  .contact-cards a:hover { color: var(--beca-green); }
 
  /* Mappa */
  .contact-map { padding: 0 0 100px; }
  .contact-map iframe { display: block; width: 100%; height: 440px; border: 1px solid var(--border); }
  .area .contact-map { padding:0; }
  @media (max-width: 900px) {
    .page-head { padding: 60px 0; }
    .contact-section { padding: 60px 0 30px; }
    .contact-form-grid, .contact-cards { grid-template-columns: 1fr; }
    .contact-map { padding-bottom: 70px; }
    .contact-map iframe { height: 340px; }
  }
  @media (max-width: 680px) {
    .quote-box { padding: 26px 20px; }
    .quote-header { grid-template-columns: 1fr; gap: 12px; }
    .form-footer .btn { width: 100%; }
  }

.mt-40 {
  margin-top: 40px;
}

/* Gravity Forms Custom
--------------------------------------------- */

.gform_required_legend {
  display: none;
}

#gform_8,
#gform_9,
#gform_10,
#gform_11 {
  border-top: 1px solid #cfcfcf;
  padding-top: 22px;
}

/* .gfield--type-html.gfield--input-type-html,
.gfield--type-html.gfield_html.gfield_html_formatted {
  border-top: 1px solid #cfcfcf;
  margin-top: 22px;
}

.gform-theme--foundation .gform_fields {
  grid-template-columns: repeat(3, 1fr)!important;
  row-gap: 10px!important;
}

.gform-theme--foundation .gfield--width-full,
.gform-theme--foundation .gfield--width-half {
  grid-column: span 3!important;
}

.gform-theme--foundation .gfield--type-submit {
  align-items: center!important;
} */

.gform-theme--foundation .gfield--type-submit button,
#gform_submit_button_1,
#gform_browse_button_8_14,
#gform_browse_button_9_14,
#gform_browse_button_10_14,
#gform_browse_button_11_14,
#gform_browse_button_12_14  {
  background-color: #2c7358!important;
}

.gform-theme--framework .gfield:where(.gfield--type-fileupload, .gfield--input-type-fileupload, .gfield--type-post_image) .gform_drop_area::before {
  color: #2c7358!important;
}

.gfield_required {
  color: green!important;
}

.gform-theme--foundation .gform_fields {
  grid-template-columns: 1fr!important;
}

.mt-label-form > legend,
.mt-label-form > label {
  margin-top: 22px!important;
}

@media (min-width: 899px) {

.gfield--type-html.gfield--input-type-html,
.gfield--type-html.gfield_html.gfield_html_formatted {
  border-top: 1px solid #cfcfcf;
  margin-top: 22px;
}

.gform-theme--foundation .gform_fields {
  grid-template-columns: repeat(3, 1fr)!important;
  row-gap: 10px!important;
}

.gform-theme--foundation .gfield--width-full,
.gform-theme--foundation .gfield--width-half {
  grid-column: span 3!important;
}

.gform-theme--foundation .gfield--type-submit {
  align-items: center!important;
}

/* Smaltimento Amianto */

#gform_fields_8 .gf-col-1 {
  grid-column: 1/2!important;
  grid-row: 1/2;
}

#gform_fields_8 .gruppo-dati {
  grid-column: 2/3;
}

#gform_fields_8 .gruppo-dati-col-3 {
  grid-column: 3/4;
}

#gform_fields_8 .gf-nome,
#gform_fields_8 .gf-email {
  grid-column: 1/3;
}

#gform_fields_8 .gf-tel {
  grid-column: 3/4!important;
  grid-row: 3/4;
}

#field_submit_8 {
  grid-column: 3/4 !important;
  grid-row: 4/5;
}

/* Bando Inail */

#gform_fields_9 .gf-col-2-provincia {
  grid-column: 1/2!important;
  grid-row: 1/2;
}

#gform_fields_9 .gf-col-2-dimensione-1,
#gform_fields_9 .gf-col-2-dimensione-2,
#gform_fields_9 .gf-col-2-dimensione-3,
#gform_fields_9 .gf-col-2-precisa {
  grid-column: 1/2;
}

#gform_fields_9 .gf-col-3-descrizione {
  grid-column: 2/3;
  grid-row: 1/2;
}

#gform_fields_9 .gf-col-3-immagine {
  grid-column: 3/4;
  grid-row: 1/2;
}

#gform_fields_9 .gf-nome,
#gform_fields_9 .gf-email {
  grid-column: 1/3;
}

#gform_fields_9 .gf-tel {
  grid-column: 3/4!important;
  grid-row: 3/4;
}

#field_submit_9 {
  grid-column: 3/4 !important;
  grid-row: 4/5;
}

/* Impianti Fotovoltaici */

#gform_fields_10 .gf-col-1 {
  grid-column: 1/2!important;
  grid-row: 1/2;
}

#gform_fields_8 .gruppo-dati {
  grid-column: 2/3;
}

#gform_fields_10 .gf-col-3-immagine {
  grid-column: 3/4!important;
  grid-row: 1/2;
}

#gform_fields_10 .gf-nome,
#gform_fields_10 .gf-email {
  grid-column: 1/3;
}

#gform_fields_10 .gf-tel {
  grid-column: 3/4!important;
  grid-row: 3/4;
}

#field_submit_10 {
  grid-column: 3/4 !important;
  grid-row: 4/5;
}

/* Facciate Ventilate */

#gform_fields_11 .gf-col-1 {
  grid-column: 1/2!important;
  grid-row: 1/2;
}

#gform_fields_8 .gruppo-dati {
  grid-column: 2/3;
}

#gform_fields_11 .gf-col-3-descrizione {
  grid-column: 2/3!important;
  grid-row: 1/2;
}

#gform_fields_11 .gf-col-3-immagine {
  grid-column: 3/4!important;
  grid-row: 1/2;
}

#gform_fields_11 .gf-nome,
#gform_fields_11 .gf-email {
  grid-column: 1/3;
}

#gform_fields_11 .gf-tel {
  grid-column: 3/4!important;
  grid-row: 3/4;
}

#field_submit_11 {
  grid-column: 3/4 !important;
  grid-row: 4/5;
}

/* Raffrescatori Evaporativi */

#gform_fields_12 .gf-col-2-provincia {
  grid-column: 1/2!important;
  grid-row: 1/2;
}

#gform_fields_12 .gf-col-2-descrizione {
  grid-column: 2/3!important;
  grid-row: 1/2;
}

#gform_fields_12 .gf-nome,
#gform_fields_12 .gf-email {
  grid-column: 1/3;
}

#gform_fields_12 .gf-tel {
  grid-column: 3/4!important;
  grid-row: 2/3;
}

#field_submit_12 {
  grid-column: 3/4 !important;
  grid-row: 3/4;
}
}

/* Sotto Menu Header
--------------------------------------------- */

/* La striscia si posiziona rispetto all'header, a tutta larghezza */
.header { position: relative; }

/* Menu principale in orizzontale */
#primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 34px;
}
#primary-menu li { position: static; }
#primary-menu > li > a { display: block; padding: 6px 0; }

/* Voce attiva */
#primary-menu .current-menu-item > a,
#primary-menu a:hover { color: var(--beca-green); }

/* Striscia bianca con le voci in orizzontale */
#primary-menu .sub-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 16px 0;
  padding-left:  max(24px, calc((100% - var(--container)) / 2));
  padding-right: max(24px, calc((100% - var(--container)) / 2));
  display: flex;
  flex-direction: row;
  justify-content: flex-end;     /* voci a destra come il menu; flex-start per sinistra */
  gap: 34px;
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

#primary-menu .sub-menu a {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* Compare all'hover su "Soluzioni" e con la tastiera */
#primary-menu .menu-item-has-children:hover > .sub-menu,
#primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Ponte invisibile: evita che la striscia sparisca mentre il mouse attraversa l'header */
#primary-menu .menu-item-has-children > a { position: relative; }
#primary-menu .menu-item-has-children:hover > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 60px;
}

/* Mobile: il sottomenu torna sotto la voce, senza hover */
@media (max-width: 900px) {
  #primary-menu { flex-direction: column; align-items: flex-start; gap: 14px; }
  #primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 0 16px;
    border: 0;
    background: transparent;
  }
}

/* Voci del menu e del sottomenu: nero di default, anche da visitate, in focus o attive */
#primary-menu a,
#primary-menu a:link,
#primary-menu a:visited,
#primary-menu a:focus,
#primary-menu a:focus-visible,
#primary-menu a:active {
  color: #000000;
  text-decoration: none;
}

/* Hover e pagina in cui ti trovi: verde (deve stare dopo la regola precedente) */
#primary-menu a:hover,
#primary-menu .current-menu-item > a,
#primary-menu .current-menu-item > a:link,
#primary-menu .current-menu-item > a:visited,
#primary-menu .current-menu-item > a:focus,
#primary-menu .current-menu-item > a:focus-visible,
#primary-menu .current-menu-item > a:active,
#primary-menu .current-menu-ancestor > a,
#primary-menu .current-menu-ancestor > a:visited,
#primary-menu .current-menu-ancestor > a:focus {
  color: #2c7358;
}

/* Template Part: Soluzioni Icone */

.template-soluzioni {
  background: #2c7358;
  padding: 50px 0;
}

.template-soluzioni > div {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
  display: flex;
  justify-content: space-around;

}

.template-soluzioni > div div {
  display: flex;
  align-items: center;
  justify-content: center;
} 

.template-soluzioni > div div span {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.85rem;
}

/* Pertners */

/* Contenitore: una sola riga, con sfumatura ai lati */
.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* Binario: contiene i loghi + la copia creata dallo script, e scorre di metà della sua larghezza */
.partners-track {
  --logo-w: 150px;
  --logo-h: 64px;
  --logo-gap: 100px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  animation: partners-scroll 75s linear infinite;
}
.partners-marquee:hover .partners-track,
.partners-marquee:focus-within .partners-track { animation-play-state: paused; }

@keyframes partners-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Ogni logo ha la stessa "scatola"; il margine (non il gap) tiene uguali le due metà */
.partners-track .partner-logo {
  flex: 0 0 auto;
  width: var(--logo-w);
  height: var(--logo-h);
  max-width: none;
  margin: 0 var(--logo-gap) 0 0;
}
.partners-track .partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.partners-track .partner-logo svg {
  width: 120px;
  height: auto;
}

@media (max-width: 680px) {
  .partners-track { --logo-w: 120px; --logo-h: 52px; --logo-gap: 44px; animation-duration: 45s; }
  .partners-track .partner-logo svg { width: 100px; }
}

/* Chi ha disattivato le animazioni: niente scorrimento, riga scorrevole a mano */
@media (prefers-reduced-motion: reduce) {
  .partners-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .partners-track { animation: none; }
  .partners-track .partner-clone { display: none; }
}

 /* Elementi solo mobile: nascosti su desktop */
  .topbar-marquee,
  .header-cta,
  .nav-toggle,
  .submenu-toggle { display: none; }
  
  .header-cta.btn-dark:hover {
    border: none;
  }
 
  @keyframes topbar-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }   /* da destra verso sinistra */
  }
 
  @media (max-width: 900px) {

  /* Menu Mobile */
 
  /* --- Barra in alto: numero verde che scorre --- */
  .topbar { padding: 0; overflow: hidden; }
  .topbar-inner { display: block; }
  .topbar .phone,
  .topbar .topbar-cta { display: none; }
  .topbar-marquee { display: block; overflow: hidden; padding: 11px 0; }
  .topbar-track {
    display: flex;
    width: max-content;
    animation: topbar-scroll 44s linear infinite;
  }
  .topbar-track a {
    flex: none;
    padding-right: 48px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--text);
  }

  /* --- Header: pulsante | logo al centro | hamburger --- */
  .header { position: relative; padding: 12px 0; }
  .header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .header-cta {
    display: inline-flex;
    justify-self: start;
    min-height: 40px;
    padding: 6px 12px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    width: 100%;
  }
  .logo-placeholder { width: auto; height: auto; justify-self: flex-start; }
  .logo-placeholder img { width: auto; height: 38px; }

  /* Hamburger */
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    cursor: pointer;
  }
  .nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle:focus-visible { outline: 3px solid var(--beca-green); outline-offset: 2px; }

  /* --- Pannello del menu --- */
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 200;
    flex: none;
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .08);
    padding: 4px 24px 16px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }

  #primary-menu { flex-direction: column; align-items: stretch; gap: 0; }
  #primary-menu > li { position: relative; border-bottom: 1px solid var(--line, #dcdcdc); }
  #primary-menu > li:last-child { border-bottom: 0; }
  #primary-menu > li > a { display: block; padding: 14px 0; font-size: 17px; }
  #primary-menu .menu-item-has-children > a { padding-right: 52px; }

  /* Freccia per aprire il sottomenu */
  .submenu-toggle {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 52px;
    height: 52px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .submenu-toggle::before {
    content: "";
    position: absolute;
    top: 19px;
    left: 19px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(45deg);
    transition: transform .2s ease;
  }
  .menu-item-has-children.is-open > .submenu-toggle::before { transform: rotate(-135deg); top: 24px; }
  .submenu-toggle:focus-visible { outline: 3px solid var(--beca-green); outline-offset: -3px; }

  /* Sottomenu: chiuso di default, elenco verticale quando aperto */
  #primary-menu .sub-menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    flex-direction: column;
    gap: 0;
    padding: 0 0 10px 16px;
    border: 0;
    background: transparent;
  }
  #primary-menu .menu-item-has-children.is-open > .sub-menu { display: flex; align-items: flex-start; }
  #primary-menu .sub-menu a { display: block; padding: 10px 0; font-size: 15px; white-space: normal; }
  #primary-menu .menu-item-has-children:hover > a::after, .mob-hide { display: none; }
}

/* Chi ha disattivato le animazioni: testo fermo */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .topbar-track { animation: none; width: auto; justify-content: center; }
  .topbar-track a:not(:first-child) { display: none; }
  .topbar-track a { padding-right: 0; }
}

.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  animation: bounce 1.8s ease-in-out infinite;
  transition: background 0.3s, border-color 0.3s;
  opacity: .5;
}

.scroll-down:hover {
  background: var(--beca-green);
  border-color: var(var(--beca-green));
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 10px); }
}

html { scroll-behavior: smooth; }
.stat-number { font-variant-numeric: tabular-nums; }


@media (max-width: 900px) {
  .template-soluzioni > div {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .container-margin-top {
    margin-top: 68px;
  }

  .eternit-grid, .team-grid, .area-grid, .team-columns, .cta-box {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 0px;
  }

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

  .services-grid ul {
    margin: 0;
  }

  .cta-phone {
    text-align: left;
  }

  .feature-image {
    min-height: auto;
  }

  .cta-phone {
    white-space: nowrap;
  }

  .footer-nav {
    gap: 2px;
  }
}