/*
Theme Name: Flatsome Child
Description: Child theme di Walter Silvestrini Fotografo (base chiara, sezioni scure dove servono).
Author: PixelXpixeL
Template: flatsome
Version: 1.0.22
Text Domain: flatsome-child
*/

/* ---------- Font locale ---------- */
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 600;
	font-display: swap;
	src: url('fonts/montserrat-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 100 600;
	font-display: swap;
	src: url('fonts/montserrat-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Token ---------- */
:root {
	--ws-bg: #f7f5f1;
	--ws-bg-2: #ece8e1;
	--ws-ink: #1b1a18;
	--ws-text: #4a4741;
	--ws-muted: #77726a;
	--ws-line: rgba(27, 26, 24, .14);
	--ws-accent: #9c7740;
	--ws-dark: #151514;
	--ws-dark-text: #c9c4bb;
	--ws-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
html body,
html body p,
html body input,
html body textarea,
html body button,
html body .nav > li > a,
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body .heading-font,
html body .alt-font {
	font-family: 'Montserrat', system-ui, sans-serif;
}
body {
	background: var(--ws-bg);
	color: var(--ws-text);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}
#wrapper, #main, .page-wrapper { background: var(--ws-bg); }
h1, h2, h3, h4, h5, h6 { color: var(--ws-ink); font-weight: 200; letter-spacing: .01em; }
a { color: var(--ws-ink); }
a:hover { color: var(--ws-accent); }
:focus-visible { outline: 1px solid var(--ws-accent); outline-offset: 4px; }
::selection { background: var(--ws-ink); color: var(--ws-bg); }

.ws-label {
	display: block;
	margin-bottom: 18px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--ws-muted);
}
.ws-h2 { font-size: clamp(38px, 5.6vw, 80px); font-weight: 100; line-height: 1; margin-bottom: 0; letter-spacing: .02em; }
.ws-lead { font-size: clamp(22px, 2.5vw, 34px); font-weight: 100; line-height: 1.35; color: var(--ws-ink); margin: 0; }
.ws-lead em { font-style: normal; font-weight: 200; color: var(--ws-muted); }

/* ---------- Header ---------- */
.header-main { background: var(--ws-bg); }
#logo a, #logo .logo-text {
	font-size: 17px;
	font-weight: 200;
	letter-spacing: .34em;
	text-transform: uppercase;
	color: var(--ws-ink);
	white-space: nowrap;
}
.header-main .nav > li > a {
	font-size: 11px;
	font-weight: 300;
	letter-spacing: .24em;
	color: var(--ws-ink);
}
.transparent .header-main { background: transparent; }
.transparent #logo a,
.transparent .header-main .nav > li > a,
.transparent .header-main .icon-menu { color: #f7f5f1; }
.stuck .header-main { background: rgba(247, 245, 241, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.stuck #logo a, .stuck .header-main .nav > li > a, .stuck .header-main .icon-menu { color: var(--ws-ink); }
.header-wrapper .header-bottom, .header-top { display: none; }

/* Menu mobile a tutto schermo */
.mfp-bg.off-canvas-center,
.mfp-bg.off-canvas-center.mfp-ready { background: var(--ws-bg) !important; opacity: 1 !important; }
.off-canvas-center .mfp-content .nav-sidebar > li > a {
	font-size: 26px;
	font-weight: 200;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ws-ink);
}
.off-canvas-center .mfp-close { color: var(--ws-ink); }

/* ---------- Hero ---------- */
.ws-hero .banner h1 { color: #f7f5f1; font-weight: 100; font-size: clamp(40px, 7.6vw, 124px); line-height: 1; letter-spacing: -.01em; margin: 0; }
.ws-hero .banner h1 em { font-style: normal; font-weight: 200; color: #e3c48f; }
.ws-hero .ws-caption { color: rgba(247, 245, 241, .8); font-size: 13px; letter-spacing: .08em; margin-top: 18px; }
.ws-hero .flickity-page-dots { text-align: left; padding-left: 5%; bottom: 28px; }
.ws-hero .flickity-page-dots .dot { width: 26px; height: 1px; border-radius: 0; border: 0; background: rgba(247, 245, 241, .45); opacity: 1; }
.ws-hero .flickity-page-dots .dot.is-selected { background: #f7f5f1; }

/* ---------- Servizi ---------- */
.ws-service { border-bottom: 1px solid var(--ws-line); padding: 26px 0 8px; transition: background .4s var(--ws-ease); }
.ws-services-head { border-bottom: 1px solid var(--ws-line); padding-bottom: 0; margin-bottom: 0; }
.ws-services-head > .col { padding-bottom: 22px; }
.ws-service .ws-n { font-size: 13px; font-weight: 200; letter-spacing: .2em; color: var(--ws-muted); }
.ws-service h3 { font-size: clamp(22px, 2.6vw, 34px); font-weight: 200; line-height: 1.15; margin-bottom: 6px; }
.ws-service .ws-kicker { font-size: 11px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; color: var(--ws-accent); }
.ws-service p { color: var(--ws-text); max-width: 54ch; }
.ws-more { font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid var(--ws-line); padding-bottom: 6px; transition: border-color .3s, color .3s; }
.ws-more:hover { border-color: var(--ws-ink); color: var(--ws-ink); }
@media (hover: hover) { .ws-service:hover { background: var(--ws-bg-2); } }

/* Servizi in home: quadranti su 2 colonne */
.ws-q-grid { border: 0 !important; }
.col.ws-q { padding: 0 !important; border-bottom: 1px solid var(--ws-line); }
.col.ws-q > .col-inner { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 20px clamp(20px, 3vw, 44px) 20px; }
.ws-q .ws-n { display: block; margin-bottom: 10px; }
.ws-q h3 { margin-bottom: 6px; }
.ws-q > .col-inner > p:not(.ws-more-wrap) { margin: 12px 0 14px; }
.ws-q .ws-more-wrap { margin: auto 0 0; }
@media (min-width: 550px) {
	.col.ws-q:nth-child(odd) { border-right: 1px solid var(--ws-line); }
	.col.ws-q:nth-child(odd) > .col-inner { padding-left: 15px; }
	.col.ws-q:nth-child(even) > .col-inner { padding-right: 15px; }
}
@media (max-width: 549px) {
	.col.ws-q > .col-inner { padding: 18px 15px 18px; }
}

/* ---------- Portfolio (filtro e griglia) ---------- */
.ws-works .filter-nav { margin-bottom: 20px; }
.ws-works .filter-nav > li > a {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .16em;
	padding: 10px 16px;
	border: 1px solid var(--ws-line);
	border-radius: 999px;
	color: var(--ws-muted);
}
.ws-works .filter-nav > li.active > a { background: var(--ws-ink); border-color: var(--ws-ink); color: var(--ws-bg); }
.ws-works .filter-nav > li > a:before { display: none; }
.ws-works .box-text { padding-left: 0; padding-right: 0; text-align: left; }
.ws-works .box-text h5, .ws-works .box-text p { font-size: 13px; font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--ws-ink); }
.ws-works .box-text p { color: var(--ws-muted); }
.ws-works .portfolio-box-title { margin-bottom: 4px; font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--ws-ink); opacity: 1; }
.ws-works .portfolio-box-category { margin: 0; font-size: 12px; font-weight: 400; color: #6a655e; opacity: 1; text-transform: none; }
.ws-works .portfolio-box-category .show-on-hover { display: inline; max-height: none; opacity: 1; transform: none; }
.ws-works .portfolio-box-category::after { content: "Guarda tutte le foto →"; display: table; margin-top: 10px; padding-bottom: 4px; border-bottom: 1px solid var(--ws-line); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ws-ink); transition: border-color .3s, color .3s; }
.ws-works .box:hover .portfolio-box-category::after { border-color: var(--ws-accent); color: var(--ws-accent); }
/* Griglie senza velo del tema; aperture con sfumatura solo dietro menu e titolo */
.box-image .overlay { display: none; }
.banner .overlay { background: linear-gradient(to bottom, rgba(0, 0, 0, .5) 0, rgba(0, 0, 0, 0) 150px), linear-gradient(to top, rgba(0, 0, 0, .68) 0, rgba(0, 0, 0, .52) 28%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, 0) 68%) !important; }
/* Apertura con parte alta molto chiara: sfumatura piu forte dietro il menu */
.ws-hero-chiara .overlay { background: linear-gradient(to bottom, rgba(0, 0, 0, .78) 0, rgba(0, 0, 0, .5) 80px, rgba(0, 0, 0, 0) 170px), linear-gradient(to top, rgba(0, 0, 0, .68) 0, rgba(0, 0, 0, .52) 28%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, 0) 68%) !important; }
/* Apertura con pavimento chiaro dietro un titolo su due righe: parte bassa piu scura */
.ws-hero-basso .overlay { background: linear-gradient(to bottom, rgba(0, 0, 0, .78) 0, rgba(0, 0, 0, .5) 80px, rgba(0, 0, 0, 0) 170px), linear-gradient(to top, rgba(0, 0, 0, .82) 0, rgba(0, 0, 0, .72) 30%, rgba(0, 0, 0, .62) 52%, rgba(0, 0, 0, 0) 82%) !important; }
.ws-works .box-image img { transition: transform 1.1s var(--ws-ease); }
@media (hover: hover) { .ws-works .box:hover .box-image img { transform: scale(1.035); } }

/* ---------- Sezioni scure ---------- */
.ws-dark { background-color: var(--ws-dark) !important; }
.ws-dark, .ws-dark p { color: var(--ws-dark-text); }
.ws-dark h1, .ws-dark h2, .ws-dark h3 { color: #ece8e1; }
.ws-dark .ws-label { color: #8f8a82; }
.ws-dark h3 em { font-style: normal; font-weight: 200; color: #c9a46a; }
.ws-dark .ws-more { color: #ece8e1; border-color: rgba(236, 232, 225, .2); }
.ws-dark .ws-more:hover { border-color: #ece8e1; }
.ws-feature h3 { font-size: clamp(36px, 4.6vw, 68px); font-weight: 100; line-height: 1.1; }

/* Lightbox scuro */
.mfp-bg { background: #0c0c0b; }

/* ---------- Bio ---------- */
.ws-bw img { filter: grayscale(1); }
.ws-facts { display: flex; gap: 20px; border-top: 1px solid var(--ws-line); padding-top: 24px; margin-top: 36px; }
.ws-facts > div { flex: 1; }
.ws-facts b { display: block; font-size: 42px; font-weight: 100; line-height: 1; color: var(--ws-ink); }

/* ---------- FAQ ---------- */
.ws-faq .accordion-item { border-bottom: 1px solid var(--ws-line); }
.ws-faq .accordion-title { border: 0; padding: 22px 40px 22px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 200; color: var(--ws-ink); }
.ws-faq .accordion-title.active { color: var(--ws-ink); }
.ws-faq .accordion-title .toggle { left: auto; right: 0; }
.ws-faq .accordion-inner { padding: 0 40px 24px 0; color: var(--ws-text); }

/* ---------- Contatti ---------- */
.ws-contact { text-align: center; }
.ws-big { display: inline-block; font-size: clamp(44px, 9.5vw, 150px); font-weight: 100; line-height: 1; letter-spacing: .01em; margin: 18px 0 34px; color: var(--ws-ink); transition: color .3s; }
.ws-big:hover { color: var(--ws-accent); }
.ws-contact-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px clamp(18px, 4vw, 56px); font-size: 14px; letter-spacing: .06em; }
.ws-contact-row a { color: var(--ws-text); }

/* ---------- Modulo contatti ---------- */
.ws-form { max-width: 820px; margin: 64px auto 0; text-align: left; }
.ws-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.ws-field { margin: 0 0 26px; }
.ws-field-full { grid-column: 1 / -1; }
.ws-form label { display: block; margin: 0 0 8px; font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; color: var(--ws-muted); }
.ws-form label span { letter-spacing: .08em; text-transform: none; color: #9a958d; }
.ws-form input[type="text"], .ws-form input[type="email"], .ws-form input[type="tel"], .ws-form select, .ws-form textarea {
	width: 100%; margin: 0; padding: 10px 0 12px; border: 0; border-bottom: 1px solid var(--ws-line); border-radius: 0;
	background: transparent; box-shadow: none; font-family: inherit; font-size: 17px; font-weight: 300; color: var(--ws-ink);
	transition: border-color .3s var(--ws-ease);
}
.ws-form select { height: auto; appearance: none; -webkit-appearance: none; padding-right: 24px; cursor: pointer;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2377726a'/%3E%3C/svg%3E") no-repeat right 4px center; }
.ws-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.ws-form textarea::placeholder { color: #a8a39b; }
.ws-form input:focus, .ws-form select:focus, .ws-form textarea:focus { outline: 0; border-bottom-color: var(--ws-ink); box-shadow: none; background-color: transparent; }
.ws-form.was-validated :invalid { border-bottom-color: #a5452f; }
.ws-check { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 30px; }
.ws-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--ws-ink); }
.ws-form .ws-check label { margin: 0; font-size: 14px; letter-spacing: 0; text-transform: none; line-height: 1.55; color: var(--ws-text); }
.ws-check a { text-decoration: underline; text-underline-offset: 3px; }
.ws-form.was-validated .ws-check input:invalid + label { color: #a5452f; }
.ws-form-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 30px; }
.ws-send { margin: 0; padding: 16px 38px; border: 1px solid var(--ws-ink); border-radius: 999px; background: var(--ws-ink); color: var(--ws-bg);
	font-family: inherit; font-size: 12px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
	transition: background-color .3s var(--ws-ease), color .3s var(--ws-ease), transform .16s var(--ws-ease); }
.ws-send:hover { background: transparent; color: var(--ws-ink); }
.ws-send:active { transform: scale(.97); }
.ws-send:disabled { opacity: .55; cursor: wait; }
.ws-form-msg { margin: 0; font-size: 15px; }
.ws-form-msg.is-ok { color: #3d6b45; }
.ws-form-msg.is-err { color: #a5452f; }
.ws-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pagine dei lavori ---------- */
.ws-project { padding: 70px 0 100px; }
.ws-project-title { margin: 0 0 18px; font-size: clamp(34px, 5vw, 72px); font-weight: 100; line-height: 1.08; }
.ws-project .ws-label { display: none; }
.ws-project .ws-lead { font-size: clamp(21px, 2.4vw, 32px); line-height: 1.35; }
.ws-project .ws-lead + p { margin-top: 1.4em; font-size: 16px; }
.ws-project p a:not(.ws-more) { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.absolute-footer { background: var(--ws-bg) !important; border-top: 1px solid var(--ws-line); color: var(--ws-muted); font-size: 12px; }
.absolute-footer, .absolute-footer a, .absolute-footer .copyright-footer, .absolute-footer .footer-secondary { color: var(--ws-muted) !important; }
.absolute-footer a:hover { color: var(--ws-ink) !important; }
.footer-wrapper .footer-1, .footer-wrapper .footer-2 { display: none; }

/* ---------- Pagine servizi ---------- */
.ws-page-hero h1 { color: #f7f5f1; font-weight: 100; font-size: clamp(34px, 5.6vw, 88px); line-height: 1.05; margin: 0; }
.ws-page-hero .ws-label { color: rgba(247, 245, 241, .78); }
.ws-h2-s { font-size: clamp(30px, 4vw, 56px); }
body:not(.home) .ws-lead { font-size: clamp(22px, 2.5vw, 34px); line-height: 1.35; }
body:not(.home) .ws-lead + p { margin-top: 1.6em; font-size: 16px; }
.ws-list { list-style: none; margin: 0 !important; padding: 0 !important; }
.ws-list li { margin-left: 0 !important; }
.ws-list li { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--ws-line); font-size: 17px; font-weight: 300; color: var(--ws-ink); }
.ws-list li:first-child { border-top: 1px solid var(--ws-line); }
.ws-steps h3 { font-size: 22px; font-weight: 200; margin: 12px 0 8px; }
.ws-steps .ws-n { color: #8f8a82; font-size: 13px; letter-spacing: .2em; }
.ws-big-s { font-size: clamp(30px, 5.4vw, 84px); line-height: 1.1; }
.ws-service h3 a { color: inherit; }
.ws-service h3 a:hover { color: var(--ws-accent); }
.ws-more-wrap { margin: 14px 0 0; }
.header-main .nav-dropdown { background: var(--ws-bg); border: 1px solid var(--ws-line); }
.header-main .nav-dropdown a { font-size: 12px; font-weight: 300; letter-spacing: .06em; text-transform: none; color: var(--ws-ink); }

/* ---------- Pulsanti ---------- */
.button.primary, .button.is-outline { border-radius: 999px; letter-spacing: .16em; font-weight: 400; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media only screen and (max-width: 48em) {
	#logo a { font-size: 13px; letter-spacing: .24em; }
	.ws-service { padding-top: 20px; }
	.ws-facts b { font-size: 34px; }
	.ws-works .filter-nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
	.ws-works .filter-nav > li { flex-shrink: 0; }
	.ws-project { padding: 40px 0 60px; }
	.ws-form { margin-top: 44px; }
	.ws-form-grid { grid-template-columns: 1fr; }
	.ws-send { width: 100%; }
}

/* Link alle pagine città, sotto l'elenco dei servizi */
.ws-citta { padding-top: 20px; padding-bottom: 24px; }
.ws-citta p { margin: 0; font-size: 17px; font-weight: 300; }
.ws-citta a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Filtro delle foto nella pagina Fotografia naturalistica ---------- */
.ws-natura-tabs .nav { margin-bottom: 36px; gap: 6px; }
.ws-natura-tabs .nav > li > a {
	font-size: 11px;
	font-weight: 400;
	letter-spacing: .16em;
	padding: 10px 16px;
	border: 1px solid var(--ws-line);
	border-radius: 999px;
	color: var(--ws-muted);
}
.ws-natura-tabs .nav > li.active > a { background: var(--ws-ink); border-color: var(--ws-ink); color: var(--ws-bg); }
.ws-natura-tabs .nav > li > a:before { display: none; }
.ws-natura-tabs .tab-panels { padding: 0; border: 0; background: none; }
@media (max-width: 849px) {
	.ws-natura-tabs .nav { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
	.ws-natura-tabs .nav > li { flex-shrink: 0; }
}
#foto { scroll-margin-top: 110px; }
