/*
Theme Name: Tecnopal
Theme URI: https://www.tecnopal.com
Author: Maccom Srl
Author URI: https://www.maccom.it
Description: Tema a blocchi (Full Site Editing) per Tecnopal S.r.l. Riproduce il design del sito storico. Nessun page builder: solo editor nativo di WordPress.
Version: 1.8.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tecnopal
*/

/* Base (porting di screen.css del sito TYPO3) */
:root { --tp-img: url("assets/images"); }
body { line-height: normal; }
.wp-site-blocks > * { max-width: none; margin-left: 0; margin-right: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks p, .wp-block-post-content p { margin-top: 0; margin-bottom: .625em; line-height: 130%; }
.wp-block-post-content ul li { line-height: 150%; }
h1, h2, h3 { font-weight: normal; line-height: 100%; margin-top: 0; margin-bottom: .4em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header fisso: legno + barra verde */
header.wp-block-template-part { position: sticky; top: 0; z-index: 998; }
.admin-bar header.wp-block-template-part { top: 32px; }
.tp-top { background: url("assets/images/all.png") repeat-x 0 0; border-top: 6px solid #fff; min-height: 147px; width: 100%; }
.tp-top-in { width: 980px; max-width: 100%; margin: 0 auto; position: relative; }
.tp-menu { height: 100px; }
.tp-menu ul, .tp-sub ul { list-style: none; margin: 0; padding: 0; }
.tp-menu > ul { display: flex; }
.tp-menu li { margin: 0; padding-left: 1px; line-height: normal; }
.tp-menu a { display: block; color: #00659C; padding: 18px 10px 0; height: 80px; margin-top: 4px; text-transform: uppercase; text-shadow: 1px 1px 1px #F8F1E9; font: 33px/30px "League Gothic", "Trebuchet MS", sans-serif; box-sizing: content-box; }
.tp-menu a span { display: block; font-size: 20px; letter-spacing: .025em; }
.tp-menu a:hover, .tp-menu a.is-active { text-decoration: none; background: url("assets/images/mainmenu_arrow_green.png") no-repeat center bottom; }
.tp-menu a.tp-logo { margin: 15px 30px 0 0; height: 65px; width: 261px; padding: 0; background: url("assets/images/logo_tecnopal.png") no-repeat 0 0; text-indent: -9999px; overflow: hidden; }
.tp-menu a.tp-logo:hover, .tp-menu a.tp-logo.is-active { background: url("assets/images/logo_tecnopal.png") no-repeat 0 0; }
.tp-sub { display: none; height: 45px; padding-left: 168px; }
.tp-top[data-sec="home"] .tp-sub-home, .tp-top[data-sec="pallets"] .tp-sub-pallets { display: block; }
.tp-sub ul { display: flex; }
.tp-sub li { margin: 0; }
.tp-sub a { display: block; height: 34px; padding: 4px 13px 7px 10px; color: #fff; text-transform: capitalize; letter-spacing: .03em; font: 25px/34px "League Gothic", "Trebuchet MS", sans-serif; background: url("assets/images/mainmenu_separatore.png") no-repeat right center; }
.tp-sub li:last-child a { background-image: none; }
.tp-sub a:hover { text-decoration: none; opacity: .8; }
.tp-ribbon { display: block; width: 180px; height: 165px; position: absolute; right: 0; top: -10px; background: url("assets/images/preventivo_gratuito.png") no-repeat 0 0; z-index: 800; text-indent: -9999px; overflow: hidden; }
.tp-ribbon:hover { background-position: 0 -174px; }
.tp-menu-toggle { display: none; }

main.tp-main { background: url("assets/images/texture_point.png") repeat-x 0 0; }

/* Slider */
.tp-slide { width: 100%; }
.tp-slide-in { width: 980px; max-width: 100%; margin: 0 auto; padding-bottom: 73px; background: url("assets/images/slide_shadow.png") no-repeat 0 bottom; position: relative; }
.tp-slider { position: relative; width: 980px; max-width: 100%; aspect-ratio: 980/450; overflow: hidden; }
.tp-slider figure { margin: 0; }
.tp-slider img { display: block; width: 100%; height: auto; }
.tp-slider.is-js figure { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.tp-slider.is-js figure.is-on { opacity: 1; z-index: 1; }
.tp-dots { position: absolute; left: 0; right: 0; bottom: 100px; z-index: 5; display: flex; justify-content: center; gap: 10px; }
.tp-dots button { width: 12px; height: 12px; padding: 0; border: 0; cursor: pointer; background: url("assets/images/pin_slider.png") no-repeat 0 -12px transparent; }
.tp-dots button.is-on { background-position: 0 0; }

/* Contenuti home */
.tp-w { width: 980px; max-width: 100%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.tp-cats { gap: 0 !important; margin-bottom: 50px; }
.tp-cats > .wp-block-column { flex-basis: 0 !important; flex-grow: 1; min-width: 0; }
.tp-cats > .wp-block-column:nth-child(2) { border-left: 2px dashed #ddd; border-right: 2px dashed #ddd; padding: 0 20px; margin: 0 20px; }
.tp-cats h2 { line-height: 115%; margin-bottom: .4em; }
.tp-cats h2 a { font-size: 150%; text-transform: uppercase; }
.tp-cats h2 a span { display: block; font-size: 25px; line-height: 25px; }
.tp-cat-1 h2 a { color: #480000; }
.tp-cat-2 h2 a { color: #663300; }
.tp-cat-3 h2 a { color: #996600; }
.wp-block-post-content .tp-cats ul, .tp-cats ul { list-style: none !important; margin: 0 0 .625em; padding: 0; }
.tp-cats ul li { padding-left: 12px; background: url("assets/images/bullet.png") no-repeat 0 .6em; }
.tp-cats a.readon, a.readon { color: #666; }

.tp-news-h { margin: 20px 0 0; }
.tp-news-h h2 { display: block; background: #669900; color: #fff !important; font-size: 3em; padding: 5px 15px; margin: 0 0 20px; }
.tp-news-list { padding: 0 0 20px; border-top: 0; }
.tp-news-list .wp-block-post-template { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 25px; list-style: none; padding: 0; margin: 0; }
.tp-news-list .wp-block-post-template > li { border-top: 2px dashed #ddd; padding-top: 15px; margin: 0; }
.tp-news-list .wp-block-post-date { font-size: .85em; color: #999; margin: 0 0 4px; }
.tp-news-list .wp-block-post-title { font-size: 1.6em; margin: 0; }
.tp-news-list .wp-block-post-title a { color: #470000; }

.bg { padding: 30px 0; border-bottom: 2px solid #fff; width: 100%; box-sizing: border-box; }
.bg.green { background-color: #669900; }
.bg.texture { background: url("assets/images/texture.jpg") repeat 0 0; color: #fff; }
.bg h2, .bg p, .bg a, .bg label { color: #fff; }
.bg.texture p, .bg.texture a { letter-spacing: .02em; font-size: 105%; line-height: 23px; }
.bg .tp-2 { display: flex; gap: 25px; }
.bg .tp-2 > * { width: 477px; max-width: 100%; margin: 0; }
h2.big { font-size: 9em; line-height: 115px; margin-bottom: 10px; color: #fff; opacity: .4; text-transform: uppercase; }
h3.big { font-size: 6.5em; color: #444; opacity: .4; text-transform: uppercase; margin-bottom: 10px; line-height: 1; }

.ambiente h2.big { opacity: 1; font-size: 3.4em; line-height: 52px; letter-spacing: .055em; margin: 0 0 10px; }
.ambiente h2.big + h2.big { font-size: 5.2em; letter-spacing: normal; }
.ambiente h2.big a { color: #fff; }
.ambiente h2.big a:hover { text-decoration: none; color: #669900; text-shadow: 1px 1px 3px #fff; }
.ambiente h2.big span { color: #669900; text-shadow: 1px 1px 3px #fff; }

/* Servizi */
.tp-servizi { display: grid; grid-template-columns: repeat(3, 305px); justify-content: center; }
.tp-servizi h2.big { min-height: 130px; margin: 0; }
.tp-serv { padding: 0 15px 20px; min-height: 130px; box-sizing: border-box; }
.tp-serv:nth-child(3n+1), .tp-serv:nth-child(3n+2) { border-right: 1px dashed #92B74A; }
.tp-serv h2 { font-size: 2em; margin: 0 0 .4em; }
.tp-serv h2::before { content: ""; float: left; width: 60px; height: 40px; margin-right: 5px; background: url("assets/images/icone.png") no-repeat 0 0; }
.tp-serv.tp-i2 h2::before { background-position: 0 -70px; }
.tp-serv.tp-i3 h2::before { background-position: 0 -140px; }
.tp-serv.tp-i4 h2::before { background-position: 0 -210px; }
.tp-serv.tp-i5 h2::before { background-position: 0 -280px; }
.tp-serv.tp-i6 h2::before { background-position: 0 -350px; }
.tp-serv.tp-i7 h2::before { background-position: 0 -420px; }
.tp-serv.tp-i8 h2::before { background-position: 0 -490px; }
.tp-serv p { clear: left; }

/* Dove siamo / Scrivici */
.dove h2 { font-size: 2em; color: #fff; }
.dove p.tp-tel { font-size: 280%; margin: 25px 0; font-weight: bold; }
.dove p.tp-tel a { font-size: 100%; letter-spacing: normal; }
.tp-map { border: 1px solid #fff; width: 480px; max-width: 100%; display: block; }
.scrivici h2.big { margin: 0 0 10px; }
.scrivici h2.big:first-of-type { border-bottom: 1px solid #fff; }
.scrivici h2.big + h2.big { font-size: 6.5em; }
.scrivici .tp-sub-big { font-size: 355%; line-height: 4px; opacity: .4; color: #fff; font-family: "League Gothic", "Trebuchet MS", sans-serif; margin: 0; }
.tp-form { display: flex; flex-wrap: wrap; gap: 0 25px; }
.tp-form .tp-f { width: 225px; max-width: 100%; }
.tp-form .tp-f-w { width: 100%; }
.tp-form label { display: block; color: #fff; margin-bottom: 5px; }
.tp-form input[type=text], .tp-form input[type=email], .tp-form input[type=tel], .tp-form textarea { width: 100%; border: 0; color: #333; font-size: 1em; padding: 2px; margin-bottom: 10px; box-sizing: border-box; }
.tp-form input:hover, .tp-form input:focus, .tp-form textarea:hover, .tp-form textarea:focus { background-color: #F8EFDE; }
.tp-form p, .tp-form .wpcf7-list-item-label { color: #fff; font-size: 12px; margin-bottom: 5px; }
.tp-form input[type=submit] { float: right; background: #0186D6; color: #eee; border: 0; border-radius: 8px; padding: 5px 15px; font-size: 17px; cursor: pointer; }
.tp-form input[type=submit]:hover { background: #0067CD; color: #fff; }
.wpcf7-not-valid-tip { color: #fff; background: #D40000; padding: 2px 6px; font-size: 12px; }
.wpcf7 form .wpcf7-response-output { color: #fff; border-color: #fff; }

/* Footer */
.tp-certs { padding: 10px 0 30px; }
.tp-certs nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.tp-certs nav li { margin: 0; padding: 5px 12px; border-right: 1px solid #ccc; line-height: 0; }
.tp-certs nav li:first-child { padding-left: 0; }
.tp-certs nav li:last-child { border: 0; padding-right: 0; }
.tp-certs nav img { max-height: 90px; width: auto; height: auto; }
.tp-fesr { margin-top: 35px; border-top: 1px solid #e3e3e3; padding: 30px 0; }
.tp-fesr p { font-size: 13px; }
.tp-fesr img { width: 500px; max-width: 100%; height: auto; }
.tp-footer { padding: 10px 0; }
.tp-footer .tp-w { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.tp-footer a { color: #fff; }
.tp-footer p { margin: 0; font-size: 12px; color: #fff; }
a.tp-concept { width: 73px; height: 16px; display: inline-block; background: url("https://www.maccom.it/templates/maccom/images/maccom_73x16_chiaro.png") no-repeat 0 0; text-indent: -3000px; overflow: hidden; }
a.tp-concept:hover { background-position: 0 -16px; }
.tp-footer-logos { display: flex; gap: 20px; align-items: center; }
footer.wp-block-template-part { padding-bottom: 0; }

/* Pagine interne */
.tp-page h1 { font-size: 2.8em; margin-bottom: .4em; }
.tp-page { padding: 40px 0; }
.wp-block-post-content ul { list-style: disc inside; }
.wp-block-gallery .wp-block-image img { border: 5px solid #cecece; box-sizing: border-box; }
.wp-block-button__link, .readmore { font-family: "League Gothic", "Trebuchet MS", sans-serif; font-size: 1.7em; background: linear-gradient(to bottom, #00CDFC 0%, #0080FF 100%); color: #fff; border-radius: 5px; padding: 6px 10px; }

/* Mobile */
@media (max-width: 1000px) {
	.tp-top { min-height: 0; background: #dca565; }
	.tp-sub { background: #669900; }
	.tp-ribbon { display: none; }
	.tp-menu { height: auto; padding: 10px 15px; }
	.tp-menu > ul { flex-wrap: wrap; }
	.tp-menu a { height: auto; padding: 8px 10px; font-size: 24px; line-height: 24px; }
	.tp-menu a span { display: inline; font-size: inherit; }
	.tp-menu a.tp-logo { flex-basis: 100%; height: 65px; width: 261px; }
	.tp-sub { height: auto; padding: 8px 15px; }
	.tp-sub ul { flex-wrap: wrap; }
	header.wp-block-template-part { position: static; }
	.tp-w { padding-left: 15px; padding-right: 15px; }
	
	.tp-cats > .wp-block-column:nth-child(2) { border: 0; padding: 0; margin: 0; }
	.bg .tp-2 { flex-direction: column; }
	.tp-news-list .wp-block-post-template { grid-template-columns: 1fr; }
	.tp-servizi { grid-template-columns: 1fr; }
	.tp-serv { border-right: 0 !important; }
	h2.big { font-size: 5em; line-height: 80px; }
	.dove p.tp-tel { font-size: 200%; }
}

/* Fluent Forms dentro la fascia "Scrivici" */
.scrivici .fluentform { width: 477px; max-width: 100%; }
.scrivici .fluentform .ff-el-input--label label, .scrivici .fluentform .ff_t_c, .scrivici .fluentform .ff-el-form-check-label, .scrivici .fluentform .ff-el-form-check-label a { color: #fff !important; font-size: 13px; }
.scrivici .fluentform .ff-el-form-control { border: 0; border-radius: 0; color: #333; padding: 2px 4px; min-height: 0; box-shadow: none; }
.scrivici .fluentform .ff-el-form-control:hover, .scrivici .fluentform .ff-el-form-control:focus { background: #F8EFDE; }
.scrivici .fluentform .ff-el-group { margin-bottom: 10px; }
.scrivici .fluentform .ff-btn-submit { background: #0186D6 !important; color: #eee !important; border-radius: 8px; padding: 5px 15px; font-size: 17px; }
.scrivici .fluentform .ff-btn-submit:hover { background: #0067CD !important; color: #fff !important; }
.scrivici .fluentform .error, .scrivici .fluentform .text-danger { background: #D40000; color: #fff; padding: 2px 6px; font-size: 12px; }
.scrivici .ff-message-success { background: transparent; border: 1px solid #fff; color: #fff; box-shadow: none; }

@media (max-width: 1000px) {
	.scrivici h2.big, .scrivici h2.big + h2.big { font-size: 4em; line-height: 1; }
	.scrivici h2.big + h2.big { font-size: 3em; }
	.scrivici .tp-sub-big { font-size: 2em; line-height: 1.2; }
	.ambiente h2.big { line-height: 1.1; font-size: 2.6em; }
	.ambiente h2.big + h2.big { font-size: 3.6em; }
	h3.big { font-size: 3.5em; }
	.tp-fesr img { width: 100%; }
}
