/*
Theme Name: SUEDI Comuni 2026 v1.4
Theme URI: https://suedi.cloud/
Description: Child theme leggero per portali SUEDI, senza barra bianca nel titolo e con header più pulito.
Author: OpenAI per Maria
Template: secondtouch
Version: 1.4.0
Text Domain: suedi-comuni-2026-v1-4
*/

/* Parent theme is loaded via functions.php */

/* Base */
body {
  font-family: "Inter", "Roboto", Arial, sans-serif;
}

/* Header more compact */
#header, header, .header-wrapper {
  box-shadow: 0 2px 14px rgba(0,0,0,.06);
}

/* --- STUNNING HEADER / TITLE AREA --- */
#stuning-header {
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center center !important;
}

#stuning-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.28);
  pointer-events: none;
}

#stuning-header .row,
#stuning-header .columns,
#stuning-header #page-title,
#stuning-header .page-title-inner {
  position: relative;
  z-index: 2;
}

/* Remove the custom white bar/card from previous theme versions */
#stuning-header #page-title {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 0 !important;
}

#stuning-header .page-title-inner {
  display: table;
  width: 100%;
  min-height: 220px;
  color: #6f4a1d !important;
}

/* Keep the original behaviour: title hidden, subtitle visible */
#stuning-header .page-title-inner h1.page-title,
#stuning-header .page-title-inner .page-title {
  display: none !important;
}

#stuning-header .page-title-inner .subtitle {
  display: table-cell !important;
  vertical-align: middle;
  height: 220px;
  padding: 28px 24px;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 300;
  color: #7a4b18 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}

/* If no subtitle exists, show the page title cleanly */
#stuning-header .page-title-inner h1.page-title:only-child,
#stuning-header .page-title-inner .page-title:only-child {
  display: table-cell !important;
  vertical-align: middle;
  height: 220px;
  padding: 28px 24px;
  font-size: 58px;
  line-height: 1.05;
  font-weight: 300;
  color: #7a4b18 !important;
  box-shadow: none !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
}

/* In case previous child left rounded panel styles */
.page-title-card,
.hero-title-card,
.title-panel {
  display: none !important;
}

/* Buttons and cards */
a.button, .button, button, input[type="submit"] {
  border-radius: 12px;
}

@media (max-width: 980px) {
  #stuning-header .page-title-inner {
    min-height: 170px;
  }
  #stuning-header .page-title-inner .subtitle,
  #stuning-header .page-title-inner h1.page-title:only-child,
  #stuning-header .page-title-inner .page-title:only-child {
    height: 170px;
    font-size: 40px;
    padding: 18px 18px;
  }
}
