/*
Theme Name: SI.N.DIR.VVF
Template: twentytwentyfive
Description: Tema figlio di Twenty Twenty-Five per il sito del Sindacato Nazionale dei Direttivi e Dirigenti del CNVVF.
Version: 1.0.2
Author: Francesco Taglietti
Text Domain: sindirvvf
*/

/* Header */
.vvf-topbar a { color: inherit; text-decoration: none; }
.vvf-topbar a:hover { text-decoration: underline; }
.vvf-header { border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.vvf-header .wp-block-site-title a { text-decoration: none; }
.vvf-header .wp-block-site-tagline { line-height: 1.3; }
.vvf-header .wp-block-navigation .wp-block-navigation-item__content { font-weight: 600; }
.vvf-header .wp-block-navigation .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent-1); }
.vvf-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--accent-6) !important; box-shadow: 0 6px 18px rgba(0,0,0,.08); min-width: 240px !important; }
.vvf-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-weight: 500; padding: .55em 1em !important; }

/* Home: riquadri rapidi */
.vvf-tile { height: 100%; border: 1px solid var(--wp--preset--color--accent-6); border-top: 4px solid var(--wp--preset--color--accent-1); border-radius: 4px; background: #fff; transition: box-shadow .15s, transform .15s; }
.vvf-tile:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); transform: translateY(-2px); }
.vvf-tile h3 a { text-decoration: none; color: inherit; }
.vvf-tile h3 a::after { content: ""; position: absolute; inset: 0; }
.vvf-tile { position: relative; }

/* Liste notizie */
.vvf-news-item { padding-bottom: var(--wp--preset--spacing--30); border-bottom: 1px solid var(--wp--preset--color--accent-6); }
.vvf-news-item .wp-block-post-title a { text-decoration: none; }
.vvf-news-item .wp-block-post-title a:hover { color: var(--wp--preset--color--accent-1); }
.vvf-meta, .vvf-meta a { color: var(--wp--preset--color--accent-4); text-decoration: none; }
.vvf-meta a:hover { color: var(--wp--preset--color--accent-1); }
.vvf-section-title { border-left: 4px solid var(--wp--preset--color--accent-1); padding-left: .6em; }

/* Hero */
.vvf-hero .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.vvf-hero .wp-block-button.is-style-outline .wp-block-button__link:hover { background: rgba(255,255,255,.12); }

/* Footer */
.vvf-footer a { color: inherit; }
.vvf-footer a:hover { color: #fff; }

@media (max-width: 781px) {
  .vvf-header .wp-block-site-tagline { display: none; }
}

/* Ricerca nell'header: solo icona */
.vvf-header .wp-block-search__button { background: transparent; color: var(--wp--preset--color--contrast); padding: 8px; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 50%; }
.vvf-header .wp-block-search__button:hover { color: var(--wp--preset--color--accent-1); border-color: var(--wp--preset--color--accent-1); }
.vvf-header .wp-block-search__button svg { width: 20px; height: 20px; }

/* Footer: elenchi senza pallini */
.vvf-footer ul { list-style: none; }

/* Modulo contatti (Contact Form 7) */
.wpcf7-form label { display: block; font-weight: 600; font-size: .95rem; }
.wpcf7-form p { margin: 0 0 1em; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form textarea {
  width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid #c9cdd2; border-radius: 4px; background: #fff;
}
.wpcf7-form textarea { height: 160px; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus { outline: 2px solid var(--wp--preset--color--accent-1); outline-offset: 1px; border-color: transparent; }
.wpcf7-form .wpcf7-acceptance label { font-weight: 400; font-size: .9rem; }
.wpcf7-form input[type=submit] {
  padding: 12px 24px; border: 0; border-radius: 4px; background: var(--wp--preset--color--accent-1); color: #fff; font: inherit; font-weight: 600; cursor: pointer;
}
.wpcf7-form input[type=submit]:hover { background: var(--wp--preset--color--accent-2); }

@media (max-width: 781px) {
  .vvf-topbar .wp-block-group > p:first-child { display: none; }
}
