/*
Theme Name: Porto Antico - Portale Fornitori
Theme URI: https://www.fornitoriportoantico.it/
Author: dpsonline
Author URI: https://www.dpsonline.it
Description: Tema dedicato al Portale Fornitori di Porto Antico di Genova. Logo centrato, niente menu, footer istituzionale. Pensato per il plugin portoantico-fornitori.
Version: 1.0.0
Requires PHP: 8.1
Text Domain: portoantico
*/

:root{ --pa-blue:#1273b4; --pa-blue-dark:#0e5e92; }

* { box-sizing: border-box; }
html,body{ margin:0; padding:0; }
body{
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
	color:#222; background:#eef1f4; line-height:1.45;
}
a{ color:var(--pa-blue); }

.pa-site{ min-height:100vh; display:flex; flex-direction:column; }

/* Header: only the centred logo, no navigation menu */
.pa-site-header{ text-align:center; padding:18px 12px 6px; background:#fff; }
.pa-site-header .pa-logo{ height:92px; width:auto; }

/* Blue bar under the header: holds the logged-in user + logout */
.pa-topbar{
	min-height:42px;
	background:linear-gradient(180deg,#2a93d6 0%, var(--pa-blue) 60%, var(--pa-blue-dark) 100%);
	display:flex; align-items:center;
}
.pa-topbar-inner{
	width:100%; max-width:980px; margin:0 auto; padding:8px 16px;
	display:flex; justify-content:space-between; align-items:center;
	color:#fff; font-size:13px;
}
.pa-topbar-user{ color:#fff; }
.pa-topbar-logout{ color:#fff; text-decoration:none; font-weight:700; white-space:nowrap; }
.pa-topbar-logout:hover{ text-decoration:underline; color:#fff; }
.pa-topbar-logout i{ margin-right:5px; }
.pa-topbar-back{ color:#fff; text-decoration:none; font-weight:700; white-space:nowrap; }
.pa-topbar-back:hover{ text-decoration:underline; color:#fff; }
.pa-topbar-back i{ margin-right:6px; }

/* Content container */
.pa-content{
	flex:1 0 auto;
	width:100%; max-width:980px; margin:0 auto; padding:24px 16px 40px;
}
.pa-content .entry-title{ display:none; } /* page title hidden: panels carry their own headers */

/* Footer */
.pa-site-footer{
	flex-shrink:0; text-align:center; padding:18px 12px 26px;
	font-size:12px; color:#6b7378; line-height:1.7; background:#eef1f4;
}
.pa-site-footer a{ color:#6b7378; text-decoration:none; font-weight:700; }
.pa-site-footer a:hover{ text-decoration:underline; }

/* When the homepage login overlay is active, hide chrome behind it */
body.pa-home-active .pa-site-header,
body.pa-home-active .pa-topbar,
body.pa-home-active .pa-site-footer{ display:none !important; }
body.pa-home-active .pa-content{ padding:0; max-width:none; }
