/*
Theme Name:   L’Araba Fenice
Theme URI:    https://larabafenice.info
Description:  Child theme di Twenty Twenty-Four per L’Araba Fenice. Colori, font e dimensioni sono in theme.json (quindi modificabili da Aspetto › Editor › Stili); qui ci sono solo i dettagli che i blocchi core non coprono.
Author:       Blue Hole
Template:     twentytwentyfour
Version:      1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  laraba-fenice-child
*/

/* ==========================================================================
   0. Base
   ========================================================================== */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 3px solid #3E4A51; outline-offset: 3px; }

/* Nessuno spazio tra header, contenuto e footer, né tra le fasce della pagina */
.wp-site-blocks > .laf-main,
.wp-site-blocks > .laf-main + *,
.laf-main .wp-block-post-content > .alignfull { margin-block-start: 0; }
.laf-section .wp-block-columns { margin-bottom: 0; }
.laf-section figure { margin-top: 0; margin-bottom: 0; }

/* Larghezze massime per i paragrafi di introduzione (classi CSS aggiuntive) */
.laf-maxw-440 { max-width: 440px; }
.laf-maxw-460 { max-width: 460px; }
.laf-maxw-480 { max-width: 480px; }
.laf-maxw-500 { max-width: 500px; }
.laf-maxw-520 { max-width: 520px; }
.laf-maxw-540 { max-width: 540px; }
.laf-maxw-640 { max-width: 640px; }
.laf-overflow-hidden { overflow: hidden; }
.laf-span-2 { grid-column: span 2; }

/* ==========================================================================
   1. Pulsanti
   ========================================================================== */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 52px; box-sizing: border-box;
	transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(34, 40, 44, .18); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 1.5px; }
.laf-btn-outline-dark > .wp-block-button__link { border-color: #8C979D !important; }
.laf-btn-small > .wp-block-button__link { min-height: 46px; padding: 0 22px; font-size: 16px; }

/* Chip categoria */
.laf-chips { gap: 8px; }
.laf-chip > .wp-block-button__link {
	min-height: 40px; padding: 0 14px !important; font-size: 15px;
	border-color: #9AA3A7 !important; color: #22282C;
}
.laf-chip > .wp-block-button__link:hover { border-color: #22282C !important; background: #ECECE8; transform: none; box-shadow: none; }

/* ==========================================================================
   2. Header e footer
   ========================================================================== */
.laf-header { z-index: 20; }
.laf-header .wp-block-site-title { margin: 0; line-height: 1.1; }
.laf-header .wp-block-site-title a { color: inherit; }
.laf-header-nav { align-items: center; }
.laf-nav a { text-decoration: none; }
.laf-nav a:hover { text-decoration: underline; }
/*.laf-lang { margin: 0; }*/
.laf-footer .wp-block-site-title { margin: 0; }
.laf-footer p { margin: 0; }
.laf-footer .laf-logo-white img { filter: invert(1) brightness(2); }
@media (max-width: 781px) {
	.laf-header { position: relative !important; }
	.laf-header-nav { gap: 14px 18px !important; }
}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.laf-hero-text { padding: 40px 0 64px; }
.laf-hero-media { position: relative; height: 100%; }
.laf-hero-img { height: 100%; display: flex; flex-direction: column; gap: 10px; }
.laf-hero-img img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; background: #E4E2E4; }
.laf-hero-img figcaption { text-align: right; margin: 0; }

/* Sigillo "100% prodotto in Italia" */
.laf-seal {
	position: absolute; left: -28px; top: 40px; z-index: 2;
	width: 150px; height: 150px; border-radius: 50%;
	background: #22282C; color: #F8F8F6;
	display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
	box-shadow: 0 0 0 6px #ECECE8, 0 0 0 7.5px #22282C;
}
.laf-seal > * { margin: 0 !important; }
.laf-seal-top { font-size: 13px; letter-spacing: .04em; opacity: .8; line-height: 1.4; }
.laf-seal-main { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.wp-block-separator.laf-flag {
	width: 54px; height: 5px; border: 0; opacity: 1; margin-top: 8px !important;
	background: linear-gradient(90deg, #2E8B57 0 33.33%, #F8F8F6 33.33% 66.66%, #C8102E 66.66% 100%);
}
@media (max-width: 781px) {
	.laf-hero-text { padding: 16px 0 8px; }
	.laf-hero-img img { min-height: 380px; }
	.laf-seal { left: 12px; top: 12px; width: 118px; height: 118px; }
	.laf-seal-main { font-size: 24px; }
	.laf-seal-top { font-size: 11px; }
}

/* ==========================================================================
   4. Impegni (icone)
   ========================================================================== */
.laf-band-lines { border-top: 1px solid #D3D5D1; border-bottom: 1px solid #D3D5D1; }
.laf-ico { position: relative; padding-left: 44px; }
.laf-ico::before {
	content: ""; position: absolute; left: 0; top: 2px; width: 30px; height: 30px;
	background: center / contain no-repeat;
}
.laf-ico-clock::before { background-image: url(assets/icons/clock.svg); }
.laf-ico-briefcase::before { background-image: url(assets/icons/briefcase.svg); }
.laf-ico-shield::before { background-image: url(assets/icons/shield.svg); }
.laf-ico-person::before { background-image: url(assets/icons/person.svg); }
.laf-assure > * { margin: 0; }
.laf-assure > * + * { margin-block-start: 4px !important; }
.laf-assure-title { font-size: 17px !important; }

/* ==========================================================================
   5. Filiera Made in Italy
   ========================================================================== */
.laf-chain { border-top: 1px solid #4A555B; }
.laf-chain-step { position: relative; padding: 30px 28px 0 0; }
.laf-chain-step::before {
	content: ""; position: absolute; top: -6px; left: 0;
	width: 11px; height: 11px; border-radius: 50%; background: #CBB78E;
}
.laf-chain-n { font-size: 52px; line-height: 1; }
.laf-chain-step h3 { font-size: 24px; }
@media (max-width: 900px) {
	.laf-chain { grid-template-columns: 1fr !important; gap: 28px !important; border-top: 0; border-left: 1px solid #4A555B; padding-left: 24px; }
	.laf-chain-step { padding: 0; }
	.laf-chain-step::before { top: 8px; left: -30px; }
}
.laf-cycle img { background: #2E363B; }
.laf-cycle figcaption { color: #AEB6BA; font-size: 14px; margin-top: 10px; }
.laf-line-top-dark { border-top: 1px solid #3A4247; padding-top: 40px; }

/* ==========================================================================
   6. Partner
   ========================================================================== */
.laf-solve { border-top: 1.5px solid #22282C; padding-top: 24px; }

/* ==========================================================================
   7. Anteprima catalogo
   ========================================================================== */
.laf-card > * { margin-top: 0; }
.laf-card-img { overflow: hidden; border-radius: 12px; }
.laf-card-img img { width: 100%; background: #E6E5E6; transition: transform .5s ease; }
.laf-card:hover .laf-card-img img { transform: scale(1.03); }
.laf-card-title a { color: inherit; text-decoration: none; }
.laf-card:hover .laf-card-title a { text-decoration: underline; }

/* ==========================================================================
   8. Settori serviti (schede)
   ========================================================================== */
.laf-tab > .wp-block-button__link {
	width: 100%; justify-content: flex-start; text-align: left; min-height: 0;
	padding: 16px 20px !important; border-radius: 14px;
	font-size: 19px; line-height: 1.25;
	border-color: #7F8C93 !important; color: #F8F8F6;
}
.laf-tab > .wp-block-button__link:hover { transform: none; box-shadow: none; border-color: #C9BBE3 !important; }
.laf-tab.is-active > .wp-block-button__link { background: #C9BBE3; border-color: #C9BBE3 !important; color: #22282C; }
.laf-tabs.is-enhanced .laf-panel:not(.is-active) { display: none !important; }
.laf-panels > .laf-panel + .laf-panel { margin-top: 24px; }
.laf-tabs.is-enhanced .laf-panels > .laf-panel { margin-top: 0; }
.laf-panel-gallery { align-content: start; }
.laf-panel-gallery .laf-panel-main { grid-column: 1 / -1; }
.laf-panel-gallery img { width: 100%; background: #E4E2E4; }
.laf-panel h3 { line-height: 1.2; }

/* Elenco con righe divisorie */
.laf-lines { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #C9CDCC; font-size: 18px; }
.laf-lines li { padding: 12px 0; border-top: 1px solid #C9CDCC; }

/* ==========================================================================
   9. Lotti
   ========================================================================== */
@media (max-width: 640px) {
	.laf-lots { padding: 32px 24px !important; border-radius: 22px !important; }
}

/* ==========================================================================
   10. Tecniche e scheda tecnica
   ========================================================================== */
.laf-tech-head p { font-size: 15px; font-weight: 600; color: #4F585D; padding-bottom: 10px; }
.laf-tech-row { border-top: 1.5px solid #22282C; padding: 20px 0; margin: 0 !important; }
.laf-tech-img img { background: #2E363B; }
.laf-specs { border-bottom: 1px solid #C9CDCC; }
.laf-spec-row { border-top: 1px solid #C9CDCC; padding: 18px 0; margin: 0 !important; }
@media (max-width: 781px) {
	.laf-tech-head { display: none !important; }
	.laf-tech-row, .laf-spec-row { gap: 8px !important; }
}

/* Tabella Zama / Ottone */
.wp-block-table.laf-table { overflow-x: auto; }
.wp-block-table.laf-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.wp-block-table.laf-table thead { border: 0; }
.wp-block-table.laf-table th,
.wp-block-table.laf-table td { border: 0; text-align: left; vertical-align: top; }
.wp-block-table.laf-table th { font-size: 15px; font-weight: 600; color: #4F585D; padding: 0 0 10px; }
.wp-block-table.laf-table td { padding: 14px 16px 14px 0; border-top: 1px solid #C9CDCC; }
.wp-block-table.laf-table td:first-child { font-weight: 700; }

/* ==========================================================================
   11. Donne di metallo
   ========================================================================== */
.laf-team-gallery img { width: 100%; }
.laf-org { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid #8C979D; }
.laf-org li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; padding: 14px 0; border-top: 1px solid #8C979D; }
.laf-org strong { font-size: 22px; font-weight: 700; min-width: 150px; line-height: 1.3; }

/* ==========================================================================
   12. FAQ (blocco Dettagli)
   ========================================================================== */
.laf-faqs { border-bottom: 1.5px solid #22282C; }
.laf-faq summary {
	display: flex; justify-content: space-between; gap: 20px;
	list-style: none; cursor: pointer;
	font-size: 24px; font-weight: 600; line-height: 1.3;
}
.laf-faq summary::-webkit-details-marker { display: none; }
.laf-faq summary::after { content: "+"; font-weight: 400; transition: transform .25s ease; }
.laf-faq[open] summary::after { transform: rotate(45deg); }
.laf-faq p { margin-top: 10px; }
@media (max-width: 640px) { .laf-faq summary { font-size: 20px; } }

/* ==========================================================================
   13. Contatti e modulo
   ========================================================================== */
.laf-contact-img img { width: 100%; height: 380px; object-fit: cover; }
.laf-form {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
	background: #F8F8F6; color: #22282C; padding: 36px; border-radius: 20px;
}
.laf-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.laf-form input, .laf-form select, .laf-form textarea {
	font: inherit; font-size: 17px; font-weight: 400; padding: 12px 14px;
	border: 1.5px solid #8A9296; background: #fff; border-radius: 8px; color: #22282C;
}
.laf-form .laf-check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.laf-form .laf-check input { width: 20px; height: 20px; padding: 0; }
.laf-form button {
	justify-self: start; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
	background: #22282C; color: #ECECE8; font-family: inherit; font-size: 17px; font-weight: 600;
}
.laf-form-msg { grid-column: 1 / -1; margin: 0; font-size: 16px; font-weight: 600; }
@media (max-width: 640px) {
	.laf-form { grid-template-columns: 1fr; padding: 24px; }
	.laf-form .laf-span-2 { grid-column: auto; }
}
/* Contact Form 7 con la stessa grafica (classe del modulo: laf-cf7) */
.wpcf7 form.laf-cf7 {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
	background: #F8F8F6; color: #22282C; padding: 36px; border-radius: 20px;
}
.laf-cf7 .hidden-fields-container { display: none; }
.laf-cf7 .laf-span-2 { grid-column: 1 / -1; }
.laf-cf7 label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 15px; font-weight: 600; }
.laf-cf7 .wpcf7-form-control-wrap { display: block; }
.laf-cf7 input[type="text"], .laf-cf7 input[type="email"], .laf-cf7 input[type="tel"],
.laf-cf7 select, .laf-cf7 textarea {
	box-sizing: border-box; width: 100%;
	font: inherit; font-size: 17px; font-weight: 400; padding: 12px 14px;
	border: 1.5px solid #8A9296; background: #fff; border-radius: 8px; color: #22282C;
}
.laf-cf7 textarea { resize: vertical; }
.laf-cf7 .laf-check .wpcf7-list-item { margin: 0; }
.laf-cf7 .laf-check label { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; }
.laf-cf7 .laf-check input { width: 20px; height: 20px; margin: 0; padding: 0; flex: none; }
.laf-cf7 .laf-check a { color: inherit; }
.laf-cf7 .laf-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.laf-cf7 .laf-submit p { margin: 0; }
.laf-cf7 input[type="submit"] {
	min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
	background: #22282C; color: #ECECE8; font-family: inherit; font-size: 17px; font-weight: 600;
}
.laf-cf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.laf-cf7 .wpcf7-spinner { margin: 0; }
.laf-cf7 .wpcf7-not-valid-tip { margin-top: 4px; font-size: 14px; font-weight: 600; color: #A3261B; }
.laf-cf7 .wpcf7-not-valid { border-color: #A3261B; }
.wpcf7 form.laf-cf7 .wpcf7-response-output {
	grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 8px; font-size: 16px; font-weight: 600;
}
@media (max-width: 640px) {
	.wpcf7 form.laf-cf7 { grid-template-columns: 1fr; padding: 24px; }
}

/* ==========================================================================
   14. Animazioni (solo con JS attivo e senza "riduci movimento")
   ========================================================================== */
@keyframes laf-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes laf-unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes laf-seal { from { opacity: 0; transform: rotate(-40deg) scale(.8); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	.laf-in { animation: laf-up .9s cubic-bezier(.2, .7, .2, 1) both; }
	.laf-d1 { animation-delay: .15s; }
	.laf-d2 { animation-delay: .3s; }
	.laf-in-img img { animation: laf-unveil 1.3s cubic-bezier(.6, 0, .2, 1) .1s both; }
	.laf-in-seal { animation: laf-seal 1s cubic-bezier(.2, .7, .2, 1) .9s both; }

	.laf-js .laf-rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
	.laf-js .laf-rv.is-on { opacity: 1; transform: none; }
	.laf-js .laf-rv-img img { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.6, 0, .2, 1); }
	.laf-js .laf-rv-img.is-on img { clip-path: inset(0 0 0 0); }
	
	/* Link iubenda (footer e sotto il modulo) */
.laf-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.laf-form-legal { margin-top: 16px; }
}
