/* ==========================================================================
   Simone Casini Architetto - restyling 2026
   Strato di stile sopra al tema "Architecture" (GoodLayers).
   Per tornare al look precedente basta togliere l'enqueue in functions.php.
   ========================================================================== */

:root {
	--sc-paper: #f5f2ec;
	--sc-paper-2: #ece7de;
	--sc-ink: #1c1c1a;
	--sc-muted: #5b5750;
	--sc-line: #d8d1c4;
	--sc-accent: #9c4a2b;      /* terracotta toscana, contrasto AA su carta */
	--sc-accent-dark: #7c3a21;
	--sc-serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--sc-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--sc-radius: 2px;
	--sc-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body,
body .body-outer-wrapper,
body .body-wrapper,
body .content-wrapper,
body .header-wrapper,
body .header-outer-container {
	background-color: var(--sc-paper) !important;
	background-image: none !important;
}

body,
body p,
body li,
body td,
body .gdl-page-content,
body .feature-service-description {
	font-family: var(--sc-sans) !important;
	color: var(--sc-ink);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body h1, body h2, body h3, body h4, body h5, body h6 {
	font-family: var(--sc-serif) !important;
	color: var(--sc-ink) !important;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

body a { color: var(--sc-accent); transition: color .25s var(--sc-ease), opacity .25s var(--sc-ease); }
body a:hover { color: var(--sc-accent-dark); }

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

/* Focus ben visibile per chi naviga da tastiera */
body a:focus-visible,
body button:focus-visible,
body select:focus-visible,
body input:focus-visible,
body textarea:focus-visible {
	outline: 2px solid var(--sc-accent) !important;
	outline-offset: 3px;
}

::selection { background: var(--sc-accent); color: #fff; }

/* ---------- Header ---------- */
body .header-container {
	padding-top: 28px;
	padding-bottom: 20px;
}

body .logo-wrapper h1,
body .logo-wrapper { margin: 0; line-height: 0; }

body .logo-wrapper img {
	max-height: 64px;
	width: auto;
	transition: opacity .3s var(--sc-ease);
}
body .logo-wrapper a:hover img { opacity: .75; }

/* Menu principale */
body .header-navigation ul.menu > li > a,
body .sf-menu > li > a {
	font-family: var(--sc-sans) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .16em !important;
	text-transform: uppercase !important;
	color: var(--sc-ink) !important;
	background: none !important;
	position: relative;
	padding-bottom: 6px;
}

body .header-navigation ul.menu > li > a::after,
body .sf-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--sc-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--sc-ease);
}

body .header-navigation ul.menu > li > a:hover::after,
body .header-navigation ul.menu > li.current-menu-item > a::after,
body .sf-menu > li > a:hover::after,
body .sf-menu > li.current-menu-item > a::after { transform: scaleX(1); }

body .header-navigation ul.menu > li.current-menu-item > a,
body .sf-menu > li.current-menu-item > a { color: var(--sc-accent) !important; }

body .header-navigation.with-border { border-color: var(--sc-line) !important; }

/* Menu fisso che compare allo scroll */
body .navigation-wrapper {
	background: rgba(245, 242, 236, .92) !important;
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--sc-line);
	box-shadow: none !important;
}

/* Icone social: monocromatiche, si colorano al passaggio */
body .social-icon img {
	filter: grayscale(1) brightness(.35);
	opacity: .7;
	transition: opacity .25s var(--sc-ease), filter .25s var(--sc-ease);
}
body .social-icon a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	min-height: 32px;
}
body .social-icon a:hover img { filter: none; opacity: 1; }

/* Menu a tendina su mobile */
body .responsive-menu-wrapper select {
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	font-family: var(--sc-sans);
	font-size: 15px;
	color: var(--sc-ink);
	background: #fff;
	border: 1px solid var(--sc-line);
	border-radius: var(--sc-radius);
}

/* ---------- Slider in testata ---------- */
body .gdl-top-slider { margin-bottom: 0; }
body .custom-slides > div { background-size: cover !important; }

/* ---------- Titoli di sezione (SERVIZI, LAVORI) ---------- */
body .stunning-text-wrapper {
	text-align: center;
	padding: 72px 0 36px;
	background: none !important;
	border: 0 !important;
}

body .stunning-text-title {
	font-size: clamp(34px, 5vw, 56px) !important;
	font-weight: 400 !important;
	letter-spacing: .04em !important;
	text-transform: uppercase;
	margin: 0 !important;
}

body .stunning-text-title::after {
	content: "";
	display: block;
	width: 48px;
	height: 1px;
	margin: 22px auto 0;
	background: var(--sc-accent);
}

/* ---------- Schede servizi ---------- */
body .feature-service-2 {
	background: #fff !important;
	border: 1px solid var(--sc-line) !important;
	border-radius: var(--sc-radius);
	padding: 34px 32px 30px !important;
	margin-bottom: 28px;
	height: calc(100% - 28px);
	transition: transform .4s var(--sc-ease), box-shadow .4s var(--sc-ease), border-color .4s var(--sc-ease);
	position: relative;
}

body .feature-service-2::before {
	content: "";
	position: absolute;
	top: -1px; left: 32px;
	width: 40px; height: 3px;
	background: var(--sc-accent);
}

body .feature-service-2:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px -24px rgba(28, 28, 26, .35);
	border-color: #cbbfae !important;
}

body .feature-service-title {
	font-size: 22px !important;
	letter-spacing: .02em !important;
	margin-bottom: 12px !important;
}

body .feature-service-description {
	color: var(--sc-muted) !important;
	font-size: 15.5px !important;
	margin-bottom: 18px;
}

/* ---------- Pulsanti ---------- */
body .gdl-button,
body input[type="submit"],
body button,
body .wpcf7-submit {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	min-height: 44px;
	padding: 10px 22px !important;
	font-family: var(--sc-sans) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase !important;
	color: var(--sc-ink) !important;
	background: transparent !important;
	border: 1px solid var(--sc-ink) !important;
	border-radius: var(--sc-radius) !important;
	box-shadow: none !important;
	text-shadow: none !important;
	cursor: pointer;
	transition: background .25s var(--sc-ease), color .25s var(--sc-ease), border-color .25s var(--sc-ease);
}

body .gdl-button::after { content: "\2192"; transition: transform .25s var(--sc-ease); }

body .gdl-button:hover,
body input[type="submit"]:hover,
body button:hover,
body .wpcf7-submit:hover {
	background: var(--sc-ink) !important;
	color: var(--sc-paper) !important;
	border-color: var(--sc-ink) !important;
}
body .gdl-button:hover::after { transform: translateX(4px); }

/* ---------- Portfolio / Lavori ---------- */
body .gdl-header-wrapper { border-color: var(--sc-line) !important; }
body .gdl-header-title { font-size: 26px !important; }
body .view-all-projects {
	font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

body .portfolio-media-wrapper {
	position: relative;
	overflow: hidden;
	border-radius: var(--sc-radius);
	background: var(--sc-paper-2);
}

body .portfolio-media-wrapper img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	filter: grayscale(.35);
	transition: transform .8s var(--sc-ease), filter .6s var(--sc-ease);
}

body .portfolio-item:hover .portfolio-media-wrapper img {
	transform: scale(1.06);
	filter: grayscale(0);
}

/* Overlay con titolo progetto */
body .portfolio-media-wrapper .thumbnail-hover {
	background: linear-gradient(180deg, rgba(28,28,26,0) 35%, rgba(28,28,26,.82) 100%) !important;
}
body .portfolio-media-wrapper .portfolio-thumbnail-image-hover { background: none !important; }
body .portfolio-media-wrapper .portfolio-title,
body .portfolio-media-wrapper .portfolio-title a {
	font-family: var(--sc-serif) !important;
	font-size: 19px !important;
	line-height: 1.25 !important;
	color: #fff !important;
	text-transform: none !important;
}

/* ---------- Contenuti pagine e articoli ---------- */
body .gdl-page-content p,
body .single-page p { max-width: 72ch; }

body .gdl-page-content h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.6em; }
body .gdl-page-content h3 { font-size: clamp(21px, 2.4vw, 27px); margin-top: 1.4em; }

body blockquote {
	border-left: 2px solid var(--sc-accent) !important;
	padding-left: 20px;
	font-family: var(--sc-serif);
	font-size: 20px;
	font-style: italic;
	color: var(--sc-muted);
}

/* Moduli (Contact Form 7) */
body input[type="text"],
body input[type="email"],
body input[type="tel"],
body input[type="url"],
body textarea {
	width: 100%;
	min-height: 46px;
	padding: 11px 14px !important;
	font-family: var(--sc-sans) !important;
	font-size: 15px !important;
	color: var(--sc-ink) !important;
	background: #fff !important;
	border: 1px solid var(--sc-line) !important;
	border-radius: var(--sc-radius) !important;
	box-shadow: none !important;
	transition: border-color .2s var(--sc-ease);
}
body input:focus, body textarea:focus { border-color: var(--sc-accent) !important; }

/* Avviso articoli d'archivio */
body .sc-archivio-avviso {
	background: #fbf3ee;
	border: 1px solid #e7cdbf;
	border-left: 4px solid var(--sc-accent);
	border-radius: var(--sc-radius);
	padding: 18px 22px;
	margin: 0 0 28px;
}
body .sc-archivio-avviso p { margin: 0 0 6px; max-width: none; }
body .sc-archivio-avviso p:last-child { margin-bottom: 0; }
body .sc-archivio-avviso a { font-weight: 700; }

/* Tabelle negli articoli */
body .gdl-page-content table,
body .blog-content table,
body .single-blog table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
body .gdl-page-content th, body .gdl-page-content td,
body .blog-content th, body .blog-content td,
body .single-blog th, body .single-blog td { border: 1px solid var(--sc-line); padding: 10px 12px; text-align: left; }
body .gdl-page-content th, body .blog-content th, body .single-blog th { background: var(--sc-paper-2); font-weight: 600; }

/* ---------- Footer ---------- */
body .footer-wrapper,
body .footer-wrapper.boxed-style {
	background: var(--sc-ink) !important;
	background-image: none !important;
	color: #d9d4ca !important;
	margin-top: 64px;
	border-top: 0 !important;
}

body .footer-wrapper .footer-container { padding-top: 56px; padding-bottom: 32px; }

body .footer-wrapper h1, body .footer-wrapper h2, body .footer-wrapper h3,
body .footer-wrapper h4, body .footer-wrapper h5, body .footer-wrapper h6,
body .footer-wrapper .custom-sidebar-title {
	color: #fff !important;
	font-size: 18px !important;
	letter-spacing: .04em;
}

body .footer-wrapper,
body .footer-wrapper p,
body .footer-wrapper li,
body .footer-wrapper div { color: #d9d4ca !important; }

body .footer-wrapper a { color: #f0c9b6 !important; }
body .footer-wrapper a:hover { color: #fff !important; }

body .copyright-outer-wrapper,
body .copyright-outer-wrapper.boxed-style {
	background: #121211 !important;
	border-top: 1px solid rgba(255,255,255,.08) !important;
}
body .copyright-wrapper,
body .copyright-wrapper * {
	font-size: 13px !important;
	color: #a9a398 !important;
}

/* ---------- Mobile ---------- */
@media only screen and (max-width: 767px) {
	body .stunning-text-wrapper { padding: 48px 0 24px; }
	body .feature-service-2 { padding: 28px 22px 24px !important; height: auto; }
	body .logo-wrapper img { max-height: 52px; }
	body .header-container { padding-top: 18px; }
}

/* Rispetta chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
